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
pragma solidity ^0.4.22; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint...
called by the owner on emergency, triggers stopped state
function halt() external onlyOwner inNormalState { halted = true; }
14,873,100
[ 1, 4625, 348, 7953, 560, 30, 225, 2566, 635, 326, 3410, 603, 801, 24530, 16, 11752, 9627, 919, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 18389, 1435, 3903, 1338, 5541, 316, 5506, 1119, 288, 203, 3639, 19514, 2344, 273, 638, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.19; /* * Standard token contract with ability to hold some amount on some balances before single initially specified deadline * Which is useful for example for holding unsold tokens for a year for next step of project management * * Implements initial supply and does not allow to supply more to...
Fires the event about token burn
Burn(msg.sender, _value);
6,304,217
[ 1, 4625, 348, 7953, 560, 30, 225, 478, 2814, 326, 871, 2973, 1147, 18305, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 202, 38, 321, 12, 3576, 18, 15330, 16, 389, 1132, 1769, 6862, 6862, 9506, 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,...
pragma solidity ^0.4.18; import "./ModulumToken.sol"; import "./ModulumTokenHolder.sol"; import "./ModulumInvestorsWhitelist.sol"; import '../node_modules/zeppelin-solidity/contracts/crowdsale/RefundableCrowdsale.sol'; import '../node_modules/zeppelin-solidity/contracts/crowdsale/CappedCrowdsale.sol'; import '../node_...
overriding Crowdsale#buyTokens to add a dynamic rate that will match bonus token rewards
function buyTokens(address beneficiary) public payable { if (weiRaised < 7000 ether) { rate = 450; rate = 360; rate = 330; rate = 315; rate = 300; } return super.buyTokens(beneficiary); }
14,048,679
[ 1, 4625, 348, 7953, 560, 30, 225, 19488, 385, 492, 2377, 5349, 7, 70, 9835, 5157, 358, 527, 279, 5976, 4993, 716, 903, 845, 324, 22889, 1147, 283, 6397, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 30143, 5157, 12, 2867, 27641, 74, 14463, 814, 13, 1071, 8843, 429, 288, 203, 565, 309, 261, 1814, 77, 12649, 5918, 411, 2371, 3784, 225, 2437, 13, 288, 203, 1377, 4993, 273, 1059, 3361, 31, 203, 1377, 4993, 273, 12360, ...
/** *Submitted for verification at Etherscan.io on 2022-03-29 */ // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; ...
721 owner unwrapped _locationID
emit Unwrapped(msg.sender, _locationID);
2,253,970
[ 1, 4625, 348, 7953, 560, 30, 225, 2371, 5340, 3410, 26917, 389, 3562, 734, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3626, 1351, 18704, 12, 3576, 18, 15330, 16, 389, 3562, 734, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
/** *Submitted for verification at Etherscan.io on 2022-02-28 */ // File: https://github.com/ProjectOpenSea/opensea-creatures/blob/master/contracts/common/meta-transactions/Initializable.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Initializable { bool inited = false; modifier init...
* @dev Mints a token to an address with a tokenURI. @param _to address of the future owner of the token/
function AdminMintTo(address _to) public onlyOwner { uint256 currentTokenId = _nextTokenId.current(); _nextTokenId.increment(); _safeMint(_to, currentTokenId); }
7,859,166
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 490, 28142, 279, 1147, 358, 392, 1758, 598, 279, 1147, 3098, 18, 632, 891, 389, 869, 1758, 434, 326, 3563, 3410, 434, 326, 1147, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7807, 49, 474, 774, 12, 2867, 389, 869, 13, 1071, 1338, 5541, 288, 203, 3639, 2254, 5034, 23719, 548, 273, 389, 4285, 1345, 548, 18, 2972, 5621, 203, 3639, 389, 4285, 1345, 548, 18, 15016, 5621, 203, 3639, 389, 4626, ...
pragma experimental ABIEncoderV2; // File: Address.sol /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns ...
@notice Accounting function preparing the reporting to the vault taking into acccount the standing debt @param _debtOutstanding, Debt still left to pay to the vault @return _profit, the amount of profits the strategy may have produced until now @return _loss, the amount of losses the strategy may have produced until ...
function prepareReturn(uint256 _debtOutstanding) internal override returns ( uint256 _profit, uint256 _loss, uint256 _debtPayment ) { _checkPositionsAndWithdraw(); (_profit, ) = getUnrealisedPL(); uint256 wantBalance = ...
4,804,435
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 225, 6590, 310, 445, 675, 12583, 326, 16096, 358, 326, 9229, 13763, 1368, 4078, 1883, 326, 12842, 310, 18202, 88, 632, 891, 389, 323, 23602, 1182, 15167, 16, 1505, 23602, 4859, 2002, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 2911, 990, 12, 11890, 5034, 389, 323, 23602, 1182, 15167, 13, 203, 3639, 2713, 203, 3639, 3849, 203, 3639, 1135, 261, 203, 5411, 2254, 5034, 389, 685, 7216, 16, 203, 5411, 2254, 5034, 389, 7873, 16, 203, 5411, 2254, 503...
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/access/AccessContr...
@notice Function to set selfGrantAdmin (only deployer of contract is allowed) @param _selfAdmin bool to set state variable
function setSelfGrantAdmin(bool _selfAdmin) public onlyRole(DEFAULT_ADMIN_ROLE) { selfGrantAdmin = _selfAdmin; }
13,112,968
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 4284, 358, 444, 365, 9021, 4446, 261, 3700, 7286, 264, 434, 6835, 353, 2935, 13, 632, 891, 389, 2890, 4446, 1426, 358, 444, 919, 2190, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 10084, 9021, 4446, 12, 6430, 389, 2890, 4446, 13, 203, 3639, 1071, 203, 3639, 1338, 2996, 12, 5280, 67, 15468, 67, 16256, 13, 203, 3639, 288, 203, 5411, 365, 9021, 4446, 273, 389, 2890, 4446, 31, 203, 565, 289, 2...
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view re...
* @dev Transfers `tokenId` from `from` to `to`. As opposed to {transferFrom}, this imposes no restrictions on msg.sender. Requirements: - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. Emits a {Transfer} event./ Clear approvals from the previous owner
function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); require(ERC721.balanceOf(to...
1,734,089
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2604, 18881, 1375, 2316, 548, 68, 628, 1375, 2080, 68, 358, 1375, 869, 8338, 225, 2970, 1061, 7423, 358, 288, 13866, 1265, 5779, 333, 709, 10522, 1158, 17499, 603, 1234, 18, 15330, 18, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 565, 262, 2713, 5024, 288, 203, 3639, 2583, 12, 654, 39, 27, 5340, 18, 8443, 951, 12, 2316, 548, 13, 422, 62...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error,...
Min required member count for the DAO
function getMemberMinRequired() override external pure returns (uint256) { return daoMemberMinCount; }
594,219
[ 1, 4625, 348, 7953, 560, 30, 225, 5444, 1931, 3140, 1056, 364, 326, 463, 20463, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18925, 2930, 3705, 1435, 3849, 3903, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 15229, 4419, 2930, 1380, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.5.12; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); ...
Redeem tokens. These tokens are withdrawn from the owner address if the balance must be enough to cover the redeem or the call will fail. @param _amount Number of tokens to be issued
function burn(uint amount) public onlyOwner { require(_totalSupply >= amount); require(balances[owner] >= amount); _totalSupply -= amount; balances[owner] -= amount; emit Burn(amount); }
13,667,993
[ 1, 4625, 348, 7953, 560, 30, 225, 868, 24903, 2430, 18, 8646, 2430, 854, 598, 9446, 82, 628, 326, 3410, 1758, 309, 326, 11013, 1297, 506, 7304, 358, 5590, 326, 283, 24903, 578, 326, 745, 903, 2321, 18, 632, 891, 389, 8949, 3588, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 18305, 12, 11890, 3844, 13, 1071, 1338, 5541, 288, 203, 3639, 2583, 24899, 4963, 3088, 1283, 1545, 3844, 1769, 203, 3639, 2583, 12, 70, 26488, 63, 8443, 65, 1545, 3844, 1769, 203, 203, 3639, 389, 4963, 3088, 1283, 3947, ...
<!DOCTYPE html> <!-- saved from url=(0109)https://remix.ethereum.org/#optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.7+commit.e28d00a7.js --> <html style="--theme:dark;"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link rel="stylesheet" href="./zentium_files/remix-dark_tvx1s2....
use legacy query params instead of hash
if (window.location.search.length > 0) { window.location.hash = window.location.search.substr(1) window.location.search = '' } var parts = qs.split('&')
5,438,908
[ 1, 4625, 348, 7953, 560, 30, 225, 999, 8866, 843, 859, 3560, 434, 1651, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9506, 202, 430, 261, 5668, 18, 3562, 18, 3072, 18, 2469, 405, 374, 13, 288, 203, 6862, 202, 5668, 18, 3562, 18, 2816, 273, 2742, 18, 3562, 18, 3072, 18, 10706, 12, 21, 13, 203, 6862, 202, 5668, 18, 3562, 18, 3072, 273, 875, ...
pragma solidity ^0.4.18; import "./levels/Vault.sol"; contract VaultHack { // malicious attacker must pass in password because contracts // cannot read storage of other contracts and victim contract's // state variable "bytes32 private password;" does not have a getter function attack(address _target...
malicious attacker must pass in password because contracts cannot read storage of other contracts and victim contract's state variable "bytes32 private password;" does not have a getter
contract VaultHack { function attack(address _target, bytes32 _password) public { Vault(_target).unlock(_password); } }
12,595,892
[ 1, 4625, 348, 7953, 560, 30, 225, 27431, 28728, 13843, 264, 1297, 1342, 316, 2201, 2724, 20092, 2780, 855, 2502, 434, 1308, 20092, 471, 28873, 381, 6835, 1807, 919, 2190, 315, 3890, 1578, 3238, 2201, 4868, 1552, 486, 1240, 279, 7060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16351, 17329, 44, 484, 288, 203, 565, 445, 13843, 12, 2867, 389, 3299, 16, 1731, 1578, 389, 3664, 13, 1071, 288, 203, 3639, 17329, 24899, 3299, 2934, 26226, 24899, 3664, 1769, 203, 565, 289, 203, 97, 2, -100, -100, -100, -100, -1...
./partial_match/1/0x0dB55Edc962e5179ba58C43B47986EF915BdDC79/sources/LittleMutants.sol
* @dev Set public sale active/
function setPublicSaleActive(bool _publicSaleIsActive) external onlyOwners { publicSaleIsActive = _publicSaleIsActive; }
4,288,381
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1000, 1071, 272, 5349, 2695, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 27467, 30746, 3896, 12, 6430, 389, 482, 30746, 2520, 3896, 13, 3903, 1338, 5460, 414, 288, 203, 3639, 1071, 30746, 2520, 3896, 273, 389, 482, 30746, 2520, 3896, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -1...
pragma solidity ^0.4.24; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; /** * @title Coladay * @dev allow users to book a room during the ColaDay * A slot (ex: C0105) is defined by: * - the name of the company ("C" or "P") * - the ID of the room (from 01 to 10) * - the hour (08 to 18) */ contr...
@dev display the number of slots reserved by a user/
function getUserReservationSize(address _address) external view returns(uint) { return (userBase[_address].slotsReserved.length); }
6,457,887
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2562, 326, 1300, 434, 12169, 8735, 635, 279, 729, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4735, 18074, 1225, 12, 2867, 389, 2867, 13, 3903, 1476, 1135, 12, 11890, 13, 288, 203, 3639, 327, 261, 1355, 2171, 63, 67, 2867, 8009, 18875, 10435, 18, 2469, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.12; import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; import "../external/compound/PriceOracle.sol"; import "../external/compound/CErc20.sol"; import "../...
* @notice Fetches the token/ETH price, with 18 decimals of precision./
function _price(address token) internal view returns (uint) { if (token == address(BBADGER)) { (, int256 badgerEthPrice, , , ) = BADGER_ETH_FEED.latestRoundData(); return badgerEthPrice >= 0 ? uint256(badgerEthPrice).mul(BBADGER.getPricePerFullShare()).div(1e18) : 0; (, i...
14,517,781
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 8065, 281, 326, 1147, 19, 1584, 44, 6205, 16, 598, 6549, 15105, 434, 6039, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 8694, 12, 2867, 1147, 13, 2713, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 309, 261, 2316, 422, 1758, 12, 9676, 1880, 3101, 3719, 288, 203, 5411, 261, 16, 509, 5034, 5570, 693, 41, 451, 5147, 16, 269, 269, 262, ...
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.4; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/security/Pausable.sol'; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import '@openzeppelin/con...
* @notice Oracle interface/
interface IOracle { function consult(address tokenIn, uint amountIn, address tokenOut) external view returns (uint amountOut); }
13,125,593
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 28544, 1560, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 1665, 16873, 288, 203, 565, 445, 27710, 12, 2867, 1147, 382, 16, 2254, 3844, 382, 16, 1758, 1147, 1182, 13, 3903, 1476, 1135, 261, 11890, 3844, 1182, 1769, 203, 97, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/1/0xE3D40116d08FA731253F55C3A51847318A2ddB95/sources/contracts/Staking.sol
* @notice Stake tokens for an account @param account address @param amount uint256/
function stakeFor(address account, uint256 amount) public { require(amount > 0, "AMOUNT_INVALID"); allStakes[account].push( Stake(duration, cliff, amount, amount, block.timestamp) ); token.safeTransferFrom(account, address(this), amount); emit Transfer(address(0), account, amount); }
4,857,860
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 934, 911, 2430, 364, 392, 2236, 632, 891, 2236, 1758, 632, 891, 3844, 2254, 5034, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 384, 911, 1290, 12, 2867, 2236, 16, 2254, 5034, 3844, 13, 1071, 288, 203, 565, 2583, 12, 8949, 405, 374, 16, 315, 2192, 51, 5321, 67, 9347, 8863, 203, 565, 777, 510, 3223, 63, 4631, 8009, 6206, 12, 203, 1377, 934, 9...
./full_match/3/0xAb3D4B846514d957Fd99c5615203cb47b2F4670f/sources/AAVE/AaveToken.sol
@dev owner => next valid nonce to submit with permit()
mapping (address => uint256) public _nonces;
8,221,940
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 3410, 516, 1024, 923, 7448, 358, 4879, 598, 21447, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 1071, 389, 5836, 764, 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...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./ICritAMMSignal.sol"; import "../../../interfaces/IUniswapV2Router02.sol"; import "../../../interfaces/IUniswapV2Pair.sol"; contract CritAMMSimpleSignal is ICritAMMSignal { using SafeMath for uint...
be calculated on off-chain.
function setHigh(uint _high) external { require(msg.sender == strategist, "auth"); high = _high; }
2,510,026
[ 1, 4625, 348, 7953, 560, 30, 225, 506, 8894, 603, 3397, 17, 5639, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 8573, 12, 11890, 389, 8766, 13, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 609, 1287, 376, 16, 315, 1944, 8863, 203, 3639, 3551, 273, 389, 8766, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, ...
./full_match/1/0xC32A8a85c9004c8966821977D1E0ef459e02e5a3/sources/ragers-contracts/contracts/RagersCity.sol
-------- Royalties --------
function setRoyaltyReceiver(address royaltyReceiver) external override onlyOwner { require(royaltyReceiver != address(0), "Royalty receiver is the zero address!"); royaltyAddress = royaltyReceiver; emit RoyaltyReceiverUpdated(royaltyAddress); }
5,000,466
[ 1, 4625, 348, 7953, 560, 30, 225, 27093, 534, 13372, 2390, 606, 27093, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 54, 13372, 15006, 12952, 12, 2867, 721, 93, 15006, 12952, 13, 3903, 3849, 1338, 5541, 288, 203, 3639, 2583, 12, 3800, 15006, 12952, 480, 1758, 12, 20, 3631, 315, 54, 13372, 15006, 5971, 353, 326, 3634, 1758, 4442, ...
./full_match/1/0x2b265B8336456158D2Ed4aD03B8d611079714F23/sources/src/Magai/Magai.sol
remove limits after token is stable
function removeLimits() external onlyOwner { limitsInEffect = false; }
16,488,878
[ 1, 4625, 348, 7953, 560, 30, 225, 1206, 8181, 1839, 1147, 353, 14114, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 202, 915, 1206, 12768, 1435, 3903, 1338, 5541, 288, 203, 202, 202, 14270, 382, 12477, 273, 629, 31, 203, 202, 97, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/43114/0x47198272aD360ceA95F48E49ed9d4c73360B2c44/sources/contracts/Liquified.sol
try to liquidify, unregister LP on error
function _transfer( address sender, address recipient, uint256 amount ) internal { require(sender != address(0), "LQFD: transfer from the zero address"); require(recipient != address(0), "LQFD: transfer to the zero address"); require( balanceOf(sender)...
4,536,169
[ 1, 4625, 348, 7953, 560, 30, 775, 358, 4501, 26595, 1164, 16, 10232, 511, 52, 603, 555, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 5793, 16, 203, 3639, 1758, 8027, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 2713, 288, 203, 3639, 2583, 12, 15330, 480, 1758, 12, 20, 3631, 315, 48, 53, 16894, 30, 7412, 628, 326,...
./full_match/1/0xcB0900D9307Da7FD4e000A9093f24Ce25D937D42/sources/contracts/ClaimManagement.sol
* @notice Decide whether claim for a protocol should be accepted(will payout) or denied @dev Only callable by approvedDecider @param _protocol address: contract address of the protocol that COVER supports @param _nonce uint256: nonce of the protocol @param _index uint256: index of the claim @param _claimIsAccepted bool...
function decideClaim( address _protocol, uint256 _nonce, uint256 _index, bool _claimIsAccepted, uint16 _payoutNumerator, uint16 _payoutDenominator ) external override onlyApprovedDecider { require( _nonce ==...
9,760,458
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 3416, 831, 2856, 7516, 364, 279, 1771, 1410, 506, 8494, 12, 20194, 293, 2012, 13, 578, 15338, 632, 5206, 5098, 4140, 635, 20412, 1799, 3585, 632, 891, 389, 8373, 1758, 30, 6835, 1758, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 16288, 9762, 12, 203, 3639, 1758, 389, 8373, 16, 7010, 3639, 2254, 5034, 389, 12824, 16, 7010, 3639, 2254, 5034, 389, 1615, 16, 7010, 3639, 1426, 389, 14784, 2520, 18047, 16, 7010, 3639, 2254, 2313, 389, 84, 2012, 2578, ...
./full_match/1/0x9A62fB1CAFEa99f8f0441f80af7F7ccf0d46847D/sources/src/compounder/vaults/AuraBaseCompounderVault.sol
* @notice Burn Vault shares of account address. @param _account Shares owner to be burned. @param _shares Amount of shares to be burned./
function burn(address _account, uint256 _shares) public onlyOperator { _burn(_account, _shares); }
9,736,699
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 605, 321, 17329, 24123, 434, 2236, 1758, 18, 632, 891, 389, 4631, 2638, 4807, 3410, 358, 506, 18305, 329, 18, 632, 891, 389, 30720, 16811, 434, 24123, 358, 506, 18305, 329, 18, 19, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 18305, 12, 2867, 389, 4631, 16, 2254, 5034, 389, 30720, 13, 1071, 1338, 5592, 288, 203, 3639, 389, 70, 321, 24899, 4631, 16, 389, 30720, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x9e38946741bD54D11431d65dC843E42Dd35A2C77/sources/COBRA.sol
Anti-bot and anti-whale mappings and variables exlcude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount
contract COBRA is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; address public devWallet; ui...
4,415,975
[ 1, 4625, 348, 7953, 560, 30, 225, 18830, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 431, 17704, 1317, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, 279, 5859, 13667, 312, 6388, 5574, 18, 5502, 7412, 380, 869...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 385, 5704, 2849, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259, 31, ...
pragma solidity 0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; require(a == 0 || c / a == b, "mul overflow"); return c; } func...
to accept ETH sent into reserve (from defaulted loan&#39;s collateral )
contract AugmintReserves is SystemAccount { - ETH as regular ETH balance of the contract }
2,265,447
[ 1, 4625, 348, 7953, 560, 30, 225, 358, 2791, 512, 2455, 3271, 1368, 20501, 261, 2080, 805, 329, 28183, 18642, 5520, 31, 87, 4508, 2045, 287, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 432, 637, 81, 474, 607, 264, 3324, 353, 2332, 3032, 288, 203, 203, 565, 300, 512, 2455, 487, 6736, 512, 2455, 11013, 434, 326, 6835, 203, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.8; // /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amou...
* @notice Controller for vaults./
contract Controller is IController { using SafeMath for uint256; address public override rewardToken; address public governance; address public reserve; uint256 public numVaults; mapping(uint256 => address) public vaults; constructor(address _rewardToken) public { require(_rewardTo...
2,315,528
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 6629, 364, 9229, 87, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6629, 353, 467, 2933, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 1758, 1071, 3849, 19890, 1345, 31, 203, 565, 1758, 1071, 314, 1643, 82, 1359, 31, 203, 565, 1758, 1071, 20501, 31, 203, 565, 2254...
./partial_match/1/0xd4260e4Bfb354259F5e30279cb0D7F784Ea5f37A/sources/VokenPublicSale2.sol
* @dev Returns current max wei value./
function weiMax() public view returns (uint256) { for(uint16 i = 0; i < LIMIT_WEIS.length; i++) { if (_seasonLimitAccounts[_season][i].length < LIMIT_COUNTER[i]) { return LIMIT_WEIS[i]; } } return LIMIT_WEI_MIN; }
2,613,651
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 783, 943, 732, 77, 460, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 445, 732, 77, 2747, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 5411, 364, 12, 11890, 2313, 277, 273, 374, 31, 277, 411, 13319, 67, 6950, 5127, 18, 2469, 31, 277, 27245, 288, 203, 7734, 309, 261, 67, 30321, 30...
./partial_match/8453/0xA9F30e6ED4098e9439B2ac8aEA2d3fc26BcEbb45/sources/lib/governance-crosschain-bridges/contracts/bridges/BridgeExecutorBase.sol
@inheritdoc IExecutorBase
function execute(uint256 actionsSetId) external payable override { if (getCurrentState(actionsSetId) != ActionsSetState.Queued) revert OnlyQueuedActions(); ActionsSet storage actionsSet = _actionsSets[actionsSetId]; if (block.timestamp < actionsSet.executionTime) revert TimelockNotFinished(); action...
16,694,598
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 10093, 467, 6325, 2171, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 1836, 12, 11890, 5034, 4209, 18523, 13, 3903, 8843, 429, 3849, 288, 203, 565, 309, 261, 588, 3935, 1119, 12, 4905, 18523, 13, 480, 18765, 694, 1119, 18, 21039, 13, 15226, 5098, 21039, 6100, 5621, 203, 203, 565, 18765, 6...
// "SPDX-License-Identifier: Apache-2.0" pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; import "../../ACTUS/Engines/STK/ISTKEngine.sol"; import "../Base/AssetActor/BaseActor.sol"; import "./ISTKRegistry.sol"; /** * @title STKActor * @notice TODO */ contract STKActor is BaseActor { using FixedPoin...
apply shift calc to schedule time
function computePayoffForEvent( bytes32 assetId, address engine, STKTerms memory terms, STKState memory state, bytes32 _event ) internal view returns (int256) { (EventType eventType, uint256 scheduleTime) = decodeEvent(_event); ...
12,724,820
[ 1, 4625, 348, 7953, 560, 30, 225, 2230, 4654, 7029, 358, 4788, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3671, 9148, 3674, 1290, 1133, 12, 203, 3639, 1731, 1578, 3310, 548, 16, 203, 3639, 1758, 4073, 16, 203, 3639, 2347, 47, 11673, 3778, 6548, 16, 203, 3639, 2347, 47, 1119, 3778, 919, 16, 203, 3639, 1731, 1578, 389, 2575, ...
./partial_match/1/0x89F4f1910718B4208ca9bA2EB39E07BAfC70B535/sources/AmbrosusSale.sol
Make a purchase from a privileged account. No KYC is required and a preferential buyin rate may be given. Preconditions: !paused, sale_ongoing Postconditions: !paused, ?!sale_ongoing Writes {Tokens, Sale} Bounded value, see STANDARD_BUYIN.
function specialPurchase() only_before_period is_under_cap_with(msg.value) payable public { uint256 bought = buyinReturn(msg.sender) * msg.value; tokens.mint(msg.sender, bought); TREASURY.transfer(msg.value); saleRevenue += msg.value; totalSold += bought; SpecialPurchased(msg.sender, msg.value, b...
2,714,991
[ 1, 4625, 348, 7953, 560, 30, 225, 4344, 279, 23701, 628, 279, 11334, 2423, 2236, 18, 2631, 1475, 61, 39, 353, 1931, 471, 279, 13256, 2001, 30143, 267, 4993, 2026, 506, 864, 18, 9248, 30, 401, 8774, 3668, 16, 272, 5349, 67, 5409, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 4582, 23164, 1435, 203, 202, 202, 3700, 67, 5771, 67, 6908, 203, 202, 202, 291, 67, 9341, 67, 5909, 67, 1918, 12, 3576, 18, 1132, 13, 203, 202, 202, 10239, 429, 203, 202, 202, 482, 203, 202, 95, 203, 202, 202, 11890...
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view re...
* @dev Claim strategy rewards @param rewardTokens Reward tokens/ check if any other shared strategy has claimed in the same block
function _claimStrategyRewards(address[] memory rewardTokens) private { if (strategiesShared[_sharedKey].lastClaimBlock < block.number) { ( uint256[] memory rewardTokenAmounts, bool didClaimNewRewards ) = boosterHelper.claimRewards(rewardT...
6,160,595
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 18381, 6252, 283, 6397, 632, 891, 19890, 5157, 534, 359, 1060, 2430, 19, 866, 309, 1281, 1308, 5116, 6252, 711, 7516, 329, 316, 326, 1967, 1203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 14784, 4525, 17631, 14727, 12, 2867, 8526, 3778, 19890, 5157, 13, 3238, 288, 203, 3639, 309, 261, 701, 15127, 7887, 63, 67, 11574, 653, 8009, 2722, 9762, 1768, 411, 1203, 18, 2696, 13, 288, 203, 2398, 203, 5411, 26...
pragma solidity ^0.4.24; /** * @title Interface to be implemented by all permission manager modules */ interface IPermissionManager { /** * @notice Used to check the permission on delegate corresponds to module contract address * @param _delegate Ethereum address of the delegate * @param _...
* @notice Used to return all delegates with a given permission and module @param _module Ethereum contract address of the module @param _perm Permission flag @return address[]/
function getAllDelegatesWithPerm(address _module, bytes32 _perm) external view returns(address[]) { uint256 counter = 0; uint256 i = 0; for (i = 0; i < allDelegates.length; i++) { if (perms[_module][allDelegates[i]][_perm]) { counter++; } } ...
12,744,615
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 10286, 358, 327, 777, 22310, 598, 279, 864, 4132, 471, 1605, 632, 891, 389, 2978, 512, 18664, 379, 6835, 1758, 434, 326, 1605, 632, 891, 389, 12160, 8509, 2982, 632, 2463, 1758, 8526, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5514, 15608, 815, 1190, 9123, 12, 2867, 389, 2978, 16, 1731, 1578, 389, 12160, 13, 3903, 1476, 1135, 12, 2867, 63, 5717, 288, 203, 3639, 2254, 5034, 3895, 273, 374, 31, 203, 3639, 2254, 5034, 277, 273, 374, 31, 203, 3...
./partial_match/97/0xBE2870d1dE8c30D31388fb1e86c209d85f0e8866/sources/AnimalFactory.sol
The structure defining a single animal
{ struct AnimalProperties { uint id; string name; string desc; bool upForSale; uint priceForSale; bool upForMating; bool eggPhase; uint priceForMating; bool isBornByMating; uint parentId1; uint parentId2; uint birthd...
11,369,178
[ 1, 4625, 348, 7953, 560, 30, 1021, 3695, 9364, 279, 2202, 392, 2840, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 565, 1958, 1922, 2840, 2297, 203, 565, 288, 203, 3639, 2254, 612, 31, 203, 3639, 533, 508, 31, 203, 3639, 533, 3044, 31, 203, 3639, 1426, 731, 1290, 30746, 31, 203, 3639, 2254, 6205, 1290, 30746, 31, 203, 3639, 1426, 7...
// File: contracts/assets/TokenBankInterface.sol pragma solidity >=0.4.21 <0.6.0; contract TokenBankInterface{ function issue(address token_addr, address payable _to, uint _amount) public returns (bool success); } // File: contracts/utils/Ownable.sol pragma solidity >=0.4.21 <0.6.0; contract Ownable { addres...
@dev This function makes it easy to read the `allowed[]` map @param _owner The address of the account that owns the token @param _spender The address of the account able to transfer the tokens @return Amount of remaining tokens of _owner that _spender is allowed to spend
function allowance(address _owner, address _spender) public view returns (uint256 remaining) { return allowed[_owner][_spender]; }
204,572
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1220, 445, 7297, 518, 12779, 358, 855, 326, 1375, 8151, 8526, 68, 852, 632, 891, 389, 8443, 1021, 1758, 434, 326, 2236, 716, 29065, 326, 1147, 632, 891, 389, 87, 1302, 264, 1021, 1758, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1699, 1359, 12, 2867, 389, 8443, 16, 1758, 389, 87, 1302, 264, 13, 1071, 1476, 1135, 261, 11890, 5034, 4463, 13, 288, 203, 3639, 327, 2935, 63, 67, 8443, 6362, 67, 87, 1302, 264, 15533, 203, 565, 289, 203, 203, 2, -...
/** *Submitted for verification at Etherscan.io on 2020-02-11 */ pragma solidity 0.5.11; // optimization runs: 200, evm version: petersburg interface DharmaReserveManagerV1Interface { event RoleModified(Role indexed role, address account); event RolePaused(Role indexed role); event RoleUnpaused(Role indexed...
* @notice External view function to check the account currently holding the pauser role. The pauser can pause any role from taking its standard action, though the owner will still be able to call the associated function in the interim and is the only entity able to unpause the given role once paused. @return The addres...
function getPauser() external view returns (address pauser) { pauser = _roles[uint256(Role.PAUSER)].account; }
12,590,154
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 11352, 1476, 445, 358, 866, 326, 2236, 4551, 19918, 326, 6790, 1355, 2478, 18, 1021, 6790, 1355, 848, 11722, 1281, 2478, 628, 13763, 2097, 4529, 1301, 16, 11376, 326, 3410, 903, 4859, 506,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 1689, 69, 1355, 1435, 3903, 1476, 1135, 261, 2867, 6790, 1355, 13, 288, 203, 565, 6790, 1355, 273, 389, 7774, 63, 11890, 5034, 12, 2996, 18, 4066, 4714, 13, 8009, 4631, 31, 203, 225, 289, 203, 21281, 2, -100, -100, -1...
./full_match/1/0xF5abAdec1bcb7d79D0E972981F13D731D5d06aA8/sources/contracts/storage/GenArtStorage.sol
* @dev Update payment splitter for collection @param paymentSplitter address of new payment splitter/
function setPaymentSplitter(address collection, address paymentSplitter) external onlyAdmin { collections[collection].paymentSplitter = paymentSplitter; }
4,883,559
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2315, 5184, 21553, 364, 1849, 632, 891, 5184, 26738, 1758, 434, 394, 5184, 21553, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 6032, 26738, 12, 2867, 1849, 16, 1758, 5184, 26738, 13, 203, 3639, 3903, 203, 3639, 1338, 4446, 203, 565, 288, 203, 3639, 6980, 63, 5548, 8009, 9261, 26738, 273, 5184, 26738, 31, 203, 565, 289, 203, 2, -100, -100, ...
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/...
* @title Claimable Methods @dev Implementation of the claiming utils that can be useful for withdrawing accidentally sent tokens that are not used in bridge operations./
abstract contract ClaimableERC721Tradable is ERC721Tradable { using SafeERC20Upgradeable for IERC20Upgradeable; function claimValues(address _token, address _to) public onlyOwner() { if (_token == address(0)) { _claimNativeCoins(_to); _claimErc20Tokens(_token, _to); } ...
13,927,916
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 18381, 429, 13063, 632, 5206, 25379, 434, 326, 7516, 310, 2990, 716, 848, 506, 5301, 364, 598, 9446, 310, 25961, 1230, 3271, 2430, 716, 854, 486, 1399, 316, 10105, 5295, 18, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 18381, 429, 654, 39, 27, 5340, 1609, 17394, 353, 4232, 39, 27, 5340, 1609, 17394, 288, 203, 565, 1450, 14060, 654, 39, 3462, 10784, 429, 364, 467, 654, 39, 3462, 10784, 429, 31, 203, 203, 203, 565, 445, 7516, 1972, ...
// SPDX-License-Identifier: LGPL-3.0-or-later pragma solidity ^0.7.1; import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol"; import { ABDKMath64x64 } from "abdk-libraries-solidity/ABDKMath64x64.sol"; import { ERC1155WithTotals } from "./ERC1155/ERC1155WithTotals.sol"; import { ERC1155Holder } from "@open...
Current address of a user. @param _originalAddress The original address of the user.
function originalToCurrentAddress(address _originalAddress) internal virtual returns (address) { return _originalAddress; }
6,370,865
[ 1, 4625, 348, 7953, 560, 30, 225, 6562, 1758, 434, 279, 729, 18, 632, 891, 389, 8830, 1887, 1021, 2282, 1758, 434, 326, 729, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2282, 774, 3935, 1887, 12, 2867, 389, 8830, 1887, 13, 2713, 5024, 1135, 261, 2867, 13, 288, 203, 3639, 327, 389, 8830, 1887, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.11; contract Owned { address public owner; function Owned() { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } function setOwner(address _newOwner) onlyOwner { owner = _newOwner; } } ...
VEN token, ERC20 compliant packed to 256bit to save gas usage.
contract VEN is Token, Owned { using SafeMath for uint256; } struct Supplies { uint128 total; uint128 rawTokens; } Supplies supplies; struct Account { uint112 balance; uint112 rawTokens; uint32 lastMintedTimestamp; } mapping(address => Accoun...
7,214,510
[ 1, 4625, 348, 7953, 560, 30, 225, 776, 1157, 1147, 16, 4232, 39, 3462, 24820, 12456, 358, 8303, 3682, 358, 1923, 16189, 4084, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 776, 1157, 353, 3155, 16, 14223, 11748, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 203, 97, 203, 565, 1958, 3425, 5259, 288, 203, 3639, 2254, 10392, 2078, 31, 203, 3639, 2254, 10392, 1831, 5157, 31, ...
./partial_match/3/0xC17710f516F698A21c9Bb9A587a51C7915837b91/sources/VoteTaswit.sol
* Function - getEventResult @dev This function will be used to get Event Result details of specific vote event @param eventID - Event ID @return candidateAddress @return totalVotes @return totalCandidates @return resultStatus @return eventTotalVotes/
function getEventResult(uint256 eventID) public view returns ( address candidateAddress, uint256 totalVotes, uint256 totalCandidates, bool resultStatus, uint256 eventTotalVotes ) { return ( voteEventR...
5,127,125
[ 1, 4625, 348, 7953, 560, 30, 380, 4284, 300, 9832, 1253, 632, 5206, 1220, 445, 903, 506, 1399, 358, 336, 2587, 3438, 3189, 434, 2923, 12501, 871, 632, 891, 871, 734, 300, 2587, 1599, 632, 2463, 5500, 1887, 632, 2463, 2078, 29637, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 9832, 1253, 12, 11890, 5034, 871, 734, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 203, 5411, 1758, 5500, 1887, 16, 203, 5411, 2254, 5034, 2078, 29637, 16, 203, 5411, 2254, 5034, 2078, 18455, 16, 203, 54...
// contracts/GameItem.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/ERC721/IE...
* @dev Return the address for the reporting smart contract. use it to query for data @return reporting address of the reporting smart contract/
function getGamesReporting() external view returns (address reporting) { reporting = address(_reporting); }
1,061,022
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2000, 326, 1758, 364, 326, 16096, 13706, 6835, 18, 999, 518, 358, 843, 364, 501, 632, 2463, 16096, 1758, 434, 326, 16096, 13706, 6835, 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, 445, 7162, 753, 29285, 1435, 3903, 1476, 1135, 261, 2867, 16096, 13, 288, 203, 3639, 16096, 273, 1758, 24899, 20904, 1769, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/80001/0xDfc1CcDadf37195228bA39E7Ae72DeC77BCE6401/sources/contracts/AchieveMint.sol
* @dev ERC1155 and AccessControl include supportsInterface we need to override both./
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, AccessControlEnumerable) returns (bool) { return super.supportsInterface(interfaceId); }
5,691,091
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4232, 39, 2499, 2539, 471, 24349, 2341, 6146, 1358, 732, 1608, 358, 3849, 3937, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6146, 1358, 12, 3890, 24, 1560, 548, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 5024, 203, 3639, 3849, 12, 654, 39, 2499, 2539, 16, 24349, 3572, 25121, 13, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 363...
pragma solidity ^0.8.10; import "./erc-20/IERC20Metadata.sol"; // Modeled after ERC-20 standard even though negative balances aren't compatible contract CoveredCall { address payable public origin; // The exchange contract governing the protocal IERC20Metadata publi...
Update their new index
_shorts_index[swap] = _shorts_index[long];
2,496,897
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 3675, 394, 770, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 6620, 87, 67, 1615, 63, 22270, 65, 273, 389, 6620, 87, 67, 1615, 63, 5748, 15533, 1171, 9079, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.5.0; import "./TellorGetters.sol"; /** * @title Tellor Oracle System * @dev Oracle contract where miners can submit the proof of work along with the value. * The logic for this contract is in TellorLibrary.sol, TellorDispute.sol, TellorStake.sol, * and TellorTransfer.sol */ contract Tellor is...
* @dev Allows token holders to vote @param _disputeId is the dispute id @param _supportsDispute is the vote (true=the dispute has basis false = vote against dispute)/
function vote(uint256 _disputeId, bool _supportsDispute) external { tellor.vote(_disputeId, _supportsDispute); }
1,046,189
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25619, 1147, 366, 4665, 358, 12501, 632, 891, 389, 2251, 2507, 548, 353, 326, 1015, 2507, 612, 632, 891, 389, 28064, 1669, 2507, 353, 326, 12501, 261, 3767, 33, 5787, 1015, 2507, 711, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12501, 12, 11890, 5034, 389, 2251, 2507, 548, 16, 1426, 389, 28064, 1669, 2507, 13, 3903, 288, 203, 3639, 9276, 280, 18, 25911, 24899, 2251, 2507, 548, 16, 389, 28064, 1669, 2507, 1769, 203, 565, 289, 203, 203, 2, -100,...
./full_match/83/0xf063E7c32CBeE0890524AB919758ef72De48e18d/sources/contracts/BaseV1-core.sol
accrue fees for token0 and move them out of pool
if (amount0In > 0) _update0(amount0In / 10000);
9,564,231
[ 1, 4625, 348, 7953, 560, 30, 225, 4078, 86, 344, 1656, 281, 364, 1147, 20, 471, 3635, 2182, 596, 434, 2845, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 309, 261, 8949, 20, 382, 405, 374, 13, 389, 2725, 20, 12, 8949, 20, 382, 342, 12619, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/80001/0x268023DD238B747756eb6CF2f189aE4bA11702E5/sources/_thirdweb-dev/contracts/extension/Drop.sol
@dev Lets an account claim tokens. Update contract state. If there's a price, collect price. Mint the relevant tokens to claimer.
function claim( address _receiver, uint256 _quantity, address _currency, uint256 _pricePerToken, uint256 activeConditionId, AllowlistProof calldata _allowlistProof, bytes memory _data ) public payable virtual override { _beforeClaim(_receiver, _qua...
5,574,731
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 511, 2413, 392, 2236, 7516, 2430, 18, 2315, 6835, 919, 18, 971, 1915, 1807, 279, 6205, 16, 3274, 6205, 18, 490, 474, 326, 9368, 2430, 358, 927, 69, 4417, 18, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7516, 12, 203, 3639, 1758, 389, 24454, 16, 203, 3639, 2254, 5034, 389, 16172, 16, 203, 3639, 1758, 389, 7095, 16, 203, 3639, 2254, 5034, 389, 8694, 2173, 1345, 16, 203, 3639, 2254, 5034, 2695, 3418, 548, 16, 203, 3639, ...
// SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausa...
if the number of transfer is more than {MAX_APPLY_FEE_PER_TX} then only apply fee for {MAX_APPLY_FEE_PER_TX} transfers
{ uint256 totalFee; if (noOfTxs >= MAX_APPLY_FEE_PER_TX) { noOfTxs = MAX_APPLY_FEE_PER_TX; } if (noOfTxs <= 5) { totalFee = SERVICE_BASE_COST * MULTIPLIER_TRIAL; return _feeAfterDiscount(totalFee, token); } if (noOfTxs <= 50) { ...
7,274,732
[ 1, 4625, 348, 7953, 560, 30, 225, 309, 326, 1300, 434, 7412, 353, 1898, 2353, 288, 6694, 67, 2203, 23893, 67, 8090, 41, 67, 3194, 67, 16556, 97, 1508, 1338, 2230, 14036, 364, 288, 6694, 67, 2203, 23893, 67, 8090, 41, 67, 3194, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 3639, 2254, 5034, 2078, 14667, 31, 203, 3639, 309, 261, 2135, 951, 29070, 1545, 4552, 67, 2203, 23893, 67, 8090, 41, 67, 3194, 67, 16556, 13, 288, 203, 5411, 1158, 951, 29070, 273, 4552, 67, 2203, 23893, 67, 8090, ...
pragma solidity 0.5.8; import "../STO.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "./PreSaleSTOStorage.sol"; /** * @title STO module for private presales */ contract PreSaleSTO is PreSaleSTOStorage, STO { using SafeMath for uint256; event TokensAllocated(address _investor, uint...
* @title STO module for private presales/
contract PreSaleSTO is PreSaleSTOStorage, STO { using SafeMath for uint256; event TokensAllocated(address _investor, uint256 _amount); constructor(address _securityToken, address _polyToken) public Module(_securityToken, _polyToken) { } function configure(uint256 _endTime) public onlyFactory { ...
12,769,163
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 2347, 51, 1605, 364, 3238, 4075, 5408, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 2962, 30746, 31487, 353, 2962, 30746, 31487, 3245, 16, 2347, 51, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 871, 13899, 29392, 12, 2867, 389, 5768, 395, 280, 16, 2254, 5034, 389, 8949, 1769, 203, ...
/* * Origin Protocol * https://originprotocol.com * * Released under the MIT license * https://github.com/OriginProtocol/origin-dollar * * Copyright 2020 Origin Protocol, Inc * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files ...
* @dev Internal to calculate total value of all assets held in Strategies. @return uint256 Total value in ETH (1e18)/
function _totalValueInStrategies() internal view returns (uint256 value) { value = 0; for (uint256 i = 0; i < allStrategies.length; i++) { value += _totalValueInStrategy(allStrategies[i]); } }
610,565
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3186, 358, 4604, 2078, 460, 434, 777, 7176, 15770, 316, 3978, 15127, 18, 632, 2463, 2254, 5034, 10710, 460, 316, 512, 2455, 261, 21, 73, 2643, 13176, 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, 565, 445, 389, 4963, 620, 382, 1585, 15127, 1435, 2713, 1476, 1135, 261, 11890, 5034, 460, 13, 288, 203, 3639, 460, 273, 374, 31, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 777, 1585, 15127, 18, 2469, 31, 27...
/* GeyserToken https://github.com/gysr-io/core SPDX-License-Identifier: MIT */ pragma solidity 0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; /** * @title GYSR token * * @notice simple ERC20 compliant contract to implement GYSR token */ contr...
* @title GYSR token @notice simple ERC20 compliant contract to implement GYSR token/
contract GeyserToken is ERC20 { uint256 DECIMALS = 18; uint256 TOTAL_SUPPLY = 10 * 10**6 * 10**DECIMALS; GeyserToken constructor() ERC20("Geyser", "GYSR") { _mint(msg.sender, TOTAL_SUPPLY); } }
6,461,981
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 611, 61, 10090, 1147, 632, 20392, 4143, 4232, 39, 3462, 24820, 6835, 358, 2348, 611, 61, 10090, 1147, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 611, 402, 550, 1345, 353, 4232, 39, 3462, 288, 203, 565, 2254, 5034, 25429, 55, 273, 6549, 31, 203, 565, 2254, 5034, 399, 19851, 67, 13272, 23893, 273, 1728, 380, 1728, 636, 26, 380, 1728, 636, 23816, 55, 31, 203, 203, 4...
./full_match/1/0xc53c88783338fBceF7005458aE1f7c0AA3Bf91D3/sources/contracts/SideKickHeroes.sol
Do nothing, BNB will be sent to contract when selling tokens
fallback() external payable { }
8,431,731
[ 1, 4625, 348, 7953, 560, 30, 2256, 5083, 16, 605, 20626, 903, 506, 3271, 358, 6835, 1347, 357, 2456, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 5922, 1435, 3903, 8843, 429, 288, 203, 565, 289, 203, 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, -100, -100, -100, -100, -10...
pragma solidity ^0.4.18; /** * @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 ownerAddress; event OwnershipTransferred(address indexed previous...
* @dev this method is used to modify parentID if needed later; For this game it is very important to keep intended hierarchy; you never know WHEN exactly transaction will be confirmed in the blockchain Every Object creation is transaction; if by some accident Objects get "wrong" ID in the crySolObjects array,...
function setParentID (uint _crySolObjectID, uint16 _parentID) external onlyOwner() { crySolObjects[_crySolObjectID].parentID = _parentID; } mapping (uint => address) crySolObjectsApprovals; event Transfer(address indexed _from, address indexed _to, uint256 _id); event Approval(address in...
5,782,800
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 333, 707, 353, 1399, 358, 5612, 982, 734, 309, 3577, 5137, 31, 1377, 2457, 333, 7920, 518, 353, 8572, 10802, 358, 3455, 12613, 9360, 31, 1846, 5903, 5055, 29707, 8950, 2492, 903, 506, 199...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12548, 734, 261, 11890, 389, 71, 1176, 20608, 22359, 16, 2254, 2313, 389, 2938, 734, 13, 3903, 1338, 5541, 1435, 288, 203, 3639, 276, 1176, 20608, 4710, 63, 67, 71, 1176, 20608, 22359, 8009, 2938, 734, 273, 389, 2938, 7...
./full_match/5/0x75B213be4e8866E52aA9154DD3Ea9bc58e749E3B/sources/src/Contract.sol
return deposit variable
function getDeposit() public view returns (uint256) { return deposit; }
1,875,751
[ 1, 4625, 348, 7953, 560, 30, 225, 327, 443, 1724, 2190, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 336, 758, 1724, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 443, 1724, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "../interfaces/IERC2362.sol"; /** * @title SampleOracle * @notice This contract is only and example/place holder of an ADO * compliant oracle. It is centralized and should not be used in a production * environment. The purpose of this contract is to allow ...
* @title SampleOracle @notice This contract is only and example/place holder of an ADO compliant oracle. It is centralized and should not be used in a production environment. The purpose of this contract is to allow for testing the ADOMedianizer.sol contract./
contract SampleOracle is IERC2362 { mapping(bytes32=>mapping(uint=>int256)) valuesByID; mapping (bytes32 => uint[]) timestampsByID; function setValue(bytes32 _id, int256 _value) external{ valuesByID[_id][block.timestamp] = _value; timestampsByID[_id].push(block.timestamp); } functio...
12,637,009
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 11474, 23601, 632, 20392, 1220, 6835, 353, 1338, 471, 3454, 19, 964, 10438, 434, 392, 432, 3191, 24820, 20865, 18, 2597, 353, 18291, 1235, 471, 1410, 486, 506, 1399, 316, 279, 12449, 3330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11474, 23601, 353, 467, 654, 39, 4366, 8898, 288, 203, 565, 2874, 12, 3890, 1578, 9207, 6770, 12, 11890, 9207, 474, 5034, 3719, 924, 13331, 31, 203, 565, 2874, 261, 3890, 1578, 516, 2254, 63, 5717, 11267, 13331, 31, 203, 2...
pragma solidity >=0.8.4; import "./DecentraName.sol"; import "../root/Controllable.sol"; import "./IDecentraNameController.sol"; contract DecentraNameController is IDecentraNameController, Controllable { DecentraName public decentraName; constructor() { decentraName = new DecentraName(); } ...
This method only returns if token alredy mint or not. to know if token is valid and not expired use root.available
function existsToken(uint256 tokenId) external virtual override view returns (bool) { return decentraName.existsToken(tokenId); }
14,036,315
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 707, 1338, 1135, 309, 1147, 524, 1118, 93, 312, 474, 578, 486, 18, 358, 5055, 309, 1147, 353, 923, 471, 486, 7708, 999, 1365, 18, 5699, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1704, 1345, 12, 11890, 5034, 1147, 548, 13, 3903, 5024, 3849, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 2109, 275, 2033, 461, 18, 1808, 1345, 12, 2316, 548, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -1...
/** *Submitted for verification at Etherscan.io on 2021-11-17 */ // File: contracts/interfaces/IHistoryV1Market.sol pragma solidity ^0.8.0; interface IHistoryV1Market{ /// @notice emit when sale info is reset. event SaleInfoChangedEvt(address indexed token, uint256 indexed tokenId, uint256 price); /...
@notice Transfers NFT from the targeted address to the given destination @notice Errors with 'STF' if transfer fails @param token The contract address of the token to be transferred @param from The originating address from which the tokens will be transferred @param to The destination address of the transfer @param to...
function safeTransferNFTFrom( address token, address from, address to, uint256 tokenId ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC721.transferFrom.selector, from, to, tokenId)); require(success && (data.lengt...
6,612,428
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2604, 18881, 423, 4464, 628, 326, 20715, 1758, 358, 326, 864, 2929, 632, 20392, 9372, 598, 296, 882, 42, 11, 309, 7412, 6684, 632, 891, 1147, 1021, 6835, 1758, 434, 326, 1147, 358, 506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4183, 5912, 50, 4464, 1265, 12, 203, 3639, 1758, 1147, 16, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 565, 262, 2713, 288, 203, 3639, 261, 6430, 2216, 16, 1731, 3778, 50...
pragma solidity ^0.4.11; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a,...
calculates the amount
amount = msg.value.div(tempBuyPrice);
12,659,167
[ 1, 4625, 348, 7953, 560, 30, 225, 17264, 326, 3844, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3844, 273, 1234, 18, 1132, 18, 2892, 12, 5814, 38, 9835, 5147, 1769, 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, -10...
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity ^0.8.10; import "./types/NoteKeeper.sol"; import "./libraries/SafeERC20.sol"; import "./interfaces/IERC20Metadata.sol"; import "./interfaces/IBondDepository.sol"; /// @title Olympus Bond Depository V2 /// @author Zeus, Indigo /// Review by: JeffX contra...
* @notice up to date control variable @dev accounts for control variable adjustment @param _id ID of market @return control variable for market in OHM decimals/
function currentControlVariable(uint256 _id) public view returns (uint256) { (uint64 decay, , ) = _controlDecay(_id); return terms[_id].controlVariable - decay; }
12,969,457
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2398, 731, 358, 1509, 3325, 2190, 632, 5206, 7734, 9484, 364, 3325, 2190, 18335, 632, 891, 389, 350, 1850, 1599, 434, 13667, 632, 2463, 2398, 3325, 2190, 364, 13667, 316, 531, 44, 49, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 783, 3367, 3092, 12, 11890, 5034, 389, 350, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 261, 11890, 1105, 22286, 16, 269, 262, 273, 389, 7098, 1799, 528, 24899, 350, 1769, 203, 3639, 327, 6548, 63, 67, ...
pragma solidity 0.5.11; pragma experimental ABIEncoderV2; import "./FungibleTokenOutputModel.sol"; import "../utils/RLPReader.sol"; /** * @notice Data structure and its decode function for Payment transaction */ library PaymentTransactionModel { using RLPReader for bytes; using RLPReader for RLPReader.RLPIt...
* @notice Gets output at provided index/
function getOutput(Transaction memory transaction, uint16 outputIndex) internal pure returns (FungibleTokenOutputModel.Output memory) { require(outputIndex < transaction.outputs.length, "Output index out of bounds"); return transaction.outputs[outputIndex]; }
12,758,447
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 11881, 876, 622, 2112, 770, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 11062, 12, 3342, 3778, 2492, 16, 2254, 2313, 876, 1016, 13, 2713, 16618, 1135, 261, 42, 20651, 1523, 1345, 1447, 1488, 18, 1447, 3778, 13, 288, 203, 3639, 2583, 12, 2844, 1016, 411, 2492, 18, 12295, 18, 2469, 16, 315, ...
./full_match/80001/0xBcb019E9ecc34138a51Ae94f95D4686B3C695131/sources/contracts/IndradexMultiExternalVault.sol
* @dev Set the external balance only for the specified token./
function setTokenExternalBalance(address token, uint256 newExternalBalance) public onlyOwner onlyPresentToken(token) { require(tokenInternalBalance(token) + newExternalBalance >= tokenPendingBalance(token), "Vault: new external balance is not sufficient"); tokenInfo[token].externalBalance = newExternalBalance...
9,458,438
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1000, 326, 3903, 11013, 1338, 364, 326, 1269, 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, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 22629, 6841, 13937, 12, 2867, 1147, 16, 2254, 5034, 394, 6841, 13937, 13, 1071, 1338, 5541, 1338, 6351, 1345, 12, 2316, 13, 288, 203, 565, 2583, 12, 2316, 3061, 13937, 12, 2316, 13, 397, 394, 6841, 13937, 1545, 1147, 85...
./full_match/4/0x6806a0622632fa2b40F4a0Ef4A2411b69397f226/sources/browser/LiquidityTransformer.sol
* @notice checks for callers total investment tokens (with bonus) @return total tokens/
function myTotalInvestmentTokens() external view returns (uint256) { uint256 _total = 0; for (uint8 i = 1; i <= INVESTMENT_DAYS; i++) { if (investorBalances[msg.sender][i] > 0) { _total += investorBalances[msg.sender][i].mul( _calculateDailyRatio(i) ...
13,348,184
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4271, 364, 19932, 2078, 2198, 395, 475, 2430, 261, 1918, 324, 22889, 13, 632, 2463, 2078, 2430, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 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, 3399, 5269, 3605, 395, 475, 5157, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 389, 4963, 273, 374, 31, 203, 203, 3639, 364, 261, 11890, 28, 277, 273, 404, 31, 277, 1648, 2120, 3412, 882, ...
//Address: 0x0230CfC895646d34538aE5b684d76Bf40a8B8B89 //Contract name: Random //Balance: 0 Ether //Verification Date: 9/5/2017 //Transacion Count: 3 // CODE STARTS HERE pragma solidity ^0.4.4; contract Random { uint64 _seed = 0; // return a pseudo random number between lower and upper bounds // given the num...
return a pseudo random number between lower and upper bounds given the number of previous blocks it should hash.
contract Random { uint64 _seed = 0; function random(uint64 upper) public returns (uint64 randomNumber) { _seed = uint64(sha3(sha3(block.blockhash(block.number), _seed), now)); return _seed % upper; } }
6,456,111
[ 1, 4625, 348, 7953, 560, 30, 225, 327, 279, 12454, 2744, 1300, 3086, 2612, 471, 3854, 4972, 864, 326, 1300, 434, 2416, 4398, 518, 1410, 1651, 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...
[ 1, 1, 1, 1, 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, 16351, 8072, 288, 203, 225, 2254, 1105, 389, 12407, 273, 374, 31, 203, 203, 203, 203, 225, 445, 2744, 12, 11890, 1105, 3854, 13, 1071, 1135, 261, 11890, 1105, 2744, 1854, 13, 288, 203, 565, 389, 12407, 273, 2254, 1105, 12, 7819, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** @title IntelPropertyTokens.sol is an ERC20 token smart contract handling Intellectual Property. * @author Chris B...
* @notice returns Finalized status for this IntelProperty file */
function getFinalizedFlag(uint _nftID) external view returns(bool _finalized) { (IntelPropertyFile storage sdFile) = (intelPropertyFile[_nftID]); return sdFile.finalized; }
6,451,043
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1135, 16269, 1235, 1267, 364, 333, 3094, 292, 1396, 585, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 202, 915, 2812, 1490, 1235, 4678, 12, 11890, 389, 82, 1222, 734, 13, 3903, 1476, 1135, 12, 6430, 389, 6385, 1235, 13, 288, 203, 202, 202, 12, 27233, 1396, 812, 2502, 8349, 812, 13, 273, 261, 474, 292, 1396, 812, 63, 67, 82, 1...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "../Admin/Whitelisted.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title LockedAccount. /// @author @Dadogg80. /// @notice This contract will lock any funds transfered into it and destroy the contract at withdrawal like a piggyba...
@notice Deposit is emited when ETHER is transfered into this smart-contract. @notice Withdraw is emited when ETHER is transfered out from this smart-contract. @notice The deployer of this contract.
constructor() { owner = payable(msg.sender); isWhitelisted[owner] = true; }
7,222,986
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 4019, 538, 305, 353, 3626, 329, 1347, 512, 19905, 353, 7412, 329, 1368, 333, 13706, 17, 16351, 18, 632, 20392, 3423, 9446, 353, 3626, 329, 1347, 512, 19905, 353, 7412, 329, 596, 628, 333...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 288, 203, 3639, 3410, 273, 8843, 429, 12, 3576, 18, 15330, 1769, 203, 3639, 353, 18927, 329, 63, 8443, 65, 273, 638, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //interfaces discussed above import "./IERC3156FlashBorrower.sol"; import "./IERC3156FlashLender.sol"; //interface for our contract to know how does an ERC20 looks like interface IERC20 { function totalSupply() external view returns (uint256); function...
interfaces discussed above
import "./IERC3156FlashBorrower.sol";
7,244,058
[ 1, 4625, 348, 7953, 560, 30, 7349, 19169, 407, 730, 5721, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5666, 25165, 45, 654, 39, 23, 28946, 11353, 38, 15318, 264, 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, -100, -100, -...
./partial_match/8453/0x7b8ba104E89bc58384bA694E040f47980da86Ff9/sources/UniswapV2Router02.sol
refund dust eth, if any
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external virtual override payable ensure(deadline) returns (uint[] memory amounts) { require(path[0] == WETH, 'UniswapV2Router: INVALID_PATH'); amounts = UniswapV2Library.ge...
16,724,245
[ 1, 4625, 348, 7953, 560, 30, 225, 16255, 302, 641, 13750, 16, 309, 1281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7720, 1584, 44, 1290, 14332, 5157, 12, 11890, 3844, 1182, 16, 1758, 8526, 745, 892, 589, 16, 1758, 358, 16, 2254, 14096, 13, 203, 565, 3903, 203, 565, 5024, 203, 565, 3849, 203, 565, 8843, 429, 203, 565, 3387, 12, 220...
pragma solidity ^0.4.18; interface ERC721 { /// @dev This emits when ownership of any NFT changes by any mechanism. /// This event emits when NFTs are created (`from` == 0) and destroyed /// (`to` == 0). Exception: during contract creation, any number of NFTs /// may be created and assigned wit...
@notice Transfers the ownership of an NFT from one address to another address @dev This works identically to the other function with an extra data parameter, except this function just sets data to "" @param _from The current owner of the NFT @param _to The new owner @param _tokenId The NFT to transfer
function safeTransferFrom(address _from, address _to, uint256 _tokenId) external { safeTransferFrom(_from,_to,_tokenId,""); }
5,414,056
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2604, 18881, 326, 23178, 434, 392, 423, 4464, 628, 1245, 1758, 358, 4042, 1758, 632, 5206, 1220, 6330, 3390, 6478, 358, 326, 1308, 445, 598, 392, 2870, 501, 1569, 16, 225, 1335, 333, 445...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4183, 5912, 1265, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 5034, 389, 2316, 548, 13, 3903, 288, 203, 3639, 4183, 5912, 1265, 24899, 2080, 16, 67, 869, 16, 67, 2316, 548, 16, 3660, 1769, 203, 565, 289, 203, ...
./full_match/80001/0x4A581989Eb350c1EbF18D348714BbABdB9C517Df/sources/NftStaking.sol
transfer the token back to the withdrawer
nftCollection.transferFrom(address(this), msg.sender, _tokenId);
9,439,993
[ 1, 4625, 348, 7953, 560, 30, 7412, 326, 1147, 1473, 358, 326, 598, 9446, 264, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 82, 1222, 2532, 18, 13866, 1265, 12, 2867, 12, 2211, 3631, 1234, 18, 15330, 16, 389, 2316, 548, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.8.0; // SPDX-License-Identifier: Unlicensed interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves...
is the token balance of this contract address over the min number of tokens that we need to initiate a swap + liquidity lock? also, don't get caught in a circular liquidity event. also, don't swap & liquify if sender is uniswap pair.add liquidityif any account belongs to _isExcludedFromFee account then remove the fee
function _transfer( address from, address to, uint256 amount ) private { require(!paused, "Trading is paused"); require(from != to, "Sending to yourself is disallowed"); require( !_isBlacklisted[from] && !_isBlacklisted[to], "Blacklisted ac...
374,329
[ 1, 4625, 348, 7953, 560, 30, 225, 353, 326, 1147, 11013, 434, 333, 6835, 1758, 1879, 326, 1131, 1300, 434, 2430, 716, 732, 1608, 358, 18711, 279, 7720, 397, 4501, 372, 24237, 2176, 35, 2546, 16, 2727, 1404, 336, 13537, 316, 279, 153...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 3238, 288, 203, 3639, 2583, 12, 5, 8774, 3668, 16, 315, 1609, 7459, 353, 17781, 8863, 203, 3639, 2583, 12...
pragma solidity ^0.4.11; /** * Math operations with safety checks */ library SafeMath { function mul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint a, uint b) internal returns (uint) { // assert(b > 0); // So...
Accumulated miner hash rate
uint256 totalHashRate;
971,159
[ 1, 4625, 348, 7953, 560, 30, 225, 15980, 5283, 690, 1131, 264, 1651, 4993, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 2078, 2310, 4727, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/3/0xC78d97764d62236ac1AF9F8655CD985b31f3B150/sources/TROL_STAKE.sol
------------------------------------------------------------------------ Unstake the tokens @required user must be a staker @required must be claimable ------------------------------------------------------------------------ transfer staked tokens
function UnStake() public { uint256 stakedAmount = stakers[msg.sender].stakedAmount; require(stakedAmount > 0, "insufficient stake"); totalStaked = totalStaked.sub(stakedAmount); stakers[msg.sender].pending = pendingReward(msg.sender); stakers[msg.sender].stakedAmou...
5,129,953
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 17082, 1351, 334, 911, 326, 2430, 632, 4718, 729, 1297, 506, 279, 384, 6388, 632, 4718, 1297, 506, 7516, 429, 8879, 17082, 7412, 384, 9477, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1351, 510, 911, 1435, 1071, 288, 203, 3639, 2254, 5034, 384, 9477, 6275, 273, 384, 581, 414, 63, 3576, 18, 15330, 8009, 334, 9477, 6275, 31, 203, 3639, 2583, 12, 334, 9477, 6275, 405, 374, 16, 315, 2679, 11339, 384, 9...
pragma solidity >=0.7.0; import "./ERC721.sol"; import "./Ownable.sol"; import "./IMintedBeforeReveal.sol"; contract WildAnimalUniverseMintPass is ERC721, Ownable, IMintedBeforeReveal { // Time of when the sale starts. uint256 public constant SALE_START_TIMESTAMP = 1629679036; uint256 public constant R...
Time of when the sale starts. Maximum amount in existance. The block in which the starting index was created. The index of the item that will be #1.
contract WildAnimalUniverseMintPass is ERC721, Ownable, IMintedBeforeReveal { uint256 public constant SALE_START_TIMESTAMP = 1629679036; uint256 public constant REVEAL_TIMESTAMP = SALE_START_TIMESTAMP; uint256 public constant MAX_ANIMALPASS_SUPPLY = 5555; uint256 public startingIndexBlock; uin...
1,632,288
[ 1, 4625, 348, 7953, 560, 30, 225, 2647, 434, 1347, 326, 272, 5349, 2542, 18, 18848, 3844, 316, 1005, 1359, 18, 1021, 1203, 316, 1492, 326, 5023, 770, 1703, 2522, 18, 1021, 770, 434, 326, 761, 716, 903, 506, 468, 21, 18, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 678, 545, 979, 2840, 984, 17488, 49, 474, 6433, 353, 4232, 39, 27, 5340, 16, 14223, 6914, 16, 6246, 474, 329, 4649, 426, 24293, 288, 203, 203, 203, 565, 2254, 5034, 1071, 5381, 17127, 900, 67, 7570, 67, 17201, 273, 2872, ...
./full_match/43113/0x55f3f540319B467b3C7CEa1759058350096208F4/sources/contracts/testSwap.sol
amount of tokens we are sending inthe minimum amount of tokens we want out of the tradelist of token addresses we are going to trade in. this is necessary to calculate amountsthis is the address we are going to send the output tokens tothe last time that the trade is valid for
interface IPangolinRouter { function WAVAX() external pure returns (address); function factory() external pure returns (address); function getAmountsOut(uint256 amountIn, address[] memory path) external view returns (uint256[] memory amounts); function swapExactTokensForToke...
13,150,794
[ 1, 4625, 348, 7953, 560, 30, 3844, 434, 2430, 732, 854, 5431, 316, 5787, 5224, 3844, 434, 2430, 732, 2545, 596, 434, 326, 1284, 3771, 376, 434, 1147, 6138, 732, 854, 8554, 358, 18542, 316, 18, 225, 333, 353, 4573, 358, 4604, 3844, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2971, 539, 355, 267, 8259, 288, 203, 1377, 445, 678, 5856, 2501, 1435, 203, 3639, 3903, 16618, 1135, 261, 2867, 1769, 203, 565, 445, 3272, 1435, 203, 3639, 3903, 16618, 1135, 261, 2867, 1769, 203, 225, 445, 24418, 87, 1182, ...
/* * CRYPTOTAB * CR CR CCCCC RRRRRR Y Y PPPPPP TTTTTTT OOOOO TTTTTTT A BBBBBBB * Y CRYPT Y C R R Y Y P P T O O T A A B B * P R P C R R Y Y P P T O O T A A ...
* @dev See {IMintableERC20-mint}./
function mint(address user, uint256 amount) external override only(PREDICATE_ROLE) { _mint(user, amount); }
612,130
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 3445, 474, 429, 654, 39, 3462, 17, 81, 474, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 12, 2867, 729, 16, 2254, 5034, 3844, 13, 203, 3639, 3903, 203, 3639, 3849, 203, 3639, 1338, 12, 3670, 2565, 13000, 67, 16256, 13, 203, 565, 288, 203, 3639, 389, 81, 474, 12, 1355, 16, 3844, 1769, 203, 565, ...
// File: @openzeppelin/contracts/utils/Context.sol // SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not ...
* @title ERC721Minter @dev This Contract is used to interact with ERC721 Contract/
contract ERC721Minter is ERC721, Ownable { address private _mediaContract; address private _adminAddress; address private _communityAddress; uint16 private _adminCommission; uint16 private _communityCommission; mapping(address => uint256[]) private _tokenHolderToIDs; modifier onlyMediaC...
14,877,505
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 4232, 39, 27, 5340, 49, 2761, 632, 5206, 1220, 13456, 353, 1399, 358, 16592, 598, 4232, 39, 27, 5340, 13456, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 27, 5340, 49, 2761, 353, 4232, 39, 27, 5340, 16, 14223, 6914, 288, 203, 565, 1758, 3238, 389, 5829, 8924, 31, 203, 203, 565, 1758, 3238, 389, 3666, 1887, 31, 203, 565, 1758, 3238, 389, 20859, 1887, 31, 203, 203...
pragma solidity 0.5.16; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20Mintable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import ".....
We assume that this contract is a minter on underlying
ProfitNotifier(_storage, _underlying) { require(_underlying != address(0), "_underlying cannot be empty"); require(_vault != address(0), "_vault cannot be empty"); underlying = IERC20(_underlying); vault = IVault(_vault); profitRateNumerator = _profitRateNumerator; profitRateDenominator = _pro...
14,065,850
[ 1, 4625, 348, 7953, 560, 30, 225, 1660, 6750, 716, 333, 6835, 353, 279, 1131, 387, 603, 6808, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 1186, 7216, 14889, 24899, 5697, 16, 389, 9341, 6291, 13, 288, 203, 565, 2583, 24899, 9341, 6291, 480, 1758, 12, 20, 3631, 4192, 9341, 6291, 2780, 506, 1008, 8863, 203, 565, 2583, 24899, 26983, 480, 1758, 12, 20, 3631, 4192, ...
pragma solidity ^0.4.23; /** https://zethr.io https://zethr.io https://zethr.io https://zethr.io https://zethr.io ███████╗███████╗████████╗██╗ ██╗██████╗ ╚══███╔╝██╔════╝╚══██╔══╝██║ ██║██╔══██╗ ███╔╝ █████╗ ██║ ███████║████...
Ad the game to the whitelisted addresses
whitelistedContract[game] = true;
15,147,310
[ 1, 4625, 348, 7953, 560, 30, 225, 4052, 326, 7920, 358, 326, 26944, 6138, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 26944, 8924, 63, 13957, 65, 273, 638, 31, 7010, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/4/0x26092855EF40De1Ab342650a6fc14d514E51Da79/sources/Lottery.sol
commition per ticket
uint256 public constant ticketCommission = 0.1 ether;
781,274
[ 1, 4625, 348, 7953, 560, 30, 225, 1543, 608, 1534, 9322, 7010, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 5381, 9322, 799, 3951, 273, 374, 18, 21, 225, 2437, 31, 565, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.16; contract BBCCToken{ uint256 public totalSupply; function balanceOf(address _owner) public constant returns (uint256 balance); function transfer(address _to, uint256 _value) public returns (bool success); function transferFrom(address _from, address _to, uint256 _value) public returns(bool suc...
往接收账户增加token数量_value
balances[_to] += _value;
2,256,608
[ 1, 4625, 348, 7953, 560, 30, 225, 166, 127, 227, 167, 241, 103, 167, 247, 119, 169, 117, 104, 167, 235, 120, 166, 100, 257, 166, 237, 259, 2316, 167, 248, 113, 170, 234, 242, 67, 1132, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 70, 26488, 63, 67, 869, 65, 1011, 389, 1132, 31, 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,...
contract TurnBasedGame { bool debug; // If contract is deployed in debug mode, some debug features are enabled modifier debugOnly { if (!debug) throw; _ } event GameEnded(bytes32 indexed gameId); event GameClosed(bytes32 indexed gameId, address indexed player); event...
A timeout can be confirmed by the non-initializing player. */ just the two players currently playing
function confirmGameEnded(bytes32 gameId) notEnded(gameId) public { var game = games[gameId]; if (msg.sender != game.player1 && msg.sender != game.player2) throw; if (game.timeoutState == 0) throw; if (msg.sender != game.nextPlayer) { game.ende...
2,536,676
[ 1, 4625, 348, 7953, 560, 30, 225, 432, 2021, 848, 506, 19979, 635, 326, 1661, 17, 6769, 6894, 7291, 18, 1195, 2537, 326, 2795, 18115, 4551, 23982, 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, 6932, 12496, 28362, 12, 3890, 1578, 7920, 548, 13, 486, 28362, 12, 13957, 548, 13, 1071, 288, 203, 3639, 569, 7920, 273, 28422, 63, 13957, 548, 15533, 203, 3639, 309, 261, 3576, 18, 15330, 480, 7920, 18, 14872, 21, 597,...
./full_match/44787/0x2b8BCe3d29701cE7a745FE296BEB672Bb5a330a4/sources/contracts/StarFarm.sol
Stake Star NFT to MasterChefrequire(userNFTs[_msgSender()].length > 0, "star token user");uint256 _amountGain = user.amount.add(user.amount.mul(_selfGain.add(_parentGain)).div(100)); if (_nftAmountGain > 0) {
function enterStakingNFT(uint256 _tokenId) public { PoolInfo storage pool = poolInfo[0]; UserInfo storage user = userInfo[0][_msgSender()]; require(starNFT.ownerOf(_tokenId) == _msgSender(), "error NFT user"); updatePool(0); (uint256 _selfGain, uint256 _parentGain) = starNode.node...
13,242,612
[ 1, 4625, 348, 7953, 560, 30, 225, 934, 911, 934, 297, 423, 4464, 358, 13453, 39, 580, 74, 6528, 12, 1355, 50, 4464, 87, 63, 67, 3576, 12021, 1435, 8009, 2469, 405, 374, 16, 315, 10983, 1147, 729, 8863, 11890, 5034, 389, 8949, 43, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 6103, 510, 6159, 50, 4464, 12, 11890, 5034, 389, 2316, 548, 13, 1071, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 20, 15533, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 20, 6362, 67, 3576, 12021, 1435, ...
pragma solidity ^0.4.18; // ---------------------------------------------------------------------------- // 'Pitcheum' CROWDSALE token contract // // Deployed to : 0x864701ce66e6d9f059a21740527fa6680956e5c2 // Symbol : PCN // Name : Pitcheum // Total supply: 2500000000 // Decimals : 18 // // Enjoy. // /...
------------------------------------------------------------------------ 700,000 PCN Tokens per 1 ETH ------------------------------------------------------------------------
function () public payable { require(now >= startDate && now <= endDate); uint tokens; if (now <= bonusEnds) { tokens = msg.value * 750000; tokens = msg.value * 700000; } balances[msg.sender] = safeAdd(balances[msg.sender], tokens); _totalSuppl...
7,017,840
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 17082, 2371, 713, 16, 3784, 453, 12821, 13899, 1534, 404, 512, 2455, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1832, 1071, 8843, 429, 288, 203, 3639, 2583, 12, 3338, 1545, 12572, 597, 2037, 1648, 13202, 1769, 203, 3639, 2254, 2430, 31, 203, 3639, 309, 261, 3338, 1648, 324, 22889, 24980, 13, 288, 203, 5411, 2430, 273, 1234, 18, 1...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, sinc...
amount: Unlocked tokens, total: Total locked tokens Time-bonus params Global accounting state User accounting state Represents a single stake for a user. A user may have multiple.
contract MYSTStaker is IStaking, Ownable { using SafeMath for uint256; event Staked(address indexed user, uint256 amount, uint256 total, bytes data); event Unstaked(address indexed user, uint256 amount, uint256 total, bytes data); event TokensClaimed(address indexed user, uint256 amount); event Tok...
5,530,133
[ 1, 4625, 348, 7953, 560, 30, 225, 3844, 30, 3967, 329, 2430, 16, 2078, 30, 10710, 8586, 2430, 2647, 17, 18688, 407, 859, 8510, 2236, 310, 919, 2177, 2236, 310, 919, 868, 6706, 87, 279, 2202, 384, 911, 364, 279, 729, 18, 432, 729, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 22069, 882, 510, 6388, 353, 467, 510, 6159, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 871, 934, 9477, 12, 2867, 8808, 729, 16, 2254, 5034, 3844, 16, 2254, 5034, 2078, 16, 1731,...
./full_match/1/0xe59eEdBD212469B4DcEd434bF33A60eAf3fB447b/sources/contracts/FastDappName.sol
Check if name is available Check if name is valid
function mint(string memory _name, string memory _location) public payable { uint256 tokenId = getIdFromName(_name); require(msg.value >= price, "You didn't pay enough"); require(!_exists(tokenId), "Name already taken"); require( isNameValid(_name), "Name must...
16,512,739
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 309, 508, 353, 2319, 2073, 309, 508, 353, 923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 312, 474, 12, 1080, 3778, 389, 529, 16, 533, 3778, 389, 3562, 13, 1071, 8843, 429, 288, 203, 3639, 2254, 5034, 1147, 548, 273, 2634, 29732, 24899, 529, 1769, 203, 3639, 2583, 12, 3576, 18, 1132, 1545, 6205, 16, 315, 6...
./full_match/1/0xa3C8d390c3965D33937865973b6159D37B777C54/sources/src/exchanges/interfaces/IUniswapExchange.sol
@dev Minimal interface for our interactions with UniswapExchange Trade ETH to ERC20 Trade ERC20 to ETH Trade ERC20 to ERC20 Provide Liquidity Get Prices
interface IUniswapExchange { function ethToTokenTransferInput(uint256 min_tokens, uint256 deadline, address recipient) external payable returns (uint256 tokens_bought); function tokenToEthSwapInput(uint256 tokens_sold, uint256 min_eth, uint256 deadline) external returns (...
3,057,553
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 5444, 2840, 1560, 364, 3134, 23877, 598, 1351, 291, 91, 438, 11688, 2197, 323, 512, 2455, 358, 4232, 39, 3462, 2197, 323, 4232, 39, 3462, 358, 512, 2455, 2197, 323, 4232, 39, 3462, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 984, 291, 91, 438, 11688, 288, 203, 565, 445, 13750, 774, 1345, 5912, 1210, 12, 11890, 5034, 1131, 67, 7860, 16, 2254, 5034, 14096, 16, 1758, 8027, 13, 203, 3639, 3903, 203, 3639, 8843, 429, 203, 3639, 1135, 261, 11890...
./full_match/1/0xb6ac852b4aF99d5ED4775964BB359bf68e9ECB85/sources/node_modules/@sablier/v2-core/src/types/DataTypes.sol
@notice Struct encapsulating the time range. @param start The Unix timestamp for the stream's start. @param cliff The Unix timestamp for the cliff period's end. @param end The Unix timestamp for the stream's end.
struct Range { uint40 start; uint40 cliff; uint40 end; }
2,997,786
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 7362, 22106, 27967, 326, 813, 1048, 18, 632, 891, 787, 1021, 9480, 2858, 364, 326, 1407, 1807, 787, 18, 632, 891, 927, 3048, 1021, 9480, 2858, 364, 326, 927, 3048, 3879, 1807, 679, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 8086, 288, 203, 3639, 2254, 7132, 787, 31, 203, 3639, 2254, 7132, 927, 3048, 31, 203, 3639, 2254, 7132, 679, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/4/0x0D5865Ab41bdFADC4BaD674C525E05f55905952b/sources/_chainlink/contracts/src/v0.6/vendor/Ownable.sol
* @dev Initializes the contract setting the deployer as the initial owner./
constructor () internal { _owner = msg.sender; emit OwnershipTransferred(address(0), _owner); }
810,283
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10188, 3128, 326, 6835, 3637, 326, 7286, 264, 487, 326, 2172, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 3885, 1832, 2713, 288, 203, 565, 389, 8443, 273, 1234, 18, 15330, 31, 203, 565, 3626, 14223, 9646, 5310, 1429, 4193, 12, 2867, 12, 20, 3631, 389, 8443, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.4.24; /// @title Ownable /// @dev Provide a modifier that permits only a single user to call the function contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /// @dev Set the original `owner` of the contr...
@notice Get the bonus token percentage for `user` @param user The address of a crowdsale participant @return The percentage of bonus tokens `user` qualifies for
function getBonusPercent(address user) public view returns(uint256) { return participants[user].bonusPercent; }
976,429
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 968, 326, 324, 22889, 1147, 11622, 364, 1375, 1355, 68, 632, 891, 729, 1021, 1758, 434, 279, 276, 492, 2377, 5349, 14188, 632, 2463, 1021, 11622, 434, 324, 22889, 2430, 1375, 1355, 68, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 2882, 22889, 8410, 12, 2867, 729, 13, 1071, 1476, 1135, 12, 11890, 5034, 13, 288, 203, 3639, 327, 22346, 63, 1355, 8009, 18688, 407, 8410, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
// This Contract serves as a "helper" contract to deploy ConveyorV2 contracts using CREATE2 // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; contract Deployer is Ownable { event ContractDeployed(address addr); /** * @dev Performs a func...
* @dev Deploys a contract using `CREATE2`. The address where the contract will be deployed can be known in advance via {computeAddress}. The bytecode for a contract can be obtained from Solidity with `type(contractName).creationCode`. The bytecode can also be obtained from ethers.js contract factory with ContractFactor...
function deploy( bytes calldata bytecode, bytes calldata data, bytes32 salt ) external onlyOwner returns (address) { address addr; bytes memory packedBytes = abi.encodePacked(bytecode, data); require(bytecode.length != 0, "Create2: bytecode length is zero"); ...
12,621,186
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4019, 383, 1900, 279, 6835, 1450, 1375, 9344, 22, 8338, 1021, 1758, 1625, 326, 6835, 903, 506, 19357, 848, 506, 4846, 316, 8312, 3970, 288, 9200, 1887, 5496, 1021, 22801, 364, 279, 6835, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7286, 12, 203, 3639, 1731, 745, 892, 22801, 16, 203, 3639, 1731, 745, 892, 501, 16, 203, 3639, 1731, 1578, 4286, 203, 565, 262, 3903, 1338, 5541, 1135, 261, 2867, 13, 288, 203, 3639, 1758, 3091, 31, 203, 3639, 1731, 3...
./partial_match/1/0x6eC571bEE204dC17eF7CaD5547Dc9084D28031f8/sources/contracts/vaults/BaseVaults/base/RibbonVault.sol
* @notice Helper function to make either an ETH transfer or ERC20 transfer @param recipient is the receiving address @param amount is the transfer amount/
function transferAsset(address payable recipient, uint256 amount) internal { address asset = vaultParams.asset; if (asset == WETH) { IWETH(WETH).withdraw(amount); require(success, "!success"); return; } IERC20(asset).safeTransfer(recipient, amount)...
4,319,638
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 9705, 445, 358, 1221, 3344, 392, 512, 2455, 7412, 578, 4232, 39, 3462, 7412, 632, 891, 8027, 353, 326, 15847, 1758, 632, 891, 3844, 353, 326, 7412, 3844, 19, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 6672, 12, 2867, 8843, 429, 8027, 16, 2254, 5034, 3844, 13, 2713, 288, 203, 3639, 1758, 3310, 273, 9229, 1370, 18, 9406, 31, 203, 3639, 309, 261, 9406, 422, 678, 1584, 44, 13, 288, 203, 5411, 467, 59, 1584, 44, ...
./partial_match/42/0x888132379c0AcCBA2B2DA971956Dc79B9115D9Ce/sources/MockPool.sol
emit when admin process the pool unstake request
contract SeedPool is State, Constants { using SafeMath for uint256; event Stake(address indexed user, uint256 indexed pool, uint256 indexed amount); event Unstake(address indexed user, uint256 indexed pool, uint256 indexed amount); event Harvest(address indexed user, uint256 indexed pool, uint256 index...
8,919,841
[ 1, 4625, 348, 7953, 560, 30, 225, 3626, 1347, 3981, 1207, 326, 2845, 640, 334, 911, 590, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 28065, 2864, 353, 3287, 16, 5245, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 871, 934, 911, 12, 2867, 8808, 729, 16, 2254, 5034, 8808, 2845, 16, 2254, 5034, 8808, 3844, 1769, 203, 565, 871, 1351...
./full_match/43113/0x9A98dcc990d8E4B079cB42ef1BD6f4dAE3f58E87/sources/project_/contracts/BEP20TokenImplementationFlattened.sol
* @dev @notice `msg.sender` approves `_spender` to send `_amount` tokens on its behalf, and then a function is triggered in the contract that is being approved, `_spender`. This allows users to use their tokens to interact with contracts in one function call instead of two Requirements: - `spender` The address of the ...
function approveAndCall( ApproveAndCallFallBack _spender, uint256 _amount, bytes calldata _extraData ) external returns (bool success) { _approve(_msgSender(), address(_spender), _amount); _spender.receiveApproval(msg.sender, _amount, _extraData); return true; ...
13,173,507
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 225, 632, 20392, 1375, 3576, 18, 15330, 68, 6617, 3324, 1375, 67, 87, 1302, 264, 68, 358, 1366, 1375, 67, 8949, 68, 2430, 603, 2097, 12433, 6186, 16, 471, 1508, 279, 445, 353, 10861, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 6617, 537, 1876, 1477, 12, 203, 3639, 1716, 685, 537, 1876, 1477, 42, 454, 2711, 389, 87, 1302, 264, 16, 203, 3639, 2254, 5034, 389, 8949, 16, 203, 3639, 1731, 745, 892, 389, 7763, 751, 203, 565, 262, 3903, 1135, 261,...
./partial_match/1/0x204d9DE758217A39149767731a87Bcc32427b6ef/sources/RedemptionPool.sol
* @notice Allow users to claim their share of USDC tokens based on the amount of GRO tokens they have deposited @dev Users must have a positive GRO token balance and a non-zero claim available to make a claim @dev The deadline for making GRO deposits must have passed @dev Redeems the user's cUSDC tokens for an equivale...
function claim(uint256 _amount) external onlyAfterDeadline { uint256 userClaim = getSharesAvailable(msg.sender); if (!(_amount > 0 && _amount <= userClaim)) { revert RedemptionErrors.InvalidClaim(); } uint256 redeemResult = ICERC20(CUSDC).redeem(_amount); if (re...
9,180,780
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 7852, 3677, 358, 7516, 3675, 7433, 434, 11836, 5528, 2430, 2511, 603, 326, 3844, 434, 611, 1457, 2430, 2898, 1240, 443, 1724, 329, 632, 5206, 12109, 1297, 1240, 279, 6895, 611, 1457, 1147,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7516, 12, 11890, 5034, 389, 8949, 13, 3903, 1338, 4436, 15839, 288, 203, 3639, 2254, 5034, 729, 9762, 273, 1322, 3395, 455, 5268, 12, 3576, 18, 15330, 1769, 203, 203, 3639, 309, 16051, 24899, 8949, 405, 374, 597, 389, 8...
/** *Submitted for verification at Etherscan.io on 2022-04-22 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of toke...
* @dev Sets the value of the `decimals`. This value is immutable, it can only be set once during construction./
constructor () ERC20('Copium Inu', 'COPIUM') { _mint(_msgSender(), _totalSupply); }
8,068,645
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11511, 326, 460, 434, 326, 1375, 31734, 8338, 1220, 460, 353, 11732, 16, 518, 848, 1338, 506, 444, 3647, 4982, 16171, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 3885, 1832, 4232, 39, 3462, 2668, 11635, 5077, 657, 89, 2187, 296, 3865, 1102, 2799, 6134, 288, 203, 3639, 389, 81, 474, 24899, 3576, 12021, 9334, 389, 4963, 3088, 1283, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -1...
pragma solidity 0.4.21; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint25...
Check if signature is valid, get signer&#39;s address and mark this cheque as used.
function coupon(uint256 _timeStamp, uint8 _bonus, uint8 v, bytes32 r, bytes32 s) external canMint payable { require(_timeStamp >= getNow()); bytes memory prefix = "\x19Ethereum Signed Message:\n32"; bytes32 hash = keccak256(prefix, keccak256(_timeStamp, _bonus)); address signer = e...
15,161,240
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 309, 3372, 353, 923, 16, 336, 10363, 18642, 5520, 31, 87, 1758, 471, 2267, 333, 19315, 1857, 487, 1399, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 16174, 12, 11890, 5034, 389, 957, 8860, 16, 2254, 28, 389, 18688, 407, 16, 2254, 28, 331, 16, 1731, 1578, 436, 16, 1731, 1578, 272, 13, 3903, 848, 49, 474, 8843, 429, 288, 203, 3639, 2583, 24899, 957, 8860, 1545, 336,...
pragma solidity ^0.4.15; /* https://cryptogs.io --Austin Thomas Griffith for ETHDenver ( this is unaudited ) */ /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract...
* @title Ownable @dev The Ownable contract has an owner address, and provides basic authorization control functions, this simplifies the implementation of "user permissions"./
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); --Austin Thomas Griffith for ETHDenver function Ownable() public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } function tra...
5,771,855
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 14223, 6914, 632, 5206, 1021, 14223, 6914, 6835, 711, 392, 3410, 1758, 16, 471, 8121, 5337, 6093, 3325, 4186, 16, 333, 9330, 5032, 326, 4471, 434, 315, 1355, 4371, 9654, 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, 16351, 14223, 6914, 288, 203, 225, 1758, 1071, 3410, 31, 203, 203, 203, 225, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808, 2416, 5541, 16, 1758, 8808, 394, 5541, 1769, 203, 203, 203, 225, 1493, 37, 641, 267, 935, 362, 345, ...
./full_match/4/0x064d70C37Fec5658061980C9AD250c3e1Be3B93f/sources/browser/CHwork.sol
****************************************************************** Data storage ********************************************************************************************************************************************************* Event section *****************...
contract CHCON is owned { using SafeMath for uint256 ; string constant private _name = "CH_Task"; string constant private _symbol = "CH_"; uint256 constant private _decimals = 6; uint256 private _totalSupply = 800000000; bool public safeguard; mapping(address => uint256) private _balanceO...
12,497,970
[ 1, 4625, 348, 7953, 560, 30, 19756, 14, 1171, 1910, 2502, 21394, 19756, 11125, 19482, 565, 2587, 2442, 565, 19756, 19482, 14465, 1220, 6026, 279, 1071, 871, 434, 1147, 7412, 1220, 24551, 2973, 1699, 1359, 1220, 903, 613, 23556, 434, 114...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 6469, 2248, 353, 16199, 288, 203, 203, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 274, 203, 565, 533, 5381, 3238, 389, 529, 273, 315, 1792, 67, 2174, 14432, 203, 565, 533, 5381, 3238, 389, 7175, 273, 315, 1792, 95...
pragma solidity 0.4.18; // File: contracts/ERC20Interface.sol // https://github.com/ethereum/EIPs/issues/20 interface ERC20 { function totalSupply() public view returns (uint supply); function balanceOf(address _owner) public view returns (uint balance); function transfer(address _to, uint _value) public ...
@title Kyber Reserve contract
contract KyberReserve is KyberReserveInterface, Withdrawable, Utils { address public kyberNetwork; bool public tradeEnabled; ConversionRatesInterface public conversionRatesContract; SanityRatesInterface public sanityRatesContract; function KyberReserve(address _kyberNetwork, ConversionRatesInterf...
509,369
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 1475, 93, 744, 1124, 6527, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1475, 93, 744, 607, 6527, 353, 1475, 93, 744, 607, 6527, 1358, 16, 3423, 9446, 429, 16, 6091, 288, 203, 203, 565, 1758, 1071, 417, 93, 744, 3906, 31, 203, 565, 1426, 1071, 18542, 1526, 31, 203, 565, 16401, 20836, 1358, 1...
./full_match/1/0x7d9CCd94ba18CdE4FBE93F918018B4A9FAa99893/sources/contracts/LiveMintArtist.sol
* @dev Changes Merkle Root/
function __NewRoots(uint[] calldata ArtistIDs, bytes32[] calldata NewRoots) external onlyOwner { require(ArtistIDs.length == NewRoots.length, "LiveMintArtist: Arrays Must Be Of Equal Length"); }
17,096,915
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 17776, 31827, 7450, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1001, 1908, 17540, 12, 11890, 8526, 745, 892, 9042, 376, 5103, 16, 1731, 1578, 8526, 745, 892, 1166, 17540, 13, 3903, 1338, 5541, 203, 565, 288, 203, 3639, 2583, 12, 4411, 376, 5103, 18, 2469, 422, 1166, 17540, 18, 2469...