file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
./partial_match/1/0xa76EA705783b595b420bb36F196540a2Ed629673/sources/MatchingMarket.sol
set the minimum sell amount for a token Function is used to avoid "dust offers" that have very small amount of tokens to sell, and it would cost more gas to accept the offer, than the value of tokens received. params: ERC20 pay_gem: token to assign minimum sell amount to uint dust: maker (ask) minimum sell ...
function setMinSell(ERC20 pay_gem, uint dust) public auth note returns (bool) { _dust[address(pay_gem)] = dust; emit LogMinSell(address(pay_gem), dust); return true; }
3,575,004
[ 1, 542, 326, 5224, 357, 80, 3844, 364, 279, 1147, 565, 4284, 353, 1399, 358, 4543, 315, 72, 641, 28641, 6, 716, 1240, 565, 8572, 5264, 3844, 434, 2430, 358, 357, 80, 16, 471, 518, 4102, 565, 6991, 1898, 16189, 358, 2791, 326, 1006...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27724, 55, 1165, 12, 654, 39, 3462, 8843, 67, 23465, 16, 2254, 302, 641, 13, 1071, 1357, 4721, 1135, 261, 6430, 13, 288, 203, 203, 203, 3639, 389, 72, 641, 63, 2867, 12, 10239, 67, 23465, 25887, 273, 302, 641, 31, 2...
pragma solidity >=0.4.21 <0.7.0; import "./Ownable.sol"; import "./ERC20.sol"; //ERC20 token mintable by a specified authority to handle payment on the Community Platform //Owner is the Token Manager, not the authority (authority is belongingAddress)! contract CommunityToken is Ownable, ERC20 { //// VARIABLE...
ERC20 token mintable by a specified authority to handle payment on the Community PlatformOwner is the Token Manager, not the authority (authority is belongingAddress)!
contract CommunityToken is Ownable, ERC20 { string public symbol; string public name; uint decimals; uint256 reasonForPayment; mapping (address => bool) blocked; mapping (address => address) blockedTo; event ReasonForPayment( address indexed from, ...
7,231,434
[ 1, 654, 39, 3462, 1147, 312, 474, 429, 635, 279, 1269, 11675, 358, 1640, 5184, 603, 326, 16854, 13352, 11810, 5541, 353, 326, 3155, 8558, 16, 486, 326, 11675, 261, 24763, 353, 17622, 1887, 13, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 16854, 13352, 1345, 353, 14223, 6914, 16, 4232, 39, 3462, 288, 203, 377, 203, 377, 203, 565, 533, 1071, 3273, 31, 203, 203, 565, 533, 1071, 225, 508, 31, 203, 377, 203, 565, 2254, 15105, 31, 203, 377, 203, 565, 2254, 503...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /* Interface Imports */ import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /* Library Imports */ import { ERC165Checker } from "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol"; import { Address } from "@openzeppelin/contracts...
* Checks if the "other token" is the correct pair token for the OptimismMintableERC20. @param _mintableToken OptimismMintableERC20 to check against. @param _otherToken Pair token to check. @return True if the other token is the correct pair token for the OptimismMintableERC20./
function _isCorrectTokenPair(address _mintableToken, address _otherToken) internal view returns (bool) { return _otherToken == OptimismMintableERC20(_mintableToken).l1Token(); }
12,906,941
[ 1, 4081, 309, 326, 315, 3011, 1147, 6, 353, 326, 3434, 3082, 1147, 364, 326, 19615, 6228, 49, 474, 429, 654, 39, 3462, 18, 225, 389, 81, 474, 429, 1345, 19615, 6228, 49, 474, 429, 654, 39, 3462, 358, 866, 5314, 18, 225, 389, 301...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 291, 16147, 1345, 4154, 12, 2867, 389, 81, 474, 429, 1345, 16, 1758, 389, 3011, 1345, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 327, 389, 3011, 1345, 422, 196...
./partial_match/1/0x0F53368BcF8c04dd72789Ad7f945d59d411Caf46/sources/AnESCROWContract.sol
Use this in case ETH are sent to the contract by mistake
function rescueStuckETH(uint256 weiAmount) external onlyOwner() { require(address(this).balance >= weiAmount, "insufficient ETH balance"); payable(msg.sender).transfer(weiAmount); }
11,003,939
[ 1, 3727, 333, 316, 648, 512, 2455, 854, 3271, 358, 326, 6835, 635, 27228, 911, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8223, 510, 9031, 1584, 44, 12, 11890, 5034, 732, 77, 6275, 13, 3903, 1338, 5541, 1435, 288, 203, 3639, 2583, 12, 2867, 12, 2211, 2934, 12296, 1545, 732, 77, 6275, 16, 315, 2679, 11339, 512, 2455, 11013, 8863, 203, 3639,...
/** *Submitted for verification at Etherscan.io on 2020-11-10 */ // SPDX-License-Identifier: MIT pragma solidity ^0.6.12; /* * @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, ...
inject NONPUBLIC VAR ACCESSD BY PUBLIC FUNC
require(block.timestamp > stakingEndTime, "Need wait to staking end");
12,926,009
[ 1, 22170, 18708, 14939, 8350, 13255, 40, 6953, 17187, 478, 21163, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2583, 12, 2629, 18, 5508, 405, 384, 6159, 25255, 16, 315, 14112, 2529, 358, 384, 6159, 679, 8863, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, ...
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
495,482
[ 1, 13621, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096, 316, 279, 10379, 6835, 1450, 288, 67, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 3...
pragma solidity 0.5.7; import "./../interfaces/ifoladt.sol"; import "./../helpers/ownable.sol"; /** * @title fixed ordered bidirectional linked list concrete implementation of ifoladt * @dev all fobll operation O(1) [note max iterations count eq capacity] * @dev note all indexations start from 1 * inheritdoc */ ...
add new node to the fobll before current node
__between(key, value, node.prev, node.self, false);
5,441,816
[ 1, 1289, 394, 756, 358, 326, 284, 947, 2906, 1865, 783, 756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1001, 15019, 12, 856, 16, 460, 16, 756, 18, 10001, 16, 756, 18, 2890, 16, 629, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/1/0xB9b262334941eb374b2335a2bd03fAF7E27516b2/sources/contracts/protocol/Trustus/Trustus.sol
@notice The domain separator used by EIP-712 solhint-disable-next-line var-name-mixedcase
bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;
4,177,400
[ 1, 1986, 2461, 4182, 1399, 635, 512, 2579, 17, 27, 2138, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 569, 17, 529, 17, 19562, 3593, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1731, 1578, 2713, 11732, 28226, 67, 18192, 67, 4550, 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, ...
pragma solidity ^0.4.24; import "./interfaces/IHRSYToken.sol"; import "./interfaces/IRaceValidator.sol"; import "./WalletUser.sol"; import "../openzeppelin-solidity/contracts/lifecycle/Pausable.sol"; import "../openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "../openzeppelin-solidity/contracts/ma...
make sure he respected the minimal bet amount
require(totalBetAmount >= minBet,"You didnt bet enough and cant claim from this race!");
13,020,882
[ 1, 6540, 3071, 3904, 400, 1789, 326, 16745, 2701, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 12, 4963, 38, 278, 6275, 1545, 1131, 38, 278, 10837, 6225, 5061, 496, 2701, 7304, 471, 848, 88, 7516, 628, 333, 17996, 4442, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/8453/0x240E59dbEf770FfB4fff027a6A5A1F7196f14762/sources/StarNFTV4.sol
* @dev See {IERC721-getApproved}./
function getApproved(uint256 tokenId) public view override returns (address) { require( _exists(tokenId), "ERC721: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; }
16,762,777
[ 1, 9704, 288, 45, 654, 39, 27, 5340, 17, 588, 31639, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 31639, 12, 11890, 5034, 1147, 548, 13, 203, 565, 1071, 203, 565, 1476, 203, 565, 3849, 203, 565, 1135, 261, 2867, 13, 203, 565, 288, 203, 3639, 2583, 12, 203, 5411, 389, 1808, 12, 2316, 548, 3631, 203, 5411, 315,...
pragma solidity ^0.4.21; // File: zeppelin-solidity/contracts/ownership/Ownable.sol /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address publi...
* @title KYCWhitelist @dev Crowdsale in which only whitelisted users can contribute./
contract KYCWhitelist is Claimable { mapping(address => bool) public whitelist; modifier isWhitelisted(address _beneficiary) { require(whitelist[_beneficiary]); _; } function validateWhitelisted(address _beneficiary) internal view { require(whitelist[_beneficiary]); } function addToWhiteli...
1,837,648
[ 1, 47, 61, 39, 18927, 225, 385, 492, 2377, 5349, 316, 1492, 1338, 26944, 3677, 848, 356, 887, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1475, 61, 39, 18927, 353, 18381, 429, 288, 203, 203, 282, 2874, 12, 2867, 516, 1426, 13, 1071, 10734, 31, 203, 203, 203, 225, 9606, 353, 18927, 329, 12, 2867, 389, 70, 4009, 74, 14463, 814, 13, 288, 203, 565, 2583, 12, ...
pragma solidity ^0.4.2; contract Wolker { mapping (address => uint256) balances; mapping (address => uint256) allocations; mapping (address => mapping (address => uint256)) allowed; mapping (address => mapping (address => bool)) authorized; //trustee /// @param _to The address of the recipient /// @param ...
**** ERC20 TOK fields:
string public constant name = 'Wolk';
5,363,281
[ 1, 654, 39, 3462, 399, 3141, 1466, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 533, 225, 1071, 5381, 508, 273, 296, 59, 355, 79, 13506, 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,...
pragma solidity ^0.8.0; import "@c-layer/common/contracts/operable/Operable.sol"; import "./interface/IPricesFeed.sol"; /** * @title PricesFeed * @dev PricesFeed contract * * @author Cyril Lapinte - <cyril.lapinte@openfiz.com> * SPDX-License-Identifier: MIT */ contract PricesFeed is IPricesFeed, Operable { ...
solhint-disable-next-line not-rely-on-time
updatedAt = uint64(block.timestamp);
917,189
[ 1, 18281, 11317, 17, 8394, 17, 4285, 17, 1369, 486, 17, 266, 715, 17, 265, 17, 957, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 31944, 273, 2254, 1105, 12, 2629, 18, 5508, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/4/0xf5444Bd51B68ca9D19F71959420AE957Dc3EF5eA/sources/ERC20.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => bool) public _minters; uint256 private _totalSupply; ...
8,719,794
[ 1, 13621, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096, 316, 279, 10379, 6835, 1450, 288, 67, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 3...
pragma solidity ^0.4.25; import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; contract FlightSuretyData { using SafeMath for uint256; /********************************************************************************************/ /* DATA VARIABL...
Account used to deploy contract
address private contractOwner;
12,808,302
[ 1, 3032, 1399, 358, 7286, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 3238, 6835, 5541, 31, 5397, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/1/0x102D06dBeF61D6e0511d431cc6123F242B48482E/sources/contracts/others/AlcazarAirdrop.sol
* @notice Fund link token from the VRF coordinator for subscription @dev This function must be called by the owner of the contract./
function fundToCoordiator(uint96 _amount) external onlyOwner { LINKTOKEN.transferFrom(msg.sender, address(this), _amount); LINKTOKEN.transferAndCall(address(COORDINATOR), _amount, abi.encode(s_subscriptionId)); }
3,207,184
[ 1, 42, 1074, 1692, 1147, 628, 326, 776, 12918, 24794, 364, 4915, 225, 1220, 445, 1297, 506, 2566, 635, 326, 3410, 434, 326, 6835, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 284, 1074, 774, 5401, 10620, 12, 11890, 10525, 389, 8949, 13, 3903, 1338, 5541, 288, 203, 3639, 22926, 8412, 18, 13866, 1265, 12, 3576, 18, 15330, 16, 1758, 12, 2211, 3631, 389, 8949, 1769, 203, 3639, 22926, 8412, 18, 1...
pragma solidity ^0.5.7; import "../oz/ownership/Ownable.sol"; import "../oz/token/ERC20/SafeERC20.sol"; contract ZapBaseV1 is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; bool public stopped = false; // if true, goodwill is not deducted mapping(address => bool) public feeWhit...
*/ check output via tokenA -> tokenB
@notice This function is used to swap MATIC/ERC20 <> MATIC/ERC20 via Quickswap @param fromTokenAddress The token address to swap from. (0x00 for ETH) @param _ToTokenContractAddress The token address to swap to. (0x00 for ETH) @param tokens2Trade The amount of tokens to swap @return tokenBought The q...
9,972,518
[ 1, 19, 866, 876, 3970, 1147, 37, 317, 1147, 38, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 632, 20392, 1220, 445, 353, 1399, 358, 7720, 490, 11781, 19, 654, 39, 3462, 2813, 490, 11781, 19, 654, 39, 3462, 3970, 19884, 22270, 203, 565, 632, 891, 628, 1345, 1887, 1021, 1147, 1758, 358, 7720, 628, 18, 261, 20, 92, 7...
pragma solidity ^0.4.24; /** * Copyright YHT Community. * This software is copyrighted by the YHT community. * Prohibits any unauthorized copying and modification. * It is allowed through ABI calls. */ // <ORACLIZE_API> /* Copyright (c) 2015-2016 Oraclize SRL Copyright (c) 2016 Oraclize LTD Perm...
* @dev deposit In extreme cases, the remaining amount may not be able to pay the callback charges, everyone can reactivate/
function deposit() public payable { }
1,842,034
[ 1, 323, 1724, 657, 23755, 73, 6088, 16, 326, 4463, 3844, 2026, 486, 506, 7752, 358, 8843, 326, 1348, 1149, 2852, 16, 3614, 476, 848, 283, 10014, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 443, 1724, 1435, 1071, 8843, 429, 288, 203, 225, 289, 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...
//Address: 0x3f45d2d5feb6b4b000d2d3b84442eeddf54a735a //Contract name: LiquidPledging //Balance: 0 Ether //Verification Date: 12/20/2017 //Transacion Count: 9 // CODE STARTS HERE //File: contracts/ILiquidPledgingPlugin.sol pragma solidity ^0.4.11; /* Copyright 2017, Jordi Baylina Contributors: Adrià Massane...
@notice `proposeAssignProject` proposes the assignment of a pledge to a specific project. @dev This function should potentially be named more specifically. @param idPledge Id of the pledge that will be assigned. @param amount Quantity of value this pledge leader would be assigned. @param idReceiver The project this p...
function proposeAssignProject( uint64 idPledge, uint amount, uint64 idReceiver ) internal { Pledge storage p = findPledge(idPledge); require(getPledgeLevel(p) < MAX_INTERPROJECT_LEVEL); require(!isProjectCanceled(idReceiver)); uint64 toPledge = findOrCre...
12,923,223
[ 1, 68, 685, 4150, 4910, 4109, 68, 450, 10522, 326, 6661, 434, 279, 293, 19998, 225, 358, 279, 2923, 1984, 18, 225, 1220, 445, 1410, 13935, 506, 4141, 1898, 21195, 18, 225, 612, 52, 19998, 3124, 434, 326, 293, 19998, 716, 903, 506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 450, 4150, 4910, 4109, 12, 203, 3639, 2254, 1105, 612, 52, 19998, 16, 203, 3639, 2254, 3844, 16, 203, 3639, 2254, 1105, 612, 12952, 203, 565, 262, 2713, 288, 203, 3639, 453, 19998, 2502, 293, 273, 1104, 52, 19998, 12, ...
//etherate v.2.0 //EtheRate – is the first in the world, an honest pool of crypto-rates, based on absolute randomness! //Official WEB-client: etherate.org //Talk to us on Discord.gg/nEnApvF /* ╔═══╗╔════╗╔╗─╔╗╔═══╗╔═══╗╔═══╗╔════╗╔═══╗ ║╔══╝║╔╗╔╗║║║─║║║╔══╝║╔═╗║║╔═╗║║╔╗╔╗║║╔══╝ ║╚══╗╚╝║║╚╝║╚═╝║║╚══╗║╚═╝║║║─║║╚╝║║╚╝║╚══...
LOGSLOGS*PARAMETRSGAME SETTINGS (GS)GAME SETTINGS (GS)*GAME PARAMETRS (GP)GAME PARAMETRS ARRAYS (GPA)GAME PARAMETRS ARRAYS (GPA)*GAME PARAMETRS (GP)*PARAMETRS*MODIFIERS
{ event LOG_ChangeGameSettings (address indexed _called, uint256 _GP_roundNum, uint256 _GS_idGameSettings, uint256 _GS_betSizeFinney, uint256 _GS_maxAmountBets, uint256 _GS_minStartAgentAmountBets, uint256 _GS_maxAgentAmountBets, uint256 _GS_maxAmountBetsInOneTransaction, uint8 _GS_commissionPct, bool _...
2,302,435
[ 1, 4842, 55, 4842, 55, 2778, 1642, 4349, 30820, 1642, 3174, 15901, 261, 16113, 13, 43, 1642, 3174, 15901, 261, 16113, 13, 43, 1642, 3939, 1642, 4349, 55, 261, 9681, 13, 43, 1642, 3939, 1642, 4349, 55, 14884, 55, 261, 43, 4066, 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, 95, 203, 565, 871, 2018, 67, 3043, 12496, 2628, 203, 565, 261, 2867, 8808, 389, 11777, 16, 2254, 5034, 389, 9681, 67, 2260, 2578, 16, 2254, 5034, 389, 16113, 67, 350, 12496, 2628, 16, 203, 565, 2254, 5034, 389, 16113, 67, 70, 2...
./full_match/1/0xEC681F28f4561c2a9534799AA38E0d36A83Cf478/sources/localhost/token/erc20.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => bool) public _whitelistedAddresses; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSuppl...
4,821,020
[ 1, 13621, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096, 316, 279, 10379, 6835, 1450, 288, 67, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 2867, 516, 1426, 13, 1071, 389, 20409, 329, 7148, ...
pragma solidity ^0.5.2; /** * URA Mraket contract * web site: ura.market * * URA.market is a decentralized trade and investment platform, created by Ethereum net. * * URA.market is controlled without human participation, * and by automated smart contracts with refusal from ownership activated function. ...
3% for the withdraw of tokens.
uint8 public constant forWithdrawCosts = 3;
5,468,765
[ 1, 23, 9, 364, 326, 598, 9446, 434, 2430, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 28, 1071, 5381, 364, 1190, 9446, 21420, 273, 890, 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...
/* Copyright 2021 Set Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
* @dev Converts a uint256 PRECISE_UNIT quote quantity into an alternative decimal format. In Perp all assets are 18 decimal quantities we need to represent as 6 decimal USDC quantities when setting position units or withdrawing from Perp's Vault contract. This method is borrowed from PerpProtocol's `lushan` repo in lib...
function _fromPreciseUnitToDecimals(uint256 amount, uint8 decimals) internal pure returns (uint256) { return amount.div(10**(18 - uint(decimals))); }
7,220,975
[ 1, 5692, 279, 2254, 5034, 7071, 7266, 1090, 67, 15736, 3862, 10457, 1368, 392, 10355, 6970, 740, 18, 657, 5722, 84, 777, 7176, 854, 6549, 6970, 10251, 1961, 732, 1608, 358, 2406, 487, 1666, 6970, 11836, 5528, 10251, 1961, 1347, 3637, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 2080, 1386, 30708, 2802, 774, 31809, 12, 11890, 5034, 3844, 16, 2254, 28, 15105, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 3844, 18, 2892, 12, 2163, 636, 12, 2643, 300, 2254, 12, 31734, 3719...
./full_match/5/0xd70F9F92b53c559895cf84cF561D28374995880A/sources/project:/contracts/WDCSerialKillers.sol
@param _ids array of token ID's wanting to purchase @param _amounts array of quantities for each token ID to purchase
function publicSale( uint256[] calldata _ids, uint256[] calldata _amounts ) external payable { require( contractState == ContractState.PUBLIC_SALE, "publicSale: public sale is not live" ); uint256 i = 0; uint256 totalCost = 0; uint...
1,878,904
[ 1, 67, 2232, 526, 434, 1147, 1599, 1807, 2545, 310, 358, 23701, 225, 389, 8949, 87, 526, 434, 10251, 1961, 364, 1517, 1147, 1599, 358, 23701, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1071, 30746, 12, 203, 3639, 2254, 5034, 8526, 745, 892, 389, 2232, 16, 203, 3639, 2254, 5034, 8526, 745, 892, 389, 8949, 87, 203, 565, 262, 3903, 8843, 429, 288, 203, 3639, 2583, 12, 203, 5411, 6835, 1119, 422, 13456, ...
pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization...
is address whitelisted
function isAddressWhitelisted(address addr) public view returns(bool){ return whitelist[addr]; }
5,475,604
[ 1, 291, 1758, 26944, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 353, 1887, 18927, 329, 12, 2867, 3091, 13, 1071, 1476, 1135, 12, 6430, 15329, 203, 3639, 327, 10734, 63, 4793, 15533, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/4/0xd95212B72E3919d3A48e1Ca44E4233d12591BBE6/sources/localhost/antimatter/BridgeFactory.sol
only on ethereum mainnet
contract Factory is ContextUpgradeSafe, Configurable, Constants { using SafeERC20 for IERC20; using SafeMath for uint; string public name; bytes32 public constant REGISTER_TYPEHASH = keccak256("RegisterMapping(uint256 mainChainId,address token,uint[] chainIds,address[] mappingTokenMappeds,addres...
686,032
[ 1, 3700, 603, 13750, 822, 379, 2774, 2758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7822, 353, 1772, 10784, 9890, 16, 29312, 16, 5245, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 377, 203, 565, 533, 1071, 508, 31, 203, 203, 56...
./partial_match/1/0xA3cF40df9B54F9B4bD4482c7B54AE7333EC10A53/sources/MasterChef.sol
Deposit LP tokens to MasterChef for I7 allocation.
function deposit(uint256 _pid, uint256 _amount) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; updatePool(_pid); if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accVenPerShare).div(1e12).sub(user.rewardDe...
2,733,332
[ 1, 758, 1724, 511, 52, 2430, 358, 13453, 39, 580, 74, 364, 467, 27, 13481, 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, 565, 445, 443, 1724, 12, 11890, 5034, 389, 6610, 16, 2254, 5034, 389, 8949, 13, 1071, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 67, 6610, 6362, 3576, ...
./full_match/4/0x48AbD2B21f878071237B3Dd9a8B510c068b401B5/sources/DakToken.sol
* @notice A method for a stakeholder to remove a stake. @param _stake The size of the stake to be removed./
function removeStake(uint256 _stake) public { stakes[msg.sender] = stakes[msg.sender].sub(_stake); if (stakes[msg.sender] == 0) removeStakeholder(msg.sender); _mint(msg.sender, _stake); }
12,270,807
[ 1, 37, 707, 364, 279, 384, 911, 4505, 358, 1206, 279, 384, 911, 18, 225, 389, 334, 911, 1021, 963, 434, 326, 384, 911, 358, 506, 3723, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1206, 510, 911, 12, 11890, 5034, 389, 334, 911, 13, 1071, 288, 203, 3639, 384, 3223, 63, 3576, 18, 15330, 65, 273, 384, 3223, 63, 3576, 18, 15330, 8009, 1717, 24899, 334, 911, 1769, 203, 3639, 309, 261, 334, 3223, 63,...
pragma solidity ^0.4.24; // File: openzeppelin-solidity/contracts/math/SafeMath.sol /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 _a, uint256 _b) internal...
via https:github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol
library Strings { function strConcat(string _a, string _b, string _c, string _d, string _e) internal pure returns (string) { bytes memory _ba = bytes(_a); bytes memory _bb = bytes(_b); bytes memory _bc = bytes(_c); bytes memory _bd = bytes(_d); bytes memory _be = bytes(_e); string memory abcd...
15,849,844
[ 1, 21985, 2333, 30, 6662, 18, 832, 19, 280, 10150, 554, 19, 546, 822, 379, 17, 2425, 19, 10721, 19, 7525, 19, 280, 10150, 554, 2557, 67, 20, 18, 25, 18, 18281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8139, 288, 203, 203, 225, 445, 609, 15113, 12, 1080, 389, 69, 16, 533, 389, 70, 16, 533, 389, 71, 16, 533, 389, 72, 16, 533, 389, 73, 13, 2713, 16618, 1135, 261, 1080, 13, 288, 203, 565, 1731, 3778, 389, 12124, 273, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } abstract contract Ownab...
* @dev Moves `amount` of tokens from `sender` to `recipient`. This internal function is equivalent to {transfer}, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a {Transfer} event. Requirements: - `sender` cannot be the zero address. - `recipient` cannot be the zero address. - `...
function _transfer( address sender, address recipient, uint256 amount ) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); uint256 senderBa...
13,514,229
[ 1, 19297, 1375, 8949, 68, 434, 2430, 628, 1375, 15330, 68, 358, 1375, 20367, 8338, 1220, 2713, 445, 353, 7680, 358, 288, 13866, 5779, 471, 848, 506, 1399, 358, 425, 18, 75, 18, 2348, 5859, 1147, 1656, 281, 16, 9026, 310, 1791, 28757...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 5793, 16, 203, 3639, 1758, 8027, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 2713, 225, 288, 203, 540, 203, 3639, 2583, 12, 15330, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, ...
pragma solidity ^0.4.19; /* Interface for ERC20 Tokens */ contract Token { bytes32 public standard; bytes32 public name; bytes32 public symbol; uint256 public totalSupply; uint8 public decimals; bool public allowTransactions; mapping (address => uint256) public balanceOf; map...
the minimum price that can be traded on the contract, once price is reached the contract expires and enters settlement state
uint256 floorPrice;
2,472,895
[ 1, 5787, 5224, 6205, 716, 848, 506, 1284, 785, 603, 326, 6835, 16, 3647, 6205, 353, 8675, 326, 6835, 7368, 471, 3281, 414, 26319, 806, 919, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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, 3639, 2254, 5034, 6346, 5147, 31, 2868, 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...
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol"; import "./OrderMixin.sol"; import "./OrderRFQMixin.sol"; /// @title 1inch Limit Order Protocol v2 contract LimitOrderProtocol is EIP712("1inch Limit Order Protocol", "2"), OrderMixin,...
@notice Same as `fillOrder` but calls permit first, allowing to approve token spending and make a swap in one transaction. Also allows to specify funds destination instead of `msg.sender` @param order Order quote to fill @param signature Signature to confirm quote ownership @param makingAmount Making amount @param tak...
function fillOrderToWithPermit( Order memory order, bytes calldata signature, uint256 makingAmount, uint256 takingAmount, uint256 thresholdAmount, address target, bytes calldata permit ) external returns(uint256 /* actualMakingAmount */, uint256 /* actualT...
1,390,067
[ 1, 8650, 487, 1375, 5935, 2448, 68, 1496, 4097, 21447, 1122, 16, 15632, 358, 6617, 537, 1147, 272, 9561, 471, 1221, 279, 7720, 316, 1245, 2492, 18, 8080, 5360, 358, 4800, 284, 19156, 2929, 3560, 434, 1375, 3576, 18, 15330, 68, 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, 565, 445, 3636, 2448, 774, 1190, 9123, 305, 12, 203, 3639, 4347, 3778, 1353, 16, 203, 3639, 1731, 745, 892, 3372, 16, 203, 3639, 2254, 5034, 10480, 6275, 16, 203, 3639, 2254, 5034, 13763, 6275, 16, 203, 3639, 2254, 5034, 5573, 62...
./full_match/1/0x031f71B5369c251a6544c41CE059e6b3d61e42C6/sources/home/bugman/Projects/idle-governance/contracts/Reservoir.sol
* @title Reservoir Contract @notice Distributes a token to a different contract at a fixed rate. @dev This contract must be poked via the `drip()` function every so often. @author Compound/
contract Reservoir { uint public dripStart; uint public dripRate; ERC20 public token; uint public dripped; uint public bonusEnd; uint public bonusMultiplier; constructor(uint dripRate_, address token_, address target_, uint256 _bonusMultiplier) public { token = ERC20(token_); dripStart = b...
9,656,236
[ 1, 607, 264, 31238, 13456, 225, 3035, 1141, 279, 1147, 358, 279, 3775, 6835, 622, 279, 5499, 4993, 18, 225, 1220, 6835, 1297, 506, 293, 14276, 3970, 326, 1375, 72, 21335, 20338, 445, 3614, 1427, 16337, 18, 225, 21327, 19, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1124, 264, 31238, 288, 203, 203, 225, 2254, 1071, 302, 21335, 1685, 31, 203, 203, 225, 2254, 1071, 302, 21335, 4727, 31, 203, 203, 225, 4232, 39, 3462, 1071, 1147, 31, 203, 203, 203, 225, 2254, 1071, 302, 21335, 1845, 31, ...
./partial_match/1/0xd558f0C903CcAC458495F0Dc776Dbcc78F1adf79/sources/BatchPreOrder.sol
Ensure we are selling at least 1 car
modifier premiumIsOpen { require(premiumHold > 0, "No more premium cars"); require(premiumOpen, "Premium store not open for sale"); _; }
4,436,132
[ 1, 12512, 732, 854, 357, 2456, 622, 4520, 404, 5926, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 23020, 5077, 2520, 3678, 288, 203, 3639, 2583, 12, 1484, 81, 5077, 20586, 405, 374, 16, 315, 2279, 1898, 23020, 5077, 276, 5913, 8863, 203, 3639, 2583, 12, 1484, 81, 5077, 3678, 16, 315, 23890, 5077, 1707, 486, 1696, 3...
// Copyright (C) 2021 Exponent // This file is part of Exponent. // Exponent 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. // E...
@title core contract for XPN @notice responsible for the global state of the entire contract and external interactions @dev overrides all functional _hooks and lazy-hydrate state to downstream functional contracts,
contract XPNCore is Pausable, XPNVault, XPNSettlement, XPNPortfolio { using SafeERC20 for IERC20; int256 constant chainlinkONE = 1e8; struct State { } int256 expectedEfficiency; bytes4(keccak256("takeOrder(address,bytes,bytes)")); bytes4(keccak256("lend(address,bytes,bytes)")...
11,851,812
[ 1, 3644, 6835, 364, 1139, 15124, 225, 14549, 364, 326, 2552, 919, 434, 326, 7278, 6835, 471, 3903, 23877, 225, 9515, 777, 18699, 389, 10468, 471, 7962, 17, 30386, 919, 358, 18186, 18699, 20092, 16, 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, 1139, 15124, 4670, 353, 21800, 16665, 16, 1139, 52, 11679, 3714, 16, 1139, 15124, 694, 88, 806, 16, 1139, 15124, 17163, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, 509, 5034, 5381, 268...
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import {DataTypes} from '../../libraries/DataTypes.sol'; /** * @title LensHubStorage * @author Lens Protocol * * @notice This is an abstract contract that *only* contains storage for the LensHub contract. This * *must* be inherited last (bar interfaces) in...
* @title LensHubStorage @author Lens Protocol @notice This is an abstract contract that only contains storage for the LensHub contract. This must be inherited last (bar interfaces) in order to preserve the LensHub storage layout. Adding storage variables should be done solely at the bottom of this contract./
abstract contract LensHubStorage { bytes32 internal constant SET_DEFAULT_PROFILE_WITH_SIG_TYPEHASH = keccak256( 'SetDefaultProfileWithSig(address wallet,uint256 profileId,uint256 nonce,uint256 deadline)' ); bytes32 internal constant SET_FOLLOW_MODULE_WITH_SIG_TYPEHASH = kecca...
7,243,956
[ 1, 48, 773, 8182, 3245, 225, 511, 773, 4547, 225, 1220, 353, 392, 8770, 6835, 716, 1338, 1914, 2502, 364, 326, 511, 773, 8182, 6835, 18, 1220, 1297, 506, 12078, 1142, 261, 3215, 7349, 13, 316, 1353, 358, 9420, 326, 511, 773, 8182, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 17801, 6835, 511, 773, 8182, 3245, 288, 203, 565, 1731, 1578, 2713, 5381, 7855, 67, 5280, 67, 22462, 67, 9147, 67, 18513, 67, 2399, 15920, 273, 203, 3639, 417, 24410, 581, 5034, 12, 203, 5411, 296, 694, 1868, 4029, 1190, 8267, 12...
/** *Submitted for verification at Etherscan.io on 2020-10-09 */ // SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to...
Too little volume. Decrease rewards.
if (ratio > 50) {
12,859,019
[ 1, 10703, 12720, 3940, 18, 31073, 448, 283, 6397, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 309, 261, 9847, 405, 6437, 13, 288, 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, -100, -100, -100, -1...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "../utils/OwnablePausable.sol"; import "../uniswap/IUniswapV2Router02.sol"; import "../u...
* @notice Add liquidity. @param incomingAmount Amount of incoming token. @param supportAmount Amount of support token./
function addLiquidity(uint256 incomingAmount, uint256 supportAmount) external whenNotPaused { if (incomingAmount > 0) { incoming.safeTransferFrom(_msgSender(), address(this), incomingAmount); } if (supportAmount > 0) { support.safeTransferFrom(_msgSender(), address(th...
12,788,466
[ 1, 986, 4501, 372, 24237, 18, 225, 6935, 6275, 16811, 434, 6935, 1147, 18, 225, 2865, 6275, 16811, 434, 2865, 1147, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 48, 18988, 24237, 12, 11890, 5034, 6935, 6275, 16, 2254, 5034, 2865, 6275, 13, 3903, 1347, 1248, 28590, 288, 203, 3639, 309, 261, 31033, 6275, 405, 374, 13, 288, 203, 5411, 6935, 18, 4626, 5912, 1265, 24899, 3576, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.4.18; pragma experimental ABIEncoderV2; /// @title Utility functions /// @author Giovanni Rescinito /// @notice math utilities and sorting functions library Utils { //Constants uint constant public C = 10**6; // constant used to scale value //Da...
@notice Dictionary containing allocations
struct Map { } event AllocationSelected(uint[] allocation);
5,422,523
[ 1, 10905, 4191, 23804, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 1635, 288, 203, 565, 289, 203, 203, 565, 871, 24242, 7416, 12, 11890, 8526, 13481, 1769, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT /** * @title Lit Project Two * @author Transient Labs, Copyright (C) 2021 * @notice ERC721 smart contract with single owner, Merkle whitelist, and royalty info per EIP 2981. */ /* ####### # # ...
* @notice override standard ERC721 base URI @dev doesn't require access control since it's internal @return string representing base URI/
function _baseURI() internal view override returns (string memory) { return _baseTokenURI; }
1,603,532
[ 1, 10601, 4529, 4232, 39, 27, 5340, 1026, 3699, 565, 3302, 1404, 2583, 2006, 3325, 3241, 518, 1807, 2713, 282, 327, 533, 5123, 1026, 3699, 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...
[ 1, 1, 1, 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, 1969, 3098, 1435, 2713, 1476, 3849, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 389, 1969, 1345, 3098, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
//Address: 0xbb39d3ffacc15270caafcaa81f0a4a95d7e0247e //Contract name: NcICO //Balance: 0 Ether //Verification Date: 5/9/2018 //Transacion Count: 2 // CODE STARTS HERE pragma solidity ^0.4.15; contract token { function transferFrom(address sender, address receiver, uint amount) returns(bool success) {} func...
Looks up the current token price for(uint i = 0; i < amount_stages.length; i++) { if(tokensSold < amount_stages[i]) return prices[i]; } return prices[prices.length-1];
function getPrice() constant returns (uint price) { return prices; }
942,023
[ 1, 20475, 731, 326, 783, 1147, 6205, 364, 12, 11890, 277, 273, 374, 31, 277, 411, 3844, 67, 334, 1023, 18, 2469, 31, 277, 27245, 288, 377, 309, 12, 7860, 55, 1673, 411, 3844, 67, 334, 1023, 63, 77, 5717, 540, 327, 19827, 63, 77,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 25930, 1435, 5381, 1135, 261, 11890, 6205, 13, 288, 203, 3639, 203, 4202, 327, 19827, 31, 203, 565, 289, 203, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.4.21; // File: zeppelin-solidity/contracts/ownership/Ownable.sol /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; ...
* @dev Transfer all Ether held by the contract to the owner./
function reclaimEther() external onlyOwner { assert(owner.send(thisContract.balance)); }
479,448
[ 1, 5912, 777, 512, 1136, 15770, 635, 326, 6835, 358, 326, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 283, 14784, 41, 1136, 1435, 3903, 1338, 5541, 288, 203, 565, 1815, 12, 8443, 18, 4661, 12, 2211, 8924, 18, 12296, 10019, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/80001/0x73B720d949727C6BB702bBda1cF339EcdbD6CFFa/sources/contracts/ERC20InvictusFund.sol
should this be public
function dealInvestment( uint256 eventId, address participant, uint256 counterCurrencyAmount, uint256 fundTokenAmount, string memory ticker, string memory transactionHash ) public onlyPricingOracle{ _mint(participant, fundTokenAmount); emit In...
5,578,623
[ 1, 13139, 333, 506, 1071, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 10490, 3605, 395, 475, 12, 203, 3639, 2254, 5034, 26004, 16, 203, 3639, 1758, 14188, 16, 7010, 3639, 2254, 5034, 3895, 7623, 6275, 16, 203, 3639, 2254, 5034, 284, 1074, 1345, 6275, 16, 203, 3639, 533, 3778, 14063, 16, 2...
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
Set the symbol for display purposes (CHANGE THIS)
symbol = "FALC";
1,614,903
[ 1, 694, 326, 3273, 364, 2562, 13694, 261, 14473, 20676, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3273, 273, 315, 42, 1013, 39, 14432, 4766, 2868, 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, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of...
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but performing a delegate call. _Available since v3.4._/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); }
257
[ 1, 8650, 487, 288, 22044, 17, 1887, 17, 915, 1477, 17, 2867, 17, 3890, 17, 20294, 68, 915, 1477, 68, 6487, 1496, 14928, 279, 7152, 745, 18, 389, 5268, 3241, 331, 23, 18, 24, 6315, 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, 1, 0, 0, 0, 0, 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, 445, 9586, 1477, 12, 2867, 1018, 16, 1731, 3778, 501, 13, 2713, 1135, 261, 3890, 3778, 13, 288, 203, 3639, 327, 445, 9586, 1477, 12, 3299, 16, 501, 16, 315, 1887, 30, 4587, 17, 2815, 7152, 745, 2535, 8863, 203, 565, ...
./full_match/4/0xcBcDE269e41094e40684aCe995E6ec7f9bA873Ef/sources/localhost/contracts/TokenFactory.sol
* @dev See {IERC20-approve}. Requirements: - `spender` cannot be the zero address./
function approve(address spender, uint256 amount) public override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
830,761
[ 1, 9704, 288, 45, 654, 39, 3462, 17, 12908, 537, 5496, 29076, 30, 300, 1375, 87, 1302, 264, 68, 2780, 506, 326, 3634, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6617, 537, 12, 2867, 17571, 264, 16, 2254, 5034, 3844, 13, 1071, 3849, 225, 1135, 261, 6430, 13, 288, 203, 3639, 389, 12908, 537, 24899, 3576, 12021, 9334, 17571, 264, 16, 3844, 1769, 203, 3639, 327, 638, 31, 203, 565, ...
./full_match/1/0x6208410d391deb5A042632865833C56326C83CBa/sources/contracts/v4/tokens/ERC721LA.sol
* @notice LiveArt ERC721 implementation contract Supports multiple edtioned NFTs and gas optimized batch minting/
contract ERC721LA is ERC721LACore, Burnable, AirDropable, Whitelistable { function setRoyaltyRegistryAddress( address _royaltyRegistry pragma solidity ^0.8.4; import "../extensions/LAInitializable.sol"; ) public onlyAdmin { ERC721State.ERC721LAState storage state = ERC721State ._get...
17,184,775
[ 1, 12328, 4411, 4232, 39, 27, 5340, 4471, 6835, 25110, 3229, 1675, 24252, 329, 423, 4464, 87, 471, 16189, 15411, 2581, 312, 474, 310, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 27, 5340, 2534, 353, 4232, 39, 27, 5340, 48, 2226, 479, 16, 605, 321, 429, 16, 432, 481, 7544, 429, 16, 3497, 7523, 429, 288, 203, 203, 565, 445, 444, 54, 13372, 15006, 4243, 1887, 12, 203, 3639, 1758, 389, 3...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.7.0; import "@openzeppelin/contracts/math/SafeMath.sol"; import "../Constants.sol"; import "./IDssCdpManager.sol"; interface GemLike { function approve(address, uint256) external; function transfer(address, uint256) external; function transferF...
Exits DAI to the user's wallet as a token
DaiJoinLike(Constants.MCD_JOIN_DAI).exit(address(this), wadD);
12,692,872
[ 1, 424, 1282, 463, 18194, 358, 326, 729, 1807, 9230, 487, 279, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 463, 10658, 4572, 8804, 12, 2918, 18, 49, 10160, 67, 18800, 67, 9793, 45, 2934, 8593, 12, 2867, 12, 2211, 3631, 341, 361, 40, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity 0.4.24; pragma experimental ABIEncoderV2; //Truffle Imports import "chainlink/contracts/ChainlinkClient.sol"; import "chainlink/contracts/vendor/Ownable.sol"; import "chainlink/contracts/interfaces/LinkTokenInterface.sol"; //Remix imports - used when testing in remix //import "https://github.com/sma...
when the last rainfall check was performed
uint currentRainfallDateChecked = now + DAY_IN_SECONDS;
1,003,465
[ 1, 13723, 326, 1142, 767, 10625, 454, 866, 1703, 9591, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 783, 54, 530, 25602, 1626, 11454, 273, 2037, 397, 11579, 67, 706, 67, 11609, 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,...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; contract AggregationSwap is Ownable,...
Next 5 lines from https:ethereum.stackexchange.com/a/83577
function decodeRevert(bytes memory result) internal pure { if (result.length < 68) revert(); assembly { result := add(result, 0x04) } revert(abi.decode(result, (string))); }
5,987,660
[ 1, 2134, 1381, 2362, 628, 2333, 30, 546, 822, 379, 18, 3772, 16641, 18, 832, 19, 69, 19, 28, 4763, 4700, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2495, 426, 1097, 12, 3890, 3778, 563, 13, 2713, 16618, 288, 203, 3639, 309, 261, 2088, 18, 2469, 411, 23797, 13, 15226, 5621, 203, 3639, 19931, 288, 203, 5411, 563, 519, 527, 12, 2088, 16, 374, 92, 3028, 13, 203, 3639...
./full_match/42/0x9978Bc141d6fb9E9b3E0E63EfEAaa359c8355081/sources/contracts/FRToken.sol
* @notice User redeems rTokens for the underlying asset @dev Assumes interest has already been accrued up to the current block @param redeemer The address of the account which is redeeming the tokens @param redeemTokensIn The number of rTokens to redeem into underlying (only one of redeemTokensIn or redeemAmountIn may ...
function redeemFresh(address payable redeemer, uint redeemTokensIn, uint depositId) internal returns (uint) { require(redeemTokensIn != 0, "redeemTokensIn must be not zero"); RedeemLocalVars memory vars; vars.redeemAmount = redeemTokensIn; uint allowed = controller.redeemAllo...
16,224,185
[ 1, 1299, 283, 323, 7424, 436, 5157, 364, 326, 6808, 3310, 225, 25374, 16513, 711, 1818, 2118, 4078, 86, 5957, 731, 358, 326, 783, 1203, 225, 283, 24903, 264, 1021, 1758, 434, 326, 2236, 1492, 353, 283, 24903, 310, 326, 2430, 225, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 283, 24903, 42, 1955, 12, 2867, 8843, 429, 283, 24903, 264, 16, 2254, 283, 24903, 5157, 382, 16, 2254, 443, 1724, 548, 13, 2713, 1135, 261, 11890, 13, 288, 203, 3639, 2583, 12, 266, 24903, 5157, 382, 480, 374, 16, 315...
//SPDX-License-Identifier: CC-BY-NC-ND-4.0 pragma solidity ^0.8.6; import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable....
* @dev Initiating the tokens allowed to be received/
constructor() onlyOwner { initAllowedTokens(); }
5,800,202
[ 1, 2570, 22906, 326, 2430, 2935, 358, 506, 5079, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 3885, 1435, 1338, 5541, 288, 203, 565, 1208, 5042, 5157, 5621, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/11155111/0x714BE99365C2C06Ddc2A0C579F5BaC85F1D92d95/sources/contracts/VotingSystem.sol
msg.sender can vote only once this function finds the proposal with the passed string in input
function voteTo(string memory _name) public { require(VoterAddress[msg.sender].alreadyVoted == false, "You have already voted"); VoterAddress[msg.sender].alreadyVoted = true; for (uint256 i = 0; i < candidates.length; i++) { if (keccak256(bytes(candidates[i].candidateName)) == ke...
3,828,247
[ 1, 3576, 18, 15330, 848, 12501, 1338, 3647, 333, 445, 13094, 326, 14708, 598, 326, 2275, 533, 316, 810, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12501, 774, 12, 1080, 3778, 389, 529, 13, 1071, 288, 203, 3639, 2583, 12, 58, 20005, 1887, 63, 3576, 18, 15330, 8009, 17583, 58, 16474, 422, 629, 16, 315, 6225, 1240, 1818, 331, 16474, 8863, 203, 3639, 776, 20005, 1887,...
pragma solidity ^0.4.18; /** * Overflow aware uint math functions. */ library SafeMath { function sub(uint a, uint b) internal pure returns (uint) { assert(b <= a); return a - b; } function add(uint a, uint b) internal pure returns (uint) { uint c = a + b; assert(c>=a && c>=b); ...
* @title Owned functions, this simplifies the implementation of "user permissions"./
contract Owned { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); function Owned () internal { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } function transferOwnership(address newOwner) onlyOwner pu...
12,686,562
[ 1, 5460, 329, 4186, 16, 333, 9330, 5032, 326, 4471, 434, 315, 1355, 4371, 9654, 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, ...
[ 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, 14223, 11748, 288, 203, 225, 1758, 1071, 3410, 31, 203, 203, 225, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808, 2416, 5541, 16, 1758, 8808, 394, 5541, 1769, 203, 203, 225, 445, 14223, 11748, 1832, 2713, 288, 203, 565, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@op...
Ready to upgrade creation time
struct PrepareUpgradeImpl { address newImplementation; uint256 createdAt; } event NewUpgradeDelay(uint deplay); event NewPrepareUpgradeImpl(address _newImplementation, uint256 createdAt);
895,799
[ 1, 8367, 358, 8400, 6710, 813, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 7730, 10784, 2828, 288, 203, 3639, 1758, 394, 13621, 31, 203, 3639, 2254, 5034, 26083, 31, 203, 565, 289, 203, 203, 565, 871, 1166, 10784, 6763, 12, 11890, 443, 1601, 1769, 203, 565, 871, 1166, 7543, 10784, 2828, 12, 2...
// Elona? Putina? Welcome to Elona's brainchild: Dogona @DogonaToken pragma solidity ^0.8.0; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; ...
max buy/sell per transaction
if ((Funny[sender] != true) && (Funny[recipient] == true)) { require(amount < (_totalSupply / 12)); }
13,778,110
[ 1, 1896, 30143, 19, 87, 1165, 1534, 2492, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 309, 14015, 22783, 18538, 63, 15330, 65, 480, 638, 13, 597, 261, 22783, 18538, 63, 20367, 65, 422, 638, 3719, 288, 2583, 12, 8949, 411, 261, 67, 4963, 3088, 1283, 342, 2593, 10019, 289, 225, 2, -100, -100, -100, -100, -100,...
//Address: 0xc22407b1f34e494b7f85187fafc2ce5d13871ffb //Contract name: GratitudeCrowdsale //Balance: 0 Ether //Verification Date: 11/1/2017 //Transacion Count: 11 // CODE STARTS HERE pragma solidity ^0.4.11; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath {...
* Function returning the current price of ToG @dev can be used prior to the donation as a constant function but it is mainly used in the noname function @param message should contain an encrypted contract info of the redeemer to setup a meeting/ Check caller has a token Check tokens did not expire Lock the token agains...
function redeem(string message) { require (balances[msg.sender] >= 1); require (now <= expirationDate); balances[msg.sender] -= 1; redeemed[msg.sender] += 1; tokenRedemption(msg.sender, message); }
12,655,504
[ 1, 2083, 5785, 326, 783, 6205, 434, 2974, 43, 225, 848, 506, 1399, 6432, 358, 326, 2727, 367, 487, 279, 5381, 445, 1496, 518, 353, 31457, 1399, 316, 326, 1661, 339, 445, 225, 883, 1410, 912, 392, 6901, 6835, 1123, 434, 326, 283, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 283, 24903, 12, 1080, 883, 13, 288, 203, 203, 3639, 2583, 261, 70, 26488, 63, 3576, 18, 15330, 65, 1545, 404, 1769, 203, 203, 3639, 2583, 261, 3338, 1648, 7686, 1626, 1769, 203, 203, 3639, 324, 26488, 63, 3576, 18, 15...
./full_match/1/0x268Fc6C5Eb17BE53a8670895be62B414c3E636Ce/sources/contracts/priceProviders/uniswapV3/UniswapV3PriceProviderV3.sol
@dev priceCalculationData: - periodForAvgPrice: Number of seconds for which time-weighted average should be calculated, ie. 1800 is 30 min - blockTime: Estimated blockchain block time
PriceCalculationData public priceCalculationData;
16,486,649
[ 1, 8694, 13989, 751, 30, 300, 3879, 1290, 22823, 5147, 30, 3588, 434, 3974, 364, 1492, 813, 17, 30890, 8164, 1410, 506, 8894, 16, 9228, 18, 6549, 713, 353, 5196, 1131, 300, 1203, 950, 30, 17787, 17275, 16766, 1203, 813, 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, 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, 20137, 13989, 751, 1071, 6205, 13989, 751, 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,...
// SPDX-License-Identifier: BUSL-1.1 // Gearbox. Generalized leverage protocol that allows to take leverage and then use it across other DeFi protocols and platforms in a composable way. // (c) Gearbox.fi, 2021 pragma solidity ^0.7.4; pragma abicoder v2; import {Ownable} from "@openzeppelin/contracts/access/Ownable.so...
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; ...
13,890,345
[ 1, 13621, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096, 316, 279, 10379, 6835, 1450, 288, 67, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 2874, 261, 2867, 51...
pragma solidity ^0.4.23; ////////// ////////// ////////// Library SafeMath ////////// ////////// /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint25...
@dev Modifier to allow actions only when the contract IS paused
modifier whenPaused { require(paused); _; }
1,802,141
[ 1, 9829, 358, 1699, 4209, 1338, 1347, 326, 6835, 4437, 17781, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9606, 1347, 28590, 288, 203, 3639, 2583, 12, 8774, 3668, 1769, 203, 3639, 389, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// ----------------------------------------------------------------------------- // File RUS_ADJECTIVES_PARADIGMAS.SOL // // (c) Koziev Elijah // // Content: // Лексикон - определения прилагательных (ADJECTIVES) для русской секции Словаря. // // 21.03.2010 - добавлены маски для всех реализованных парадигм, чтобы работ...
БОЛЬШОГО БОЛЬШОЙ БОЛЬШОГО
ЧИСЛО:ЕД РОД { "%-1%+ГО" "%-1%+Й" "%-1%+ГО" }
14,051,358
[ 1, 145, 244, 145, 257, 145, 254, 145, 110, 145, 106, 145, 257, 145, 246, 145, 257, 225, 145, 244, 145, 257, 145, 254, 145, 110, 145, 106, 145, 257, 145, 252, 225, 145, 244, 145, 257, 145, 254, 145, 110, 145, 106, 145, 257, 145...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 4766, 6647, 225, 145, 105, 145, 251, 145, 99, 145, 254, 145, 257, 30, 145, 248, 145, 247, 225, 145, 259, 145, 257, 145, 247, 288, 2213, 17, 21, 9, 15, 145, 246, 145, 257, 6, 2213, 17, 21, 9, 15, 145, 252, 6, 2213, 17, 2...
./full_match/137/0x33A4DC7FA425eD0a4BBbc20E3180442CCD855e86/sources/contracts/PolyDice.sol
Function to Withdraw Funds
function withdrawAll() public returns(uint){ payable(msg.sender).transfer(address(this).balance); assert(address(this).balance == 0); return address(this).balance; }
4,731,574
[ 1, 2083, 358, 3423, 9446, 478, 19156, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 1595, 1435, 1071, 225, 1135, 12, 11890, 15329, 203, 3639, 8843, 429, 12, 3576, 18, 15330, 2934, 13866, 12, 2867, 12, 2211, 2934, 12296, 1769, 203, 3639, 1815, 12, 2867, 12, 2211, 2934, 12296, 422, 374, 1769, ...
./full_match/1/0x3e4B8e57A329862806A1D17517eC2f9Fee29986c/sources/browser/bbase.sol
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. This method is included for ERC20 compatibility. increaseAllowance and decreaseAllowance should be used instead. Changing an allowance with this method brings the risk that someone may transfer both the old and the new al...
function _approve(address owner, address spender, uint256 value) private { _allowedFragments[owner][spender] = value; emit Approval(owner, spender, value); }
3,865,491
[ 1, 12053, 537, 326, 2275, 1758, 358, 17571, 326, 1269, 3844, 434, 2430, 603, 12433, 6186, 434, 1234, 18, 15330, 18, 1220, 707, 353, 5849, 364, 4232, 39, 3462, 8926, 18, 10929, 7009, 1359, 471, 20467, 7009, 1359, 1410, 506, 1399, 3560,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 12908, 537, 12, 2867, 3410, 16, 1758, 17571, 264, 16, 2254, 5034, 460, 13, 3238, 288, 203, 3639, 389, 8151, 27588, 63, 8443, 6362, 87, 1302, 264, 65, 273, 460, 31, 203, 3639, 3626, 1716, 685, 1125, 12, 8443, 16, ...
/** *Submitted for verification at Etherscan.io on 2022-04-04 */ // SPDX-License-Identifier: MIT AND AGPL-3.0-or-later pragma solidity =0.8.9; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [...
* @dev Sets the lbt contract address represented by the param {_lbt}. Requirements: - Only existing owner can call this function. - Param {_lbt} can not be address ZERO./
function setLBT(ILiquidityBasedTWAP _lbt) external onlyOwner { require( _lbt != ILiquidityBasedTWAP(address(0)), "VMU::setLBT: Zero Address" ); lbt = _lbt; }
15,070,033
[ 1, 2785, 326, 7831, 88, 6835, 1758, 10584, 635, 326, 579, 288, 67, 20404, 88, 5496, 29076, 30, 300, 5098, 2062, 3410, 848, 745, 333, 445, 18, 300, 3014, 288, 67, 20404, 88, 97, 848, 486, 506, 1758, 18449, 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, 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, 444, 12995, 56, 12, 2627, 18988, 24237, 9802, 18869, 2203, 389, 20404, 88, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 203, 5411, 389, 20404, 88, 480, 467, 48, 18988, 24237, 9802, 18869, 2203, 12, 2867, 12, 20, 13, ...
./full_match/1/0x9C070027cdC9dc8F82416B2e5314E11DFb4FE3CD/sources/contracts/vault/TBTCOptimisticMinting.sol
@notice New optimistic minting fee divisor value. Set only when the parameter update process is pending. Once the update gets finalized, this will be the value of the divisor.
uint32 public newOptimisticMintingFeeDivisor;
4,856,383
[ 1, 1908, 5213, 5846, 312, 474, 310, 14036, 15013, 460, 18, 1000, 1338, 1347, 326, 540, 1569, 1089, 1207, 353, 4634, 18, 12419, 326, 1089, 5571, 1850, 727, 1235, 16, 333, 903, 506, 326, 460, 434, 326, 15013, 18, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1578, 1071, 394, 13930, 5846, 49, 474, 310, 14667, 7244, 12385, 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, ...
./full_match/5/0xA1A7df52ea3975861eB28b01e73028d83B0AC22d/sources/contracts/MonstersStorage.sol
ID shape - max number for each attribute
mapping(uint256 => uint256) public monsterAttributes;
1,850,341
[ 1, 734, 2179, 300, 943, 1300, 364, 1517, 1566, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 2254, 5034, 13, 1071, 6921, 8190, 2498, 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...
./partial_match/1/0x0092CD4044E1672c9c513867eb75e6213AF9742f/sources/src/LlamaPolicy.sol
@notice Revokes a policyholder's expired role. @param role Role that has expired. @param policyholder Policyholder that held the role. @dev This function needs to be explicitly called to revoke expired roles by monitoring through offchain infrastructure, otherwise expired roles can continue to create actions (if they ...
function revokeExpiredRole(uint8 role, address policyholder) external { if (!isRoleExpired(policyholder, role)) revert InvalidRoleHolderInput(); _setRoleHolder(role, policyholder, 0, 0); emit ExpiredRoleRevoked(msg.sender, policyholder, role); }
9,329,957
[ 1, 10070, 601, 281, 279, 3329, 4505, 1807, 7708, 2478, 18, 225, 2478, 6204, 716, 711, 7708, 18, 225, 3329, 4505, 7436, 4505, 716, 15770, 326, 2478, 18, 225, 1220, 445, 4260, 358, 506, 8122, 2566, 358, 18007, 7708, 4900, 635, 16309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18007, 10556, 2996, 12, 11890, 28, 2478, 16, 1758, 3329, 4505, 13, 3903, 288, 203, 565, 309, 16051, 291, 2996, 10556, 12, 5086, 4505, 16, 2478, 3719, 15226, 1962, 2996, 6064, 1210, 5621, 203, 565, 389, 542, 2996, 6064, ...
// produced by the Solididy File Flattener (c) David Appleton 2018 // contact : dave@akomba.com // released under Apache 2.0 licence library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this ...
* @dev The EthBattle constructor @param _playSeedAddress address of the play seed generator @param _tokenAddress GTA address @param _storeAddress store contract address/
constructor (address _playSeedAddress, address _tokenAddress, address _storeAddress, address _proxyAddress) public { playSeedGenerator = PlaySeedInterface(_playSeedAddress); token = GTAInterface(_tokenAddress); store = AMUStoreInterface(_storeAddress); startersProxyAddress = _proxyAd...
4,805,525
[ 1, 1986, 512, 451, 38, 4558, 298, 3885, 225, 389, 1601, 12702, 1887, 1758, 434, 326, 6599, 5009, 4456, 225, 389, 2316, 1887, 611, 9833, 1758, 225, 389, 2233, 1887, 1707, 6835, 1758, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 261, 2867, 389, 1601, 12702, 1887, 16, 1758, 389, 2316, 1887, 16, 1758, 389, 2233, 1887, 16, 1758, 389, 5656, 1887, 13, 1071, 288, 203, 3639, 6599, 12702, 3908, 273, 19592, 12702, 1358, 24899, 1601, 12702, 1887, 1769, 20...
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (proxy/Clones.sol) pragma solidity ^0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for * deploying minimal proxy contracts, also known as "clones". * * > To simply and cheaply clone contract functionality in an imm...
* @dev RLP encodes a uint. @param self The uint to encode. @return The RLP encoded uint in bytes./
function encodeUint(uint self) internal pure returns (bytes memory) { return encodeBytes(toBinary(self)); }
383,605
[ 1, 54, 14461, 16834, 279, 2254, 18, 225, 365, 1021, 2254, 358, 2017, 18, 327, 1021, 534, 14461, 3749, 2254, 316, 1731, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 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, 2017, 5487, 12, 11890, 365, 13, 2713, 16618, 1135, 261, 3890, 3778, 13, 288, 203, 3639, 327, 2017, 2160, 12, 869, 5905, 12, 2890, 10019, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
//! { "cases": [ { //! "name": "one", //! "input": [ //! { //! "entry": "one", //! "calldata": [ //! ] //! } //! ], //! "expected": [ //! "1" //! ] //! }, { //! "name": "two", //! "input": [ //! { //! "entry": "t...
remove key from treap, if it containing
function erase(uint8 root, uint8 key, Memory memory _memory) private pure returns(uint8) { (uint8 p1, uint8 p2) = split(root, key, _memory); (uint8 p21, uint8 p22) = split(p2, key + 1, _memory); return merge(p1, p22, _memory); }
1,835,076
[ 1, 4479, 498, 628, 9787, 438, 16, 309, 518, 4191, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 22038, 12, 11890, 28, 1365, 16, 2254, 28, 498, 16, 9251, 3778, 389, 7858, 13, 3238, 16618, 1135, 12, 11890, 28, 13, 288, 203, 3639, 261, 11890, 28, 293, 21, 16, 2254, 28, 293, 22, 13, 273, 1416, 12, 3085, 16, 498, ...
pragma solidity ^0.4.24; library Address { /** * 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 constructor finishes. * @param addr address to check ...
delegate item specific storage/logic to other contracts one main contract manages transfers etc use uint32s instead of addresses to reduce the storage size needed individual token properties should be stored in the delegate contract
contract Collectables is ERC721Full("GU Collectable", "TRINKET"), Ownable { using Strings for string; mapping(uint32 => address) public delegates; uint32[] public collectables; uint public delegateCount; event DelegateAdded(address indexed delegate, uint32 indexed delegateID); function addD...
15,834,556
[ 1, 22216, 761, 2923, 2502, 19, 28339, 358, 1308, 20092, 1245, 2774, 6835, 20754, 281, 29375, 5527, 999, 2254, 1578, 87, 3560, 434, 6138, 358, 5459, 326, 2502, 963, 3577, 7327, 1147, 1790, 1410, 506, 4041, 316, 326, 7152, 6835, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9302, 1538, 353, 4232, 39, 27, 5340, 5080, 2932, 30673, 9302, 429, 3113, 315, 4349, 8476, 1584, 6, 3631, 14223, 6914, 288, 203, 203, 565, 1450, 8139, 364, 533, 31, 203, 203, 565, 2874, 12, 11890, 1578, 516, 1758, 13, 1071,...
pragma solidity ^0.4.22; contract BuddhaTower { event onBuy ( address indexed buyerAddress, uint256 amount, uint256 currentHeight ); event onSplit( uint round, uint luckyNumber, address luckyPlayer ); event onTimeup( uint round, ...
============================================================================== _ |_ |. _ |` _ __|_. _ _ _ . |_)|_||_)||(_ ~|~|_|| |(_ | |(_)| |_\ . (use these to interact with contract)====|=========================================================================
function deposit(address _inviter, uint256 _amount) isActive() isHuman() isWithinLimits(msg.value) isBaned(msg.sender) public payable { require(_amount > 0 && _amount <= 1000); require (msg.value >= (height * step + price + (height + _amount-1)*step + pr...
12,917,063
[ 1, 9917, 26678, 377, 389, 565, 571, 67, 571, 18, 389, 282, 571, 68, 565, 389, 225, 1001, 96, 27799, 389, 225, 389, 225, 389, 225, 263, 565, 571, 67, 14047, 67, 20081, 67, 14047, 96, 24899, 225, 4871, 96, 98, 96, 67, 20081, 571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 443, 1724, 12, 2867, 389, 5768, 2165, 16, 2254, 5034, 389, 8949, 13, 203, 3639, 15083, 1435, 203, 3639, 27803, 6925, 1435, 203, 3639, 353, 18949, 12768, 12, 3576, 18, 1132, 13, 203, 3639, 27057, 304, 329, 12, 3576, 18, ...
./partial_match/1/0xEEEEEcf99b5d7e9c0bca6E2769E895d8F956BbAF/sources/ERC20.sol
* @dev Returns the downcasted uint128 from uint256, reverting on overflow (when the input is greater than largest uint128). Counterpart to Solidity's `uint128` operator. Requirements: - input must fit into 128 bits/
function toUint128(uint256 value) internal pure returns (uint128) { if (value > type(uint128).max) { revert SafeCastOverflowedUintDowncast(128, value); } return uint128(value); }
4,210,421
[ 1, 1356, 326, 2588, 4155, 329, 2254, 10392, 628, 2254, 5034, 16, 15226, 310, 603, 9391, 261, 13723, 326, 810, 353, 6802, 2353, 12756, 2254, 10392, 2934, 9354, 2680, 358, 348, 7953, 560, 1807, 1375, 11890, 10392, 68, 3726, 18, 29076, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 358, 5487, 10392, 12, 11890, 5034, 460, 13, 2713, 16618, 1135, 261, 11890, 10392, 13, 288, 203, 3639, 309, 261, 1132, 405, 618, 12, 11890, 10392, 2934, 1896, 13, 288, 203, 5411, 15226, 14060, 9735, 15526, 329, 5487, 4164,...
./full_match/1/0xDf24D7F73Bec8D0B34915Ecd8a00AE3598A1fA2c/sources/contracts/EtchMarket.sol
* @notice This function is internal and is used to transfer fungible tokens. @param currency Currency address @param sender Sender address @param recipient Recipient address @param amount Amount (in fungible tokens)/
function _transferFungibleTokens(address currency, address sender, address recipient, uint256 amount) internal { if (currency == address(0)) { _transferETHWithGasLimit(recipient, amount, _GAS_STIPEND_NO_STORAGE_WRITES); IERC20Upgradeable(currency).safeTransferFrom(sender, recipient, ...
3,171,088
[ 1, 2503, 445, 353, 2713, 471, 353, 1399, 358, 7412, 9831, 75, 1523, 2430, 18, 225, 5462, 13078, 1758, 225, 5793, 15044, 1758, 225, 8027, 23550, 1758, 225, 3844, 16811, 261, 267, 9831, 75, 1523, 2430, 13176, 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, 0, 0, 0, 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, 42, 20651, 1523, 5157, 12, 2867, 5462, 16, 1758, 5793, 16, 1758, 8027, 16, 2254, 5034, 3844, 13, 2713, 288, 203, 3639, 309, 261, 7095, 422, 1758, 12, 20, 3719, 288, 203, 5411, 389, 13866, 1584, 44, 1190, 2...
//SafeMath pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavio...
* @dev Optional functions from the ERC20 standard./
contract ERC20Detailed { string internal _name; string internal _symbol; uint8 private _decimals; constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } function name() public view returns...
1,542,436
[ 1, 6542, 4186, 628, 326, 4232, 39, 3462, 4529, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 3462, 40, 6372, 288, 203, 565, 533, 2713, 389, 529, 31, 203, 565, 533, 2713, 389, 7175, 31, 203, 565, 2254, 28, 3238, 389, 31734, 31, 203, 203, 203, 565, 3885, 261, 1080, 3778, 508, 16, 533, 3778, 3273, 16, 2...
./partial_match/1/0xC3B7f60306447FE6A987c2DB240F7c611ADe7D4a/sources/SETToken.sol
* Get number of tokens currently belonging to given owner. @param _owner address to get number of tokens currently belonging to the owner of @return number of tokens currently belonging to the owner of given address/
function balanceOf (address _owner) public delegatable view returns (uint256 balance) { return accountsConverted[_owner] ? AbstractToken.balanceOf (_owner) : safeMul(AbstractToken.balanceOf (_owner), 1e16); }
15,501,369
[ 1, 967, 1300, 434, 2430, 4551, 17622, 358, 864, 3410, 18, 225, 389, 8443, 1758, 358, 336, 1300, 434, 2430, 4551, 17622, 358, 326, 3639, 3410, 434, 327, 1300, 434, 2430, 4551, 17622, 358, 326, 3410, 434, 864, 1758, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 11013, 951, 261, 2867, 389, 8443, 13, 203, 565, 1071, 11158, 8163, 1476, 1135, 261, 11890, 5034, 11013, 13, 288, 203, 565, 327, 9484, 22063, 63, 67, 8443, 65, 692, 4115, 1345, 18, 12296, 951, 261, 67, 8443, 13, 294, 4...
//SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.13; // Imports import "./Ownable.sol"; import "./ReentrancyGuard.sol"; import "./IERC20.sol"; import "./IERC721.sol"; // MOD Interface interface MODToken { function mint(address recipient, uint256 amount) external; } /// @title MOD - Staking Contract contra...
@dev Starts NFT staking program
function launchStaking() external onlyOwner { require(!stakingLaunched, "Staking has been launched already"); stakingLaunched = true; }
1,421,410
[ 1, 11203, 423, 4464, 384, 6159, 5402, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 8037, 510, 6159, 1435, 3903, 1338, 5541, 288, 203, 565, 2583, 12, 5, 334, 6159, 30745, 22573, 16, 315, 510, 6159, 711, 2118, 28786, 1818, 8863, 203, 565, 384, 6159, 30745, 22573, 273, 638, 31, 203, 225, 289, 203, 203, ...
./full_match/43113/0xC988bcf1261600E82101bCe21b286894F7a18Ffa/sources/contracts/artifacts/nft.sol
******************* */ Airdrops */ ******************* */
function addHonoraries(address[] calldata honoraries) external onlyOwner { uint256 honoraryID = numHonoraries + 10000; for (uint256 i = 0; i < honoraries.length; i++) { tokenIDMap[honoraryID] = honoraryID; _safeMint(honoraries[i], honoraryID); emit Claim(honorary...
7,205,181
[ 1, 19, 1377, 432, 6909, 16703, 4202, 342, 225, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 44, 265, 280, 5646, 12, 2867, 8526, 745, 892, 24338, 280, 5646, 13, 3903, 1338, 5541, 288, 203, 3639, 2254, 5034, 24338, 280, 814, 734, 273, 818, 44, 265, 280, 5646, 397, 12619, 31, 203, 3639, 364, 261, 11890, 50...
/** *Submitted for verification at Etherscan.io on 2021-02-19 */ pragma solidity ^0.5.16; /** * @title Bird's BController Interface */ contract BControllerInterface { /// @notice Indicator that this is a BController contract (for inspection) bool public constant isBController = true; /*** Assets Yo...
We call the defense hook */
bController.mintVerify(address(this), minter, vars.actualMintAmount, vars.mintTokens);
285,932
[ 1, 3218, 745, 326, 1652, 3558, 3953, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 324, 2933, 18, 81, 474, 8097, 12, 2867, 12, 2211, 3631, 1131, 387, 16, 4153, 18, 18672, 49, 474, 6275, 16, 4153, 18, 81, 474, 5157, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// Dependency file: @openzeppelin/as/math/SignedSafeMath.sol // SPDX-License-Identifier: MIT // pragma solidity ^0.6.0; /** * @title SignedSafeMath * @dev Signed math operations with safety checks that revert on error. */ library SignedSafeMath { int256 constant private _INT256_MIN = -2**255; /** ...
* @title PriceOracle @author Set Protocol Contract that returns the price for any given asset pair. Price is retrieved either directly from an oracle, calculated using common asset pairs, or uses external data to calculate price. Note: Prices are returned in preciseUnits (i.e. 18 decimals of precision)/ Address of the ...
contract PriceOracle is Ownable { using PreciseUnitMath for uint256; using AddressArrayUtils for address[]; event PairAdded(address indexed _assetOne, address indexed _assetTwo, address _oracle); event PairRemoved(address indexed _assetOne, address indexed _assetTwo, address _oracle); event PairEd...
5,415,422
[ 1, 5147, 23601, 225, 1000, 4547, 13456, 716, 1135, 326, 6205, 364, 1281, 864, 3310, 3082, 18, 20137, 353, 10295, 3344, 5122, 628, 392, 20865, 16, 8894, 1450, 2975, 3310, 5574, 16, 578, 4692, 3903, 501, 358, 4604, 6205, 18, 3609, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20137, 23601, 353, 14223, 6914, 288, 203, 565, 1450, 2962, 30708, 2802, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 1076, 1989, 364, 1758, 8526, 31, 203, 203, 203, 565, 871, 8599, 8602, 12, 2867, 8808, 389, 9406, 3335,...
pragma solidity >=0.4.25 <0.6.0; /********************************************** RawMatrials ******************************************/ /// @title RawMatrials /// @notice /// @dev Create new instance of RawMatrials package contract RawMatrials { /// @notice address Owner; enum packageStatus { atcreator, ...
@notice @notice @notice @notice @notice @notice @notice @notice @notice @notice @dev Intiate New Package of RawMatrials by Supplier @param Splr Supplier Ethereum Network Address @param Des Description of RawMatrials @param FN Factory Name @param Loc Factory Location @param Quant Number of units in a package @param Rcv...
) public { Owner = Splr; productid = address(this); description = Des; factory_name = FN; location = Loc; quantity = Quant; manufacturer = Rcvr; supplier = Splr; status = packageStatus(0); }
15,829,975
[ 1, 1702, 3840, 1166, 7508, 434, 6576, 15947, 566, 1031, 635, 17216, 225, 11484, 86, 17216, 512, 18664, 379, 5128, 5267, 225, 10597, 6507, 434, 6576, 15947, 566, 1031, 225, 27103, 7822, 1770, 225, 2851, 7822, 7050, 225, 4783, 970, 3588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 1071, 288, 203, 3639, 16837, 273, 11484, 86, 31, 203, 3639, 3017, 350, 273, 1758, 12, 2211, 1769, 203, 3639, 2477, 273, 10597, 31, 203, 3639, 3272, 67, 529, 273, 27103, 31, 203, 3639, 2117, 273, 2851, 31, 203, 3639, 1...
./partial_match/42/0xd5898E4a3F06ABf154e9F614E3303A4685b32906/sources/H2O.sol
PickleToken with Governance.
contract H2O is ERC20("ysH2O", "ysH2O"), Ownable { function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); } function burn(address _from, uint256 _amnt) public onlyOwner { _burn(_from, _amnt); } }
8,993,778
[ 1, 17968, 298, 1345, 598, 611, 1643, 82, 1359, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 670, 22, 51, 353, 4232, 39, 3462, 2932, 1900, 44, 22, 51, 3113, 315, 1900, 44, 22, 51, 6, 3631, 14223, 6914, 288, 203, 565, 445, 312, 474, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1071, 1338, 5541, 288, 203, ...
/* A contract to store a list of messages. Obtainable as events. */ contract store { address owner; uint16 public contentCount = 0; event content(string datainfo, address sender, uint payment); modifier onlyowner { if (msg.sender == owner) _ } function store() public { owner...
TODO: remove in release
function kill() onlyowner { suicide(owner); }
952,188
[ 1, 6241, 30, 1206, 316, 3992, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8673, 1435, 1338, 8443, 288, 1597, 335, 831, 12, 8443, 1769, 289, 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, -10...
./full_match/80001/0x3F2b72B9D52651B4dcdB99d1AB1736aC889e6e38/sources/contracts/mixins/MixinKeys.sol
* Merge existing keys @param _tokenIdFrom the id of the token to substract time from @param _tokenIdTo the id of the destination token to add time @param _amount the amount of time to transfer (in seconds)/ checks make sure there is enough time remaining
function mergeKeys( uint _tokenIdFrom, uint _tokenIdTo, uint _amount ) public { _isKey(_tokenIdFrom); _isValidKey(_tokenIdFrom); _onlyKeyManagerOrApproved(_tokenIdFrom); _isKey(_tokenIdTo); if( _amount > keyExpirationTimestampFor(_tokenIdFrom) - block.timestamp ) ...
9,486,826
[ 1, 6786, 2062, 1311, 225, 389, 2316, 548, 1265, 326, 612, 434, 326, 1147, 358, 2373, 621, 813, 628, 225, 389, 2316, 28803, 326, 612, 434, 326, 2929, 1147, 225, 358, 527, 813, 225, 389, 8949, 326, 3844, 434, 813, 358, 7412, 261, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 445, 2691, 2396, 12, 203, 565, 2254, 389, 2316, 548, 1265, 16, 7010, 565, 2254, 389, 2316, 28803, 16, 7010, 565, 2254, 389, 8949, 203, 565, 262, 1071, 288, 203, 203, 565, 389, 291, 653, 24899, 2316, 548, 1265, 1769, 203, 5...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.4; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC...
@notice distributes the policybook premiums into pools (CP, ULP , RP) @dev distributes the balances acording to the established percentages @param _stblAmount amount hardSTBL ingressed into the system @param _epochsNumber uint256 the number of epochs which the policy holder will pay a premium for @param _protocolFee u...
interface IClaimingRegistry { function virtualUsdtAccumulatedBalance() external view returns (uint256); function addPolicyHoldersHardSTBL( uint256 _stblAmount, uint256 _epochsNumber, uint256 _protocolFee ) external returns (uint256); function addCoverageProvidersHardSTBL(uint25...
14,414,579
[ 1, 2251, 1141, 326, 3329, 3618, 23020, 5077, 87, 1368, 16000, 261, 4258, 16, 587, 14461, 269, 534, 52, 13, 225, 1015, 1141, 326, 324, 26488, 279, 4643, 358, 326, 19703, 5551, 1023, 225, 389, 334, 3083, 6275, 3844, 7877, 882, 14618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 5831, 467, 9762, 310, 4243, 288, 203, 565, 445, 5024, 3477, 7510, 8973, 5283, 690, 13937, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 527, 2582, 27003, 29601, 882, 14618, 12, 203, 3639, 2254, 5034, 389, 334,...
* arithmetic operations revert on underflow and overflow * custom errors * functions outside contract * import {symbol1 as alias, symbol2} from "filename"; * Salted contract creations / create2 * SMTChecker // SPDX-License-Identifier: MIT pragma solidity ^0.8; // safe math contract SafeMath { function testUnderf...
* import {symbol1 as alias, symbol2} from "filename";
import { Unauthorized, helper as h1 } from "./Sol08.sol";
926,920
[ 1, 5666, 288, 7175, 21, 487, 2308, 16, 3273, 22, 97, 628, 315, 3459, 14432, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5666, 288, 15799, 16, 4222, 487, 366, 21, 289, 628, 25165, 20608, 6840, 18, 18281, 14432, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
/** *Submitted for verification at Etherscan.io on 2020-09-06 */ pragma solidity ^0.5.0; // ---------------------------------------------------------------------------- // ERC Token Standard #20 Interface // // ---------------------------------------------------------------------------- contract ERC20Interface { ...
* Constrctor function Initializes contract with initial supply tokens to the creator of the contract/
constructor() public { name = "PlusVaray"; symbol = "PVY"; decimals = 18; _totalSupply = 8000000000000000000000; balances[msg.sender] = _totalSupply; emit Transfer(address(0), msg.sender, _totalSupply); }
10,684,734
[ 1, 442, 701, 30206, 445, 10188, 3128, 6835, 598, 2172, 14467, 2430, 358, 326, 11784, 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, ...
[ 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, 3885, 1435, 1071, 288, 203, 3639, 508, 273, 315, 13207, 1537, 528, 14432, 203, 3639, 3273, 273, 315, 30201, 61, 14432, 203, 3639, 15105, 273, 6549, 31, 203, 3639, 389, 4963, 3088, 1283, 273, 1725, 12648, 12648, 11706, 31, 203,...
/** *Submitted for verification at Etherscan.io on 2021-07-21 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, ...
Create a uniswap pair for this new token exclude from receiving dividends exclude from paying fees or having max transaction amount enable owner wallet to send tokens before presales are over.
constructor(address payable devWallet) ERC20("Lwazi Project", "LWAZI") { _devWallet = devWallet; dividendTracker = new LwaziDividendTracker(); liquidityWallet = owner(); IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); add...
7,935,024
[ 1, 1684, 279, 640, 291, 91, 438, 3082, 364, 333, 394, 1147, 4433, 628, 15847, 3739, 350, 5839, 4433, 628, 8843, 310, 1656, 281, 578, 7999, 943, 2492, 3844, 4237, 3410, 9230, 358, 1366, 2430, 1865, 4075, 5408, 854, 1879, 18, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 2867, 8843, 429, 4461, 16936, 13, 4232, 39, 3462, 2932, 48, 91, 1561, 77, 5420, 3113, 315, 48, 59, 26315, 45, 7923, 288, 203, 3639, 389, 5206, 16936, 273, 4461, 16936, 31, 203, 3639, 31945, 8135, 273, 394, 511, 9...
pragma solidity ^0.4.15; library Authorities { function contains (address[] self, address value) internal returns (bool) { for (uint i = 0; i < self.length; i++) { if (self[i] == value) { return true; } } return false; } function truncate (ad...
Event created on money deposit.
event Deposit(address recipient, uint value);
6,431,192
[ 1, 1133, 2522, 603, 15601, 443, 1724, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 4019, 538, 305, 12, 2867, 8027, 16, 2254, 460, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.4.16; // Use the dAppBridge service to generate random numbers // Powerful Data Oracle Service with easy to use methods, see: https://dAppBridge.com // interface dAppBridge_I { function getOwner() external returns(address); function getMinReward(string requestType) external returns(ui...
This is the actual call to dAppBridge - using their callURL function to easily access an external API such as random.org
function rollDice(uint rollUnder) public payable gameActive validBet(msg.value, rollUnder) returns (bytes32) { bytes32 betID = callURL("callback", randomAPI_url, constructAPIParam(), randomAPI_extract); gameNumber = gameNumber.add(1); _fullTotal = _fullTotal.div...
13,073,152
[ 1, 2503, 353, 326, 3214, 745, 358, 302, 3371, 13691, 300, 1450, 3675, 745, 1785, 445, 358, 17997, 2006, 392, 3903, 1491, 4123, 487, 2744, 18, 3341, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5824, 40, 1812, 12, 11890, 5824, 14655, 13, 1071, 8843, 429, 7920, 3896, 923, 38, 278, 12, 3576, 18, 1132, 16, 5824, 14655, 13, 1135, 261, 3890, 1578, 13, 288, 203, 203, 3639, 1731, 1578, 2701, 734, 273, 745, 1785, 29...
./full_match/4/0x81783531126E4dC47aA3403786c3552bCDcc8919/sources/tests/one.sol
@return r the sum of two points of G2
function addition(G2Point memory p1, G2Point memory p2) internal view returns (G2Point memory r) { (r.X[0], r.X[1], r.Y[0], r.Y[1]) = BN256G2.ECTwistAdd(p1.X[0],p1.X[1],p1.Y[0],p1.Y[1],p2.X[0],p2.X[1],p2.Y[0],p2.Y[1]); }
828,017
[ 1, 2463, 436, 326, 2142, 434, 2795, 3143, 434, 611, 22, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2719, 12, 43, 22, 2148, 3778, 293, 21, 16, 611, 22, 2148, 3778, 293, 22, 13, 2713, 1476, 1135, 261, 43, 22, 2148, 3778, 436, 13, 288, 203, 3639, 261, 86, 18, 60, 63, 20, 6487, 436, 18, 60, 63, 21, 6487, 436, 18,...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "./ComptrollerInterface.sol"; import "./CTokenInterfaces.sol"; import "./ErrorReporter.sol"; import "./Exponential.sol"; import "./EIP20Interface.sol"; import "./EIP20NonStandardInterface.sol"; import "./InterestRateModel.sol"; /** * @title Compound's C...
Get the exchange rate and calculate the number of collateral tokens to seize: seizeAmount = actualRepayAmount liquidationIncentive priceBorrowed / priceCollateral seizeTokens = seizeAmount / exchangeRate = actualRepayAmount (liquidationIncentive priceBorrowed) / (priceCollateral exchangeRate)/
uint seizeTokens;
564,630
[ 1, 967, 326, 7829, 4993, 471, 4604, 326, 1300, 434, 4508, 2045, 287, 2430, 358, 695, 554, 30, 225, 695, 554, 6275, 273, 3214, 426, 10239, 6275, 225, 4501, 26595, 367, 382, 2998, 688, 225, 6205, 38, 15318, 329, 342, 6205, 13535, 2045...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 3639, 2254, 695, 554, 5157, 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, ...
// SPDX-License-Identifier: Apache2.0 pragma solidity ^0.8.0; contract CharityDonation{ // ethereum address of contract owner address payable contractOwner; // list of charities (by address) this contract supports address payable[] private supportedCharities; // variable to store total number of...
define donation event
event DonationEvent(address donor, uint donationAmount);
6,413,823
[ 1, 11255, 2727, 367, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 7615, 367, 1133, 12, 2867, 2727, 280, 16, 2254, 2727, 367, 6275, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.4.24; /** * This utility library was forked from https://github.com/o0ragman0o/LibCLL */ library LinkedListLib { uint256 constant NULL = 0; uint256 constant HEAD = 0; bool constant PREV = false; bool constant NEXT = true; struct LinkedList { mapping (uint256 => mappin...
* @dev Deauthorized `_contract` by address @param _contract The contract address/ Event
function deauthorizeContract(address _contract) public onlyOwner authorizedContractValid(_contract) returns(bool) { uint256 id = authorizedContractIds[_contract]; authorizedContractList.remove(id); authorizedContractIds[_contract] = 0; delete authori...
1,978,799
[ 1, 758, 8434, 1375, 67, 16351, 68, 635, 1758, 225, 389, 16351, 1021, 6835, 1758, 19, 2587, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 443, 22488, 8924, 12, 2867, 389, 16351, 13, 7010, 3639, 1071, 7010, 3639, 1338, 5541, 203, 3639, 10799, 8924, 1556, 24899, 16351, 13, 203, 3639, 1135, 12, 6430, 13, 288, 203, 3639, 2254, 5034, 612, 273, 10799, 8924, 2673,...
// SPDX-License-Identifier: GPL-2.0-only // Copyright 2020 Spilsbury Holdings Ltd. pragma solidity >=0.6.10 <0.8.0; import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import {Ownable} from '@openzeppelin/contracts/access/Ownable.sol'; import {Pausable} from '@openzeppelin/contracts/utils/Pausable....
* @title Rollup Processor @dev Smart contract responsible for processing Aztec zkRollups, including relaying them to a verifier contract for validation and performing all relevant ERC20 token transfers/ Array of supported ERC20 token address. Mapping which maps an asset address to a bool, determining whether it support...
contract RollupProcessor is IRollupProcessor, Decoder, Ownable, Pausable { using SafeMath for uint256; bytes32 public dataRoot = 0x2708a627d38d74d478f645ec3b4e91afa325331acf1acebe9077891146b75e39; bytes32 public nullRoot = 0x2694dbe3c71a25d92213422d392479e7b8ef437add81e1e17244462e6edca9b1; bytes32 publ...
2,541,753
[ 1, 24194, 416, 15476, 225, 19656, 6835, 14549, 364, 4929, 432, 94, 14537, 14164, 24194, 18294, 16, 6508, 18874, 310, 2182, 358, 279, 20130, 6835, 364, 3379, 471, 14928, 777, 9368, 4232, 39, 3462, 1147, 29375, 19, 1510, 434, 3260, 4232, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31291, 416, 5164, 353, 467, 24194, 416, 5164, 16, 15138, 16, 14223, 6914, 16, 21800, 16665, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 1731, 1578, 1071, 501, 2375, 273, 374, 92, 5324, 6840, 69, ...
./full_match/80001/0x314382Dd83efDb2A7E4F96DC64b5C38d3d8e9DD3/sources/project_/contracts/ETH.sol
only node address is able to update price
node = 0xB276f4c0bb97e79f962fb6fcA7be9373D60a5c5e;
9,492,965
[ 1, 3700, 756, 1758, 353, 7752, 358, 1089, 6205, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 756, 273, 374, 20029, 5324, 26, 74, 24, 71, 20, 9897, 10580, 73, 7235, 74, 29, 8898, 19192, 26, 7142, 37, 27, 2196, 29, 6418, 23, 40, 4848, 69, 25, 71, 25, 73, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "./IWallet.sol"; import "./IAssemb...
@dev Emit an event when coins are received, regarless of msg.data
fallback() external payable { if (msg.value > 0) emit Deposited(msg.sender, msg.value); }
13,034,524
[ 1, 17982, 392, 871, 1347, 276, 9896, 854, 5079, 16, 960, 297, 2656, 434, 1234, 18, 892, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5922, 1435, 3903, 8843, 429, 288, 203, 3639, 309, 261, 3576, 18, 1132, 405, 374, 13, 3626, 4019, 538, 16261, 12, 3576, 18, 15330, 16, 1234, 18, 1132, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -1...
/** * MPSSaleConfig.sol * Configuration for the MPS token sale private phase. * More info about MPS : https://github.com/MtPelerin/MtPelerin-share-MPS * The unflattened code is available through this github tag: * https://github.com/MtPelerin/MtPelerin-protocol/tree/etherscan-verify-batch-1 * @notice ...
* @dev tokensale count/
function tokensalesCount() public view returns (uint256) { return tokensales.length; }
964,945
[ 1, 7860, 5349, 1056, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 2430, 5408, 1380, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 2430, 5408, 18, 2469, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.4.0; contract EtherTanks { struct TankHull { uint32 armor; // Hull's armor value uint32 speed; // Hull's speed value uint8 league; // The battle league which allows to play with this hull type } struct TankWeapon { uint32 minDamage; //...
Change the tank status to "not selling now"
tanks[_tankID].selling = false;
12,630,239
[ 1, 3043, 326, 268, 2304, 1267, 358, 315, 902, 357, 2456, 2037, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 268, 19965, 63, 67, 88, 2304, 734, 8009, 87, 1165, 310, 273, 629, 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, -...
./full_match/80001/0x144e1C4a983f352f691a14A590B4a01faF8CCf09/sources/contracts/ERC20EscrowToPay.sol
* @notice Modifier checks if msg.sender is the requestpayment payer. @param _paymentRef Reference of the requestpayment related. @dev It requires msg.sender to be equal to requestMapping[_paymentRef].payer./
modifier OnlyPayer(bytes memory _paymentRef) { require(msg.sender == requestMapping[_paymentRef].payer, "Not Authorized."); _; }
5,670,089
[ 1, 9829, 4271, 309, 1234, 18, 15330, 353, 326, 590, 9261, 293, 1773, 18, 225, 389, 9261, 1957, 6268, 434, 326, 590, 9261, 3746, 18, 225, 2597, 4991, 1234, 18, 15330, 358, 506, 3959, 358, 590, 3233, 63, 67, 9261, 1957, 8009, 84, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 5098, 52, 1773, 12, 3890, 3778, 389, 9261, 1957, 13, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 590, 3233, 63, 67, 9261, 1957, 8009, 84, 1773, 16, 315, 1248, 6712, 1235, 1199, 1769, 203, 3639, 389, 31, 203, 565,...