file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
// SPDX-License-Identifier: MIT pragma solidity ^0.5.17; interface IERC20 { function TOTALSUPPLY668() external view returns (uint256); //inject NONSTANDARD NAMING function BALANCEOF477(address account) external view returns (uint256); //inject...
inject NONSTANDARD NAMING
function STAKE285(uint) external;
14,109,660
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2347, 37, 6859, 6030, 25, 12, 11890, 13, 3903, 31, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.21; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev I...
message sender is not a contract
require(!isContract(msg.sender));
1,837,410
[ 1, 4625, 348, 7953, 560, 30, 225, 883, 5793, 353, 486, 279, 6835, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2583, 12, 5, 291, 8924, 12, 3576, 18, 15330, 10019, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.4.8; /* This is an example contract that helps test the functionality of the approveAndCall() functionality of HumanStandardToken.sol. This one assumes successful receival of approval. */ contract SampleRecipientSuccess { /* A Generic receiving function for contracts that accept tokens */ addres...
A Generic receiving function for contracts that accept tokens */
This is an example contract that helps test the functionality of the approveAndCall() functionality of HumanStandardToken.sol. This one assumes successful receival of approval. function receiveApproval(address _from, uint256 _value, address _tokenContract, bytes _extraData) { from = _from; value = _value; ...
12,641,816
[ 1, 4625, 348, 7953, 560, 30, 225, 432, 7928, 15847, 445, 364, 20092, 716, 2791, 2430, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 2503, 353, 392, 3454, 6835, 716, 21814, 1842, 326, 14176, 434, 326, 6617, 537, 1876, 1477, 1435, 14176, 434, 670, 6925, 8336, 1345, 18, 18281, 18, 203, 2503, 1245, 13041, 6873, 2637, 5162, 434, 23556, 18, 203, 225, 445, 6798, 23461...
pragma solidity 0.4.25; /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address _who) external view returns (uint256); function allowance(address _owner, address _...
* @dev Increase the amount of tokens that an owner allowed to a spender. approve should be called when allowed_[_spender] == 0. To increment allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) From MonolithDAO Token.sol @param _spender The address which will spe...
function increaseApproval( address _spender, uint256 _addedValue ) public returns (bool) { allowed_[msg.sender][_spender] = (allowed_[msg.sender][_spender].add(_addedValue)); emit Approval(msg.sender, _spender, allowed_[msg.sender][_spender]); return true;...
7,275,056
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 657, 11908, 326, 3844, 434, 2430, 716, 392, 3410, 2935, 358, 279, 17571, 264, 18, 6617, 537, 1410, 506, 2566, 1347, 2935, 67, 63, 67, 87, 1302, 264, 65, 422, 374, 18, 2974, 5504, 2935, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10929, 23461, 12, 203, 3639, 1758, 389, 87, 1302, 264, 16, 203, 3639, 2254, 5034, 389, 9665, 620, 203, 565, 262, 203, 1377, 1071, 203, 1377, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2935, 67, 63, 3576, 18, 15330...
./partial_match/3/0xD9c7faC625653C7a1FD2479813432a7442a440C2/sources/LoyaltyToken.sol
Contract Owner (LoyalMine) mints tokens as rewards for GDAO stalers
contract LoyaltyToken is ERC20("Loyalty Points", "LOYAL"), ERC20Burnable, Ownable { mapping(address => bool) private admins; mapping(address => bool) private whitelist; mapping (address => mapping (address => uint256)) private _allowances; function mint(address _to, uint256 _amount) public onlyO...
5,089,351
[ 1, 4625, 348, 7953, 560, 30, 225, 13456, 16837, 261, 1504, 93, 287, 49, 558, 13, 312, 28142, 2430, 487, 283, 6397, 364, 611, 18485, 384, 287, 414, 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, 16351, 3176, 93, 15006, 1345, 353, 4232, 39, 3462, 2932, 1504, 93, 15006, 22464, 3113, 315, 1502, 61, 1013, 6, 3631, 4232, 39, 3462, 38, 321, 429, 16, 14223, 6914, 288, 203, 377, 203, 565, 2874, 12, 2867, 516, 1426, 13, 3238, 3...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to t...
* @notice Sweep any ERC20 token to governor address @dev OnlyGovernor can call this and CTokens are not allowed to sweep @param _fromToken Token address to sweep/ Do not sweep cTokens
function sweep(address _fromToken) external onlyGovernor { require(!cTokenList.contains(_fromToken), "cToken-is-not-allowed-to-sweep"); uint256 _amount = IERC20(_fromToken).balanceOf(address(this)); IERC20(_fromToken).safeTransfer(_msgSender(), _amount); }
10,170,983
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 348, 25236, 1281, 4232, 39, 3462, 1147, 358, 314, 1643, 29561, 1758, 632, 5206, 5098, 43, 1643, 29561, 848, 745, 333, 471, 385, 5157, 854, 486, 2935, 358, 17462, 632, 891, 389, 2080, 134...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 445, 17462, 12, 2867, 389, 2080, 1345, 13, 3903, 1338, 43, 1643, 29561, 288, 203, 3639, 2583, 12, 5, 71, 1345, 682, 18, 12298, 24899, 2080, 1345, 3631, 315, 71, 1345, 17, 291, 17, 902, 17, 8151, 17, 869, 17, 87, 25236, 8...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import {OrderTypes} from "../libraries/OrderTypes.sol"; import {IExecutionStrategy} from "../interfaces/IExecutionStrategy.sol"; /** * @title StrategyPrivateSale * @notice Strategy to set up an order that can only be executed by * a specific address. */ con...
* @notice Check whether a taker bid order can be executed against a maker ask @param takerBid taker bid order @param makerAsk maker ask order @return (whether strategy can be executed, tokenId to execute, amount of tokens to execute)/ Retrieve target buyer
function canExecuteTakerBid(OrderTypes.TakerOrder calldata takerBid, OrderTypes.MakerOrder calldata makerAsk) external view override returns ( bool, uint256, uint256 ) { address targetBuyer = abi.decode(makerAsk.params, (address...
6,460,224
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2073, 2856, 279, 268, 6388, 9949, 1353, 848, 506, 7120, 5314, 279, 312, 6388, 6827, 632, 891, 268, 6388, 17763, 268, 6388, 9949, 1353, 632, 891, 312, 6388, 23663, 312, 6388, 6827, 1353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 848, 5289, 56, 6388, 17763, 12, 2448, 2016, 18, 56, 6388, 2448, 745, 892, 268, 6388, 17763, 16, 4347, 2016, 18, 12373, 2448, 745, 892, 312, 6388, 23663, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 3849, 203, 3639, ...
./partial_match/1/0x46d81377EDA197f24ea58C636336569216b58D1f/sources/contracts/POPS_teamWallet_shares.sol
Override item to be deleted with last item in array (address)
shareholders[ shareholderIndex[shareholder] ] = shareholders[ shareholders.length - 1 ];
16,033,989
[ 1, 4625, 348, 7953, 560, 30, 225, 1439, 761, 358, 506, 4282, 598, 1142, 761, 316, 526, 261, 2867, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 7433, 9000, 63, 7433, 4505, 1016, 63, 14419, 4505, 65, 308, 273, 7433, 9000, 63, 7433, 9000, 18, 2469, 300, 404, 308, 31, 1377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
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 ...
check overflows do encoding
function encodePriceFeed(uint blockNumber, uint nonce, uint ask, uint bid) internal pure returns(uint) { require(blockNumber < POW_2_64); require(nonce < POW_2_64); require(ask < POW_2_64); require(bid < POW_2_64); uint result = blockNumber; result |= nonce * POW_2_6...
10,897,769
[ 1, 4625, 348, 7953, 560, 30, 225, 866, 9391, 87, 741, 2688, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2017, 5147, 8141, 12, 11890, 1203, 1854, 16, 2254, 7448, 16, 2254, 6827, 16, 2254, 9949, 13, 2713, 16618, 1135, 12, 11890, 13, 288, 203, 3639, 2583, 12, 2629, 1854, 411, 453, 7306, 67, 22, 67, 1105, 1769, 203, 3639, 2...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.1; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which i...
* @dev Creates `amount` tokens and assigns them to `account`, increasing the total supply. Emits a {Transfer} event with `from` set to the zero address. Requirements - `to` cannot be the zero address./
function _mintTotalSupply(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(a...
7,793,000
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10210, 1375, 8949, 68, 2430, 471, 22698, 2182, 358, 1375, 4631, 9191, 21006, 326, 2078, 14467, 18, 7377, 1282, 279, 288, 5912, 97, 871, 598, 1375, 2080, 68, 444, 358, 326, 3634, 1758, 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, 445, 389, 81, 474, 5269, 3088, 1283, 12, 2867, 2236, 16, 2254, 5034, 3844, 13, 2713, 5024, 288, 203, 3639, 2583, 12, 4631, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 312, 474, 358, 326, 3634, 1758, 8863, 203, 203, ...
pragma solidity ^0.5.3; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "./interfaces/IReserve.sol"; import "./interfaces/ISortedOracles.sol"; import "../common/FixidityLib.sol"; import "../common/Initializable.sol"; import "../common...
* @notice Returns the amount of unfrozen Celo Gold included in the reserve. @return The unfrozen Celo Gold amount included in the reserve./
function getUnfrozenReserveGoldBalance() public view returns (uint256) { return getUnfrozenBalance().add(getOtherReserveAddressesGoldBalance()); }
2,528,247
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2860, 326, 3844, 434, 640, 28138, 385, 24214, 611, 1673, 5849, 316, 326, 20501, 18, 632, 2463, 1021, 640, 28138, 385, 24214, 611, 1673, 3844, 5849, 316, 326, 20501, 18, 19, 2, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10833, 28138, 607, 6527, 43, 1673, 13937, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 10833, 28138, 13937, 7675, 1289, 12, 588, 8290, 607, 6527, 7148, 43, 1673, 13937, 10663, 203, 225, 289, 203, 203,...
/* Kaws Inu | $KAWS (ERC-20) At Kaws Inu we push the boundaries between art and the meme token movement. Website: www.kawsinu.com Twitter: https://twitter.com/kawsinu English: https://t.me/kawsinu China: https://t.me/kawsinu_china https://t.me/kawsinu ...
set as dev1 wallet
dev1Wallet = payable(0x66ab0e7b105B78938C689f60DDfcdEfDe7ea5433);
341,038
[ 1, 4625, 348, 7953, 560, 30, 225, 444, 487, 4461, 21, 9230, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 377, 202, 5206, 21, 16936, 273, 8843, 429, 12, 20, 92, 6028, 378, 20, 73, 27, 70, 21661, 38, 27, 6675, 7414, 39, 26, 6675, 74, 4848, 5698, 74, 4315, 41, 74, 758, 27, 24852, 6564, 3707, 1769, 282, 2, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./rdrdependencies/IUniswapV2Pair.sol"; import "./rdrdependencies/IUniswapV2Factory.sol"; import "./rdrdependencies/ERC20.sol"; import "./rdrdependencies/Ownable.sol"; import "./rdrdependencies/IUniswapV2Router02.sol"; contract RedDeadRedemption is ERC20...
Uniswap Router: 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D Marketing / Redemption / Dev Fee are Sent to a contract for further distribution to save on transfer gas fees exclude from paying fees or having max transaction amount
constructor() ERC20("Red Dead Redemption", "RED") { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; uniswapV...
9,188
[ 1, 4625, 348, 7953, 560, 30, 1351, 291, 91, 438, 9703, 30, 374, 92, 27, 69, 26520, 72, 4313, 5082, 38, 24, 71, 42, 25, 5520, 27, 5520, 72, 42, 22, 39, 25, 72, 37, 7358, 24, 71, 26, 6162, 42, 3247, 5482, 40, 6622, 21747, 342,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3885, 1435, 4232, 39, 3462, 2932, 3715, 23967, 868, 19117, 375, 3113, 315, 5879, 7923, 288, 203, 3639, 203, 3639, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 389, 318, 291, 91, 438, 58, 22, 8259, 273, 467, 984, 291, 91, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./ERC721A.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import ...
* @dev Returns the total amount of tokens stored by the contract./* @dev Returns a token ID owned by `owner` at a given `index` of its token list. Use along with {balanceOf} to enumerate all of ``owner``'s tokens./* @dev Returns a token ID at a given `index` of all the tokens stored by the contract. Use along with {tot...
library Address { function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity } pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.s...
1,540,396
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 2078, 3844, 434, 2430, 4041, 635, 326, 6835, 18, 20308, 632, 5206, 2860, 279, 1147, 1599, 16199, 635, 1375, 8443, 68, 622, 279, 864, 1375, 1615, 68, 434, 2097, 1147, 666, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 5267, 288, 203, 225, 445, 389, 5771, 1345, 1429, 18881, 12, 203, 565, 1758, 628, 16, 203, 565, 1758, 358, 16, 203, 565, 2254, 5034, 787, 1345, 548, 16, 203, 565, 2254, 5034, 10457, 203, 203, 225, 445, 389, 5205, 1345, 14...
pragma solidity ^0.4.24; import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; /// @title KtonVoter /// @dev Voting and support specific proposal validator by deposit KTON /// Vote will be cancel after KTON get withdrawd /// 1 KTON means one vote contract KtonVoter { address public KTON; struct Vot...
TODO: address[] voters;
struct CandidateItem { } mapping (address => VoterItem) public voterItems; mapping (address => CandidateItem) public cadidateItems;
912,348
[ 1, 4625, 348, 7953, 560, 30, 225, 2660, 30, 1758, 8526, 331, 352, 414, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1958, 385, 8824, 1180, 288, 203, 565, 289, 203, 203, 565, 2874, 261, 2867, 516, 776, 20005, 1180, 13, 225, 1071, 331, 20005, 3126, 31, 203, 377, 203, 565, 2874, 261, 2867, 516, 385, 8824, 1180, 13, 1071, 28451, 350, 340, 3...
./full_match/1/0xD05ca8f5B9fd7fa84D1c92b2e64feA8259EeC1ae/sources/browser/CompMiner_flat.sol
File: localhost/contracts/CompMiner.sol
library Types { enum AssetDenomination { Wei, Par } enum AssetReference { Delta, Target } function compSupplyState(address) view external returns(uint224, uint32); function compBorrowState(address) view external returns(uint224, uint32); } pragma solidity ^0.6.0; } pragma solidity ^0.6.0; @t...
9,805,926
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 30, 17365, 19, 16351, 87, 19, 2945, 2930, 264, 18, 18281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12083, 7658, 288, 203, 565, 2792, 10494, 8517, 362, 1735, 288, 1660, 77, 16, 2280, 289, 203, 565, 2792, 10494, 2404, 288, 17799, 16, 5916, 289, 203, 565, 445, 1161, 3088, 1283, 1119, 12, 2867, 13, 1476, 3903, 1135, 12, 11890, 236...
./partial_match/1/0xBF61FaF6e1C3E66d61F76ab5fBEEa8A80440B1E6/sources/ERC721ADigitalHeroes.sol
Max supply for public
uint256 maxSupplyForPublicSale = 500;
15,484,199
[ 1, 4625, 348, 7953, 560, 30, 4238, 14467, 364, 1071, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 943, 3088, 1283, 1290, 4782, 30746, 273, 6604, 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, ...
./full_match/1/0x9d362E690dAc196958C3817a8b9C6338Dc6562BD/sources/@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds enumerability of all the token ids in the contract as well as all token ids owned by each account./ Mapping from owner to list of owned token IDs Mapping from token ID to index of the owner tokens list Array with all token ids, used f...
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { mapping(address => mapping(uint256 => uint256)) private _ownedTokens; mapping(uint256 => uint256) private _ownedTokensIndex; uint256[] private _allTokens; mapping(uint256 => uint256) private _allTokensIndex; function supportsInter...
9,787,609
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1220, 4792, 392, 3129, 2710, 434, 288, 654, 39, 27, 5340, 97, 2553, 316, 326, 512, 2579, 716, 4831, 3557, 2967, 434, 777, 326, 1147, 3258, 316, 326, 6835, 487, 5492, 487, 777, 1147, 325...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 4232, 39, 27, 5340, 3572, 25121, 353, 4232, 39, 27, 5340, 16, 467, 654, 39, 27, 5340, 3572, 25121, 288, 203, 565, 2874, 12, 2867, 516, 2874, 12, 11890, 5034, 516, 2254, 5034, 3719, 3238, 389, 995, 329, 5157, 31, 20...
./partial_match/3/0xFB15f38c1856F80b3df17b568ccff281F37b5370/sources/ReservePortionRNBAlternativeProposalVoting.sol
* @dev throw if called when user already voted./
modifier onlyIfUserVoteAbsent() { require(votes[msg.sender] == 0, "voting proposal already voted"); _; }
5,179,545
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 604, 309, 2566, 1347, 729, 1818, 331, 16474, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 2047, 1299, 19338, 14009, 1435, 288, 203, 3639, 2583, 12, 27800, 63, 3576, 18, 15330, 65, 422, 374, 16, 315, 90, 17128, 14708, 1818, 331, 16474, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 2, -100, -100, -100, ...
// SPDX-License-Identifier: MIT // SYS 64738 // Version 2.0 // Author: 0xTycoon // Contributor: Alphasoup <twitter: alphasoups> // Special Thanks: straybits1, cryptopunkart, cyounessi1, ethereumdegen, Punk7572, sherone.eth, // songadaymann, Redlioneye.eth, tw1tte7, PabloPunkasso, Kaprekar_Punk, aradtski...
lpToken is the address of LP token contract that's being staked.
ILiquidityPoolERC20 public lpToken;
1,072,863
[ 1, 4625, 348, 7953, 560, 30, 225, 12423, 1345, 353, 326, 1758, 434, 511, 52, 1147, 6835, 716, 1807, 3832, 384, 9477, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 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, 467, 48, 18988, 24237, 2864, 654, 39, 3462, 1071, 12423, 1345, 31, 5411, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/43113/0x86Be96d2f0FbF29099797eF2146172ca21cd7855/sources/contracts/CreateToken.sol
Track how many tokens are owned by each address. Assign all tokens to the contract's creator.
contract FakeToken { event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); mapping (address => uint256) public balanceOf; mapping (address => mapping(address => uint256)) public allowance; ...
13,150,666
[ 1, 4625, 348, 7953, 560, 30, 225, 11065, 3661, 4906, 2430, 854, 16199, 635, 1517, 1758, 18, 12093, 777, 2430, 358, 326, 6835, 1807, 11784, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 11551, 1345, 288, 203, 377, 203, 565, 871, 12279, 12, 2867, 8808, 389, 2080, 16, 1758, 8808, 389, 869, 16, 2254, 5034, 389, 1132, 1769, 203, 565, 871, 1716, 685, 1125, 12, 2867, 8808, 389, 8443, 16, 1758, 8808, 389, 87, ...
./partial_match/1/0x0176A80CcCA7514eD1C32ba1866b8EC497bbF040/sources/StoryOfShiba.sol
exclude from paying fees or having max transaction amount
constructor() ERC20("Story Of Shiba", "SOS") { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; uniswapV2Pair =...
2,740,860
[ 1, 4625, 348, 7953, 560, 30, 225, 4433, 628, 8843, 310, 1656, 281, 578, 7999, 943, 2492, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 4232, 39, 3462, 2932, 510, 630, 8031, 2638, 495, 69, 3113, 315, 3584, 55, 7923, 288, 203, 3639, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 389, 318, 291, 91, 438, 58, 22, 8259, 273, 467, 984, 291, 91, 438, ...
pragma solidity ^0.6.0; import "../Initializable.sol"; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dea...
* @notice reduce a given pool token's principalAmount and principalRedeemed by a specified amount @dev uses safemath to prevent underflow @dev this function is only intended for use as part of the v2.6.0 upgrade to rectify a bug that allowed users to create a PoolToken that had a larger amount of principal than...
function reducePrincipalAmount(uint256 tokenId, uint256 amount) external onlyAdmin { TokenInfo storage tokenInfo = tokens[tokenId]; tokenInfo.principalAmount = tokenInfo.principalAmount.sub(amount); tokenInfo.principalRedeemed = tokenInfo.principalRedeemed.sub(amount); }
6,890,079
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 5459, 279, 864, 2845, 1147, 1807, 8897, 6275, 471, 8897, 426, 24903, 329, 635, 279, 1269, 3844, 225, 632, 5206, 4692, 11029, 351, 421, 358, 5309, 3613, 2426, 225, 632, 5206, 333, 445, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 5459, 9155, 6275, 12, 11890, 5034, 1147, 548, 16, 2254, 5034, 3844, 13, 3903, 1338, 4446, 288, 203, 565, 3155, 966, 2502, 1147, 966, 273, 2430, 63, 2316, 548, 15533, 203, 565, 1147, 966, 18, 26138, 6275, 273, 1147, 966,...
./partial_match/1/0xd558f0C903CcAC458495F0Dc776Dbcc78F1adf79/sources/BatchPreOrder.sol
Maps Premium car variants to the tokens minted for their description INPUT: variant # OUTPUT: list of carsMax number of premium carsMax number of midgrade carsMax number of regular carsMax number of premium type carsMax number of midgrade type carsMax number of regular type carsPremium type idMidgrade type idRegular t...
contract BatchPreOrder is Destructible { mapping(uint => uint256) public currentTypePrice; mapping(uint => uint256[]) public premiumCarsBought; mapping(uint => uint256[]) public midGradeCarsBought; mapping(uint => uint256[]) public regularCarsBought; mapping(uint256 => address) public tokenReserve;...
4,436,153
[ 1, 4625, 348, 7953, 560, 30, 225, 19837, 453, 2764, 5077, 5926, 12935, 358, 326, 2430, 312, 474, 329, 364, 3675, 2477, 12943, 30, 5437, 468, 11550, 30, 666, 434, 276, 5913, 2747, 1300, 434, 23020, 5077, 276, 5913, 2747, 1300, 434, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 5982, 1386, 2448, 353, 10597, 8813, 1523, 288, 203, 565, 2874, 12, 11890, 516, 2254, 5034, 13, 1071, 27646, 5147, 31, 203, 203, 565, 2874, 12, 11890, 516, 2254, 5034, 63, 5717, 1071, 23020, 5077, 39, 5913, 13809, 9540, 31, ...
/** *Submitted for verification at Etherscan.io on 2020-07-08 */ // File: contracts/IERC165.sol pragma solidity ^0.5.11; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be ...
inject PUBLIC FUNC TO EXTERNAL
function name() public view returns (string memory) {
922,057
[ 1, 4625, 348, 7953, 560, 30, 4590, 17187, 478, 21163, 8493, 5675, 11702, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 508, 1435, 1071, 1476, 1135, 261, 1080, 3778, 13, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/4/0x3Ca60274a12dc87BFbF4D6A85BB06D879DEaeced/sources/contracts/FundMe.sol
we want it to be able to accept payments so "payable"
contract FundMe { using SafeMathChainlink for uint256; int public price_1; mapping(address => uint256) public funds; address[] public fundedBy; address owner; constructor() public{ owner = msg.sender; } function fund() public payable { uint256 minUSD = 50 * 10*...
831,211
[ 1, 4625, 348, 7953, 560, 30, 732, 2545, 518, 358, 506, 7752, 358, 2791, 25754, 1427, 315, 10239, 429, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 478, 1074, 4667, 288, 203, 565, 1450, 14060, 10477, 3893, 1232, 364, 2254, 5034, 31, 203, 565, 509, 1071, 6205, 67, 21, 31, 203, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 1071, 284, 19156, 31, 203, 565, 1758, 8526, 1071, ...
// hevm: flattened sources of src/psm.sol // SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity >=0.5.12 >=0.6.12 <0.7.0; ////// lib/dss-interfaces/src/dss/DaiAbstract.sol /* pragma solidity >=0.5.12; */ // https://github.com/makerdao/dss/blob/master/src/dai.sol interface DaiAbstract { function wards(addr...
--- Primary Functions ---
function sellGem(address usr, uint256 gemAmt) external { uint256 gemAmt18 = mul(gemAmt, to18ConversionFactor); uint256 fee = mul(gemAmt18, tin) / WAD; uint256 daiAmt = sub(gemAmt18, fee); gemJoin.join(address(this), gemAmt, msg.sender); vat.frob(ilk, address(this), address(th...
1,646,716
[ 1, 4625, 348, 7953, 560, 30, 225, 9948, 15884, 15486, 9948, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 357, 80, 43, 351, 12, 2867, 16575, 16, 2254, 5034, 17474, 31787, 13, 3903, 288, 203, 3639, 2254, 5034, 17474, 31787, 2643, 273, 14064, 12, 23465, 31787, 16, 358, 2643, 6814, 6837, 1769, 203, 3639, 2254, 5034, 14036, 273, ...
./partial_match/42/0xb939438B2C9cAD9101cbFDB47A150F7895f7C13D/sources/CallsV1.sol
this is the exercise alternative for ppl who want to receive payment currency instead of the underlying assetthe trick is using the uniswap conversion, but if the amount received back (after slippage and uni fees)is not sufficient to cover the total purchase, then the transaction will failfirst we need to swap some amo...
function cashCloseCall(uint _c, bool cashBack) payable public { require(call.open, "This isnt open"); require(call.expiry >= now, "This call is already expired"); require(call.exercised == false, "This has already been exercised!"); uint assetIn = estAssetIn(call.totalPurch); ...
8,906,211
[ 1, 4625, 348, 7953, 560, 30, 333, 353, 326, 24165, 10355, 364, 293, 412, 10354, 2545, 358, 6798, 5184, 5462, 3560, 434, 326, 6808, 3310, 5787, 28837, 353, 1450, 326, 640, 291, 91, 438, 4105, 16, 1496, 309, 326, 3844, 5079, 1473, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 276, 961, 4605, 1477, 12, 11890, 389, 71, 16, 1426, 276, 961, 2711, 13, 8843, 429, 1071, 288, 203, 3639, 2583, 12, 1991, 18, 3190, 16, 315, 2503, 353, 496, 1696, 8863, 203, 3639, 2583, 12, 1991, 18, 22409, 1545, 2037,...
// File: contracts/external/openzeppelin-solidity/math/SafeMath.sol pragma solidity ^0.5.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 ...
* @dev Checks if given addres is valid market address./
function isMarket(address _address) public view returns(bool) { return marketData[_address].isMarket; }
10,840,439
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13074, 309, 864, 527, 455, 353, 923, 13667, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 353, 3882, 278, 12, 2867, 389, 2867, 13, 1071, 1476, 1135, 12, 6430, 13, 288, 203, 1377, 327, 13667, 751, 63, 67, 2867, 8009, 291, 3882, 278, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/3/0x29ACA8F703d275aa2b02e9F08DDe8fcd67348097/sources/DexToDexArb.sol
bytes4(keccak256(bytes('transfer(address,uint256)')));
function safeTransfer(address token, address to, uint value) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'Dex, TransferHelper: TRANSFER_FAILED'); }
8,270,609
[ 1, 4625, 348, 7953, 560, 30, 225, 1731, 24, 12, 79, 24410, 581, 5034, 12, 3890, 2668, 13866, 12, 2867, 16, 11890, 5034, 2506, 3719, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4183, 5912, 12, 2867, 1147, 16, 1758, 358, 16, 2254, 460, 13, 2713, 288, 203, 3639, 261, 6430, 2216, 16, 1731, 3778, 501, 13, 273, 1147, 18, 1991, 12, 21457, 18, 3015, 1190, 4320, 12, 20, 6995, 9349, 6162, 7358, 70, ...
./full_match/1/0x7d42e2a27cEa65240cBEF5b4AC5738C71bE7112E/sources/Letters.sol
* @dev Mints some amount of tokens to an address @param _to Address of the future owner of the token @param _id Token ID to mint @param _quantity Amount of tokens to mint @param _data Data to pass if receiver is contract/
function mint(address _to, uint256 _id, uint256 _quantity, bytes memory _data) public { require(creators[_id] == msg.sender || minters[msg.sender] == true, "ERC1155Tradable#batchMint: ONLY_CREATOR_ALLOWED"); _mint(_to, _id, _quantity, _data); tokenSupply[_id] = tokenSupply[_id] + _quantity; }
17,001,247
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 490, 28142, 2690, 3844, 434, 2430, 358, 392, 1758, 632, 891, 389, 869, 1850, 5267, 434, 326, 3563, 3410, 434, 326, 1147, 632, 891, 389, 350, 1850, 3155, 1599, 358, 312, 474, 632, 891, 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, 312, 474, 12, 2867, 389, 869, 16, 2254, 5034, 389, 350, 16, 2254, 5034, 389, 16172, 16, 1731, 3778, 389, 892, 13, 1071, 203, 202, 95, 203, 202, 202, 6528, 12, 1793, 3062, 63, 67, 350, 65, 422, 1234, 18, 15330, 747, ...
pragma solidity ^0.4.24; contract ETHStatement { /* --- EVENTS --- */ event InvestorStatement(address indexed investor, uint amount, string email); /* --- FIELDS --- */ struct Investor { uint amount; string email; } mapping (address => Investor) public inves...
--- EVENTS --- */ --- FIELDS --- */
struct Investor { uint amount; string email; } mapping (address => Investor) public investors; uint public totalAmount;
13,072,994
[ 1, 4625, 348, 7953, 560, 30, 225, 9948, 9964, 55, 9948, 1195, 9948, 4011, 11608, 9948, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1958, 5454, 395, 280, 288, 203, 3639, 2254, 3844, 31, 203, 3639, 533, 2699, 31, 203, 565, 289, 203, 203, 565, 2874, 261, 2867, 516, 5454, 395, 280, 13, 1071, 2198, 395, 1383, 31, 203, 565, 2254, 1071, 2078, 6275, 31, 203, ...
./partial_match/1/0x2d1E0ba4D0A068dAd784976d360F7C810909017D/sources/Ryuzaki.sol
* @dev Returns fees and transfer amount in both tokens and reflections. tXXXX stands for tokenXXXX rXXXX stands for reflectionXXXX More details can be found at comments for ValuesForAmount Struct./
function _getValues(uint256 amount, bool deductTransferFee, bool selling) private view returns (ValuesFromAmount memory) { ValuesFromAmount memory values; values.amount = amount; _getTValues(values, deductTransferFee, selling); _getRValues(values, deductTransferFee); return v...
9,178,569
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 1656, 281, 471, 7412, 3844, 316, 3937, 2430, 471, 5463, 87, 18, 268, 24303, 384, 5708, 364, 1147, 24303, 436, 24303, 384, 5708, 364, 5463, 24303, 16053, 3189, 848, 506, 1392, 622, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 588, 1972, 12, 11890, 5034, 3844, 16, 1426, 11140, 853, 5912, 14667, 16, 1426, 357, 2456, 13, 3238, 1476, 1135, 261, 1972, 1265, 6275, 3778, 13, 288, 203, 3639, 6876, 1265, 6275, 3778, 924, 31, 203, 3639, 924, 18, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/String...
* @dev Set the root of the Merkle Tree for the whitelist/
function setMerkleRoot(bytes32 root) external onlyOwner { merkleRoot = root; }
8,338
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1000, 326, 1365, 434, 326, 31827, 4902, 364, 326, 10734, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 8478, 15609, 2375, 12, 3890, 1578, 1365, 13, 3903, 1338, 5541, 288, 203, 3639, 30235, 2375, 273, 1365, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.18; contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) public constant returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } contract ERC20 is ERC20Ba...
* calculates last sale date/
function lastSaleDate() public constant returns(uint) { return start + period * 1 days; }
5,930,136
[ 1, 4625, 348, 7953, 560, 30, 380, 17264, 1142, 272, 5349, 1509, 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, 225, 445, 1142, 30746, 1626, 1435, 1071, 5381, 1135, 12, 11890, 13, 288, 203, 565, 327, 787, 397, 3879, 380, 404, 4681, 31, 203, 225, 289, 21281, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// File: contracts/FrozenToken.sol /** * Source Code first verified at https://etherscan.io on Wednesday, October 11, 2017 (UTC) */ //! FrozenToken ECR20-compliant token contract //! By Parity Technologies, 2017. //! Released under the Apache Licence 2. pragma solidity ^0.5.0; // Owned contract. contract Owned { ...
@dev Requires that the function with this modifier is evoked after `endSetUpDelay`.
modifier after_set_up_delay { require( block.number >= endSetUpDelay, "This function is only evocable after the setUpDelay has elapsed." ); _; }
15,839,293
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 16412, 716, 326, 445, 598, 333, 9606, 353, 2113, 14276, 1839, 1375, 409, 694, 1211, 6763, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1839, 67, 542, 67, 416, 67, 10790, 288, 203, 3639, 2583, 12, 203, 5411, 1203, 18, 2696, 1545, 679, 694, 1211, 6763, 16, 203, 5411, 315, 2503, 445, 353, 1338, 2113, 504, 429, 1839, 326, 24292, 6763, 711, 9613, 1199, 2...
./full_match/1/0x4EB545174DBCe08077fB4689CA7a6eC46F6B5E10/sources/FavorCoinCrowdsale.sol
* Event for token purchase logging @param purchaser who paid for the tokens @param beneficiary who got the tokens @param value weis paid for purchase @param amount amount of tokens purchased/* @dev Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance./* @p...
constructor(uint256 _rate, address payable _wallet, address _token) public { require(_rate > 0); require(_wallet != address(0)); require(_token != address(0)); rate = _rate; wallet = _wallet; token = ERC20(_token); }
9,654,314
[ 1, 4625, 348, 7953, 560, 30, 380, 2587, 364, 1147, 23701, 2907, 632, 891, 5405, 343, 14558, 10354, 30591, 364, 326, 2430, 632, 891, 27641, 74, 14463, 814, 10354, 2363, 326, 2430, 632, 891, 460, 732, 291, 30591, 364, 23701, 632, 891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 3885, 12, 11890, 5034, 389, 5141, 16, 1758, 8843, 429, 225, 389, 19177, 16, 1758, 389, 2316, 13, 1071, 288, 203, 565, 2583, 24899, 5141, 405, 374, 1769, 203, 565, 2583, 24899, 19177, 480, 1758, 12, 20, 10019, 203, 565, 2583,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // >>>>>>>>>> !IMPORTANT! <<<<<<<<<<< // this is an invalid token sale contract which requrie more gas with each allocation, why though ? // i managed to fix the above by performing checks on mapping instead of array import "@openzeppelin/contracts/access/Ownabl...
* @dev Initializes sale contract with minimum and maximum amount that can be allocated and total allocation limit. @param _initialAllowedParticipants List of addresses allowed to participate. @param _initialIsEveryoneAllowedToParticipateAfterDelayValue Decides if everyone should be allowed to participate after delay./
{ _closingAllocationsRemainder = 0; _minimumAllocation = 0; _maximumAllocation = 0; _totalAllocationsLimit = 0; _totalAllocated = 0; _saleStart = 0; _isEveryoneAllowedToParticipateAfterDelay = _initialIsEveryoneAllowedToParticipateAfterDelayValue; _wasClosed = false; _wasStarted = ...
983,030
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10188, 3128, 272, 5349, 6835, 598, 5224, 471, 4207, 3844, 716, 848, 506, 11977, 471, 2078, 13481, 1800, 18, 632, 891, 389, 6769, 5042, 1988, 27620, 987, 434, 6138, 2935, 358, 30891, 340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 288, 203, 565, 389, 19506, 8763, 1012, 1933, 25407, 273, 374, 31, 203, 565, 389, 15903, 17353, 273, 374, 31, 203, 565, 389, 15724, 17353, 273, 374, 31, 203, 565, 389, 4963, 8763, 1012, 3039, 273, 374, 31, 203, 565, 389, 49...
pragma solidity ^0.5.16; interface IERC20 { function TOTALSUPPLY668() external view returns (uint256); //inject NONSTANDARD NAMING function BALANCEOF856(address account) externa...
inject NONSTANDARD NAMING
function WITHDRAWALL686() public {
12,699,435
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 13601, 40, 10821, 4685, 26, 5292, 1435, 1071, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/314/0x7b7f1f85F599b63432F5D782041c25Dad354f999/sources/node_modules/@openzeppelin/contracts/governance/TimelockController.sol
* @dev The predecessor to an operation not yet done./
error TimelockUnexecutedPredecessor(bytes32 predecessorId);
8,083,620
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1021, 24282, 358, 392, 1674, 486, 4671, 2731, 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, ...
[ 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, 555, 12652, 292, 975, 984, 4177, 4817, 1386, 14258, 280, 12, 3890, 1578, 24282, 548, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
//SPDX-License-Identifier: MIT pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; // import "https://github.com/Scott6768/LottoescapeV2/blob/main/LottoescapeV2"; import "./LSC.sol"; //import ""; contract LottoGame { uint perTicketPrice; using SafeMath for uint256; address[5] w...
what percent of the pot is paid out
uint256 potPayoutPercent;
7,282,712
[ 1, 4625, 348, 7953, 560, 30, 225, 4121, 5551, 434, 326, 5974, 353, 30591, 596, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 5974, 52, 2012, 8410, 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, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.12; import './library/SafeMath.sol'; import './interfaces/IBEP20.sol'; import './interfaces/ITuringTimeLock.sol'; contract ISwapTrade { uint256 public TRADE_FEE; //0.2% 2/1000 } contract TuringswapFeeMachine { IBEP20 public TUR; // TUR using Safe...
send back the trade fee after cut 20% (trade fee for LP = 0.24%)
token.transfer(msg.sender, token.balanceOf(address(this)));
2,519,963
[ 1, 4625, 348, 7953, 560, 30, 1366, 1473, 326, 18542, 14036, 1839, 6391, 4200, 9, 261, 20077, 14036, 364, 511, 52, 273, 374, 18, 3247, 9, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 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, 3639, 1147, 18, 13866, 12, 3576, 18, 15330, 16, 1147, 18, 12296, 951, 12, 2867, 12, 2211, 3719, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/* Copyright 2019,2020 StarkWare Industries Ltd. Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.starkware.co/open-source-license/ Unless required by applicable law or agre...
This function stores the fact hash in the mapping. Mark first time off.
function registerFact( bytes32 factHash ) internal { verifiedFact[factHash] = true; if (!anyFactRegistered) { anyFactRegistered = true; } }
1,790,889
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 445, 9064, 326, 5410, 1651, 316, 326, 2874, 18, 6622, 1122, 813, 3397, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1744, 9766, 12, 203, 3639, 1731, 1578, 5410, 2310, 203, 3639, 262, 203, 3639, 2713, 203, 565, 288, 203, 3639, 13808, 9766, 63, 3493, 2310, 65, 273, 638, 31, 203, 203, 3639, 309, 16051, 2273, 9766, 10868, 13, 288, 203, ...
./full_match/5/0x73150ee035253A322bB64d2Ab0194C872F719D3A/sources/contract-b378698b2c.sol
The following functions are overrides required by Solidity.
contract Tallytest1 is Governor, GovernorSettings, GovernorCountingSimple, GovernorVotes, GovernorVotesQuorumFraction { constructor(IVotes _token) Governor("Tallytest1") GovernorSettings(50 /* 50 blocks */, 273 /* 1 hour */, 250000e9) GovernorVotes(_token) GovernorVotesQuorumFraction...
1,869,575
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 3751, 4186, 854, 9515, 1931, 635, 348, 7953, 560, 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...
[ 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, 16351, 399, 1230, 3813, 21, 353, 611, 1643, 29561, 16, 611, 1643, 29561, 2628, 16, 611, 1643, 29561, 1380, 310, 5784, 16, 611, 1643, 29561, 29637, 16, 611, 1643, 29561, 29637, 31488, 13724, 288, 203, 565, 3885, 12, 8188, 6366, 389,...
./full_match/100/0xAF62584ce1896Aa7F899d1434C2e8Da149f01Aa3/sources/Users/toni/gits/blackhole/truffle-core/contracts/erc721/tokens/nf-token-metadata-enumerable.sol
* @dev Returns whether `tokenId` exists. Tokens start existing when they are minted (`_mint`), and stop existing when they are burned (`_burn`)./
function exists(uint256 tokenId) public view returns (bool) { return idToOwner[tokenId] != address(0); }
14,279,698
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 2856, 1375, 2316, 548, 68, 1704, 18, 13899, 787, 2062, 1347, 2898, 854, 312, 474, 329, 21863, 67, 81, 474, 68, 3631, 471, 2132, 2062, 1347, 2898, 854, 18305, 329, 21863, 67, 70, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1704, 12, 11890, 5034, 1147, 548, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 1377, 327, 612, 774, 5541, 63, 2316, 548, 65, 480, 1758, 12, 20, 1769, 203, 225, 289, 203, 203, 203, 2, -100, -100, -100, -100, -100, ...
./full_match/11155111/0xfCb68D95e336545064A83CF8d742E30BAf4df593/sources/contracts/StakeContract.sol
Check if the user exists Return all the tokens in the stakedTokens array for this user that are not -1
function getStakedTokens(address _user) public view returns (StakedToken[] memory) { if (stakers[_user].stakedAmount > 0) { StakedToken[] memory _stakedTokens = new StakedToken[](stakers[_user].stakedAmount); uint256 _index = 0; for (uint256 j = 0; j < stakers[_user].sta...
3,789,788
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 309, 326, 729, 1704, 2000, 777, 326, 2430, 316, 326, 384, 9477, 5157, 526, 364, 333, 729, 716, 854, 486, 300, 21, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 21491, 9477, 5157, 12, 2867, 389, 1355, 13, 1071, 1476, 1135, 261, 510, 9477, 1345, 8526, 3778, 13, 288, 203, 3639, 309, 261, 334, 581, 414, 63, 67, 1355, 8009, 334, 9477, 6275, 405, 374, 13, 288, 203, 5411, 934, 9477...
./full_match/80001/0x7aafF111c6F9acc4a7f0BA45E735d2ACbe980579/sources/contracts/Villa.sol
init flag for setting immediate vault, needed for CREATE2 support flag to enable/disable swapout vs vault.burn so multiple events are triggered configurable delay for timelock functions set of minters, can be this bridge or other bridges primary controller of the token contract
contract Villa is IVilla { using SafeERC20 for IERC20; string public name; string public symbol; uint8 public immutable override decimals; address public immutable underlying; bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce...
9,445,912
[ 1, 4625, 348, 7953, 560, 30, 225, 1208, 2982, 364, 3637, 14483, 9229, 16, 3577, 364, 13278, 22, 2865, 2982, 358, 4237, 19, 8394, 7720, 659, 6195, 9229, 18, 70, 321, 1427, 3229, 2641, 854, 10861, 14593, 4624, 364, 1658, 292, 975, 418...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 776, 10745, 353, 21602, 10745, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, 533, 1071, 508, 31, 203, 565, 533, 1071, 3273, 31, 203, 565, 2254, 28, 225, 1071, 11732, 3849, 15105, 31, 2...
/** *Submitted for verification at Etherscan.io on 2019-09-13 */ pragma solidity ^0.5.0; /** * @title Tellor Transfer * @dev Contais the methods related to transfers and ERC20. Tellor.sol and TellorGetters.sol * reference this library for function's logic. */ library TellorTransfer { using SafeMath for uint256; ...
* @dev Helps initialize a dispute by assigning it a disputeId when a miner returns a false on the validate array(in Tellor.ProofOfWork) it sends the invalidated value information to POS voting @param _requestId being disputed @param _timestamp being disputed @param _minerIndex the index of the miner that submitted the ...
function beginDispute(uint _requestId, uint _timestamp,uint _minerIndex) external { tellor.beginDispute(_requestId,_timestamp,_minerIndex); } }
15,869,232
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 670, 292, 1121, 4046, 279, 1015, 2507, 635, 28639, 518, 279, 1015, 2507, 548, 1347, 279, 1131, 264, 1135, 279, 629, 603, 326, 1954, 526, 12, 267, 29860, 280, 18, 20439, 19107, 13, 518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2376, 1669, 2507, 12, 11890, 389, 2293, 548, 16, 2254, 389, 5508, 16, 11890, 389, 1154, 264, 1016, 13, 3903, 288, 203, 3639, 9276, 280, 18, 10086, 1669, 2507, 24899, 2293, 548, 16, 67, 5508, 16, 67, 1154, 264, 1016, 1...
./full_match/5/0x3970800843Cd84dAA6CA114541A3d0Cba3b5b793/sources/contracts/Lottery.sol
FUNCIONES GET:Balance actual del contrato:
function getContractBalance() public view returns(uint){ return address(this).balance; }
1,959,001
[ 1, 4625, 348, 7953, 560, 30, 478, 21163, 1146, 3991, 4978, 30, 13937, 3214, 1464, 16252, 31093, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 336, 8924, 13937, 1435, 1071, 1476, 1135, 12, 11890, 15329, 203, 565, 327, 1758, 12, 2211, 2934, 12296, 31, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/42/0xF3fB24d7b8Df1C2cc23C2245669DACB60629292B/sources/operator.sol
* @notice Initialzie vault contract. @param authenticator_ The address of authentication controller that can determine who is able to call admin interfaces./
function initialize(address authenticator_, bytes32 adminRole) external initializer { require(authenticator_ != address(0), "authenticator is the zero address"); authenticator = IAuthenticator(authenticator_); OPERATOR_ADMIN_ROLE = adminRole; }
16,249,136
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 225, 10188, 94, 1385, 9229, 6835, 18, 632, 891, 282, 17595, 67, 225, 1021, 1758, 434, 5107, 2596, 716, 848, 4199, 10354, 353, 7752, 358, 745, 12900, 3981, 7349, 18, 19, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4046, 12, 2867, 17595, 67, 16, 1731, 1578, 3981, 2996, 13, 3903, 12562, 288, 203, 3639, 2583, 12, 1944, 10149, 67, 480, 1758, 12, 20, 3631, 315, 1944, 10149, 353, 326, 3634, 1758, 8863, 203, 3639, 17595, 273, 467, 18977...
./partial_match/4/0x4eC376c3De953295b23971918Ad7F5745092cBd7/sources/GenesisPool.sol
初始化赋值,将erc1155的卡牌代币和ERC20的代币合约地址传入
constructor(ERC1155Tradable _erc1155ContractAddress, IERC20 _erc20ConctractAddress) public TopTokenWrapper(_erc20ConctractAddress) { erc1155ContractAddress = _erc1155ContractAddress; }
8,515,266
[ 1, 4625, 348, 7953, 560, 30, 225, 166, 235, 256, 166, 105, 238, 166, 239, 249, 169, 118, 238, 166, 227, 125, 176, 125, 239, 166, 113, 233, 12610, 2499, 2539, 168, 253, 231, 166, 240, 99, 168, 236, 239, 165, 124, 101, 166, 121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12316, 12, 654, 39, 2499, 2539, 1609, 17394, 389, 12610, 2499, 2539, 8924, 1887, 16, 467, 654, 39, 3462, 389, 12610, 3462, 442, 299, 14266, 1887, 13, 1071, 7202, 1345, 3611, 24899, 12610, 3462, 442, 299, 14266, 1887, 13, 288, ...
pragma solidity ^0.4.24; // File: @0xcert/ethereum-erc721/contracts/tokens/ERC721Enumerable.sol /** * @dev Optional enumeration extension for ERC-721 non-fungible token standard. * See https://goo.gl/pc9yoS. */ interface ERC721Enumerable { /** * @dev Returns a count of valid NFTs tracked by this contract, wh...
* @dev Xcert implementation where tokens transfer can be paused/unpaused./
contract PausableXcert is Xcert { event IsPaused(bool _isPaused); bool public isPaused; constructor() public { } uint256 _tokenId ) modifier canTransfer( { address owner = idToOwner[_tokenId]; require(!isPaused && ( owner == msg.sender || getApproved(_tokenId) == msg.sen...
461,804
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1139, 7593, 4471, 1625, 2430, 7412, 848, 506, 17781, 19, 318, 8774, 3668, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 21800, 16665, 60, 7593, 353, 1139, 7593, 288, 203, 203, 225, 871, 2585, 28590, 12, 6430, 389, 291, 28590, 1769, 203, 203, 225, 1426, 1071, 353, 28590, 31, 203, 203, 225, 3885, 1435, 203, 565, 1071, 203, 203, 225, 288, 203,...
./partial_match/1/0xfdB5Dee856A2709F9D356ABb6A38c391c6eBCe6C/sources/CountdownGriefingEscrow_Factory.sol
restrict state machine declare storage variables in memory Add the stake amount If payment is deposited, finalize the escrow
function _depositStake() private { require(isOpen() || onlyPaymentDeposited(), "can only deposit stake once"); address seller = _data.seller; uint256 stakeAmount = uint256(_data.stakeAmount); if (stakeAmount != uint256(0)) { Staking._addStake(_data.tokenID, seller, msg....
4,386,930
[ 1, 4625, 348, 7953, 560, 30, 225, 13108, 919, 5228, 14196, 2502, 3152, 316, 3778, 1436, 326, 384, 911, 3844, 971, 5184, 353, 443, 1724, 329, 16, 12409, 326, 2904, 492, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 323, 1724, 510, 911, 1435, 3238, 288, 203, 3639, 2583, 12, 291, 3678, 1435, 747, 1338, 6032, 758, 1724, 329, 9334, 315, 4169, 1338, 443, 1724, 384, 911, 3647, 8863, 203, 203, 3639, 1758, 29804, 273, 389, 892, 18, ...
pragma solidity ^0.4.18; /** * Interface for required functionality in the ERC721 standard * for non-fungible tokens. * * Author: Nadav Hollander (nadav at dharma.io) */ contract ERC721 { // Function function totalSupply() public view returns (uint256 _totalSupply); function balanceOf(add...
@title Auction Core @dev Contains models, variables, and internal methods for the auction. Represents an auction on an NFT
contract ClockAuctionBase { struct Auction { address nftAddress; address seller; uint128 startingPrice; uint128 endingPrice; uint64 duration; uint64 startedAt; } event AuctionCreated(address nftAddress, uint256 tokenId, uint256 startingPrice, uint256 endin...
12,657,929
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 432, 4062, 4586, 632, 5206, 8398, 3679, 16, 3152, 16, 471, 2713, 2590, 364, 326, 279, 4062, 18, 868, 6706, 87, 392, 279, 4062, 603, 392, 423, 4464, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 18051, 37, 4062, 2171, 288, 203, 203, 565, 1958, 432, 4062, 288, 203, 3639, 1758, 290, 1222, 1887, 31, 203, 3639, 1758, 29804, 31, 203, 3639, 2254, 10392, 5023, 5147, 31, 203, 3639, 2254, 10392, 11463, 5147, 31, 203, 3639, ...
// File: @openzeppelin/contracts/utils/Context.sol pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a dir...
* @dev Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restor...
library SafeMath { } function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a ...
327,692
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4266, 10422, 1879, 348, 7953, 560, 1807, 30828, 5295, 598, 3096, 9391, 4271, 18, 27443, 5295, 316, 348, 7953, 560, 2193, 603, 9391, 18, 1220, 848, 17997, 563, 316, 22398, 16, 2724, 5402, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 14060, 10477, 288, 203, 97, 203, 203, 225, 445, 775, 986, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 6430, 16, 2254, 5034, 13, 288, 203, 565, 2254, 5034, 276, 273, 279, 397, 324, 31, 203, 565,...
//Address: 0x45565640dfdb48c0c7d26cf2012a2bce6254e8e6 //Contract name: SwapContract //Balance: 0 Ether //Verification Date: 5/11/2018 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^0.4.23; /* ERC20 Standard Token interface */ contract IERC20Token { // these functions aren't abstract since the co...
/ these functions aren't abstract since the compiler emits automatically generated getter functions as external
contract IERC20Token { function transfer(address _to, uint256 _value) public returns (bool success); function transferFrom(address _from, address _to, uint256 _value) public returns (bool success); function approve(address _spender, uint256 _value) public returns (bool success); ERC20 Standard Token ...
14,059,858
[ 1, 4625, 348, 7953, 560, 30, 342, 4259, 4186, 11526, 1404, 8770, 3241, 326, 5274, 24169, 6635, 4374, 7060, 4186, 487, 3903, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 467, 654, 39, 3462, 1345, 288, 203, 203, 565, 445, 7412, 12, 2867, 389, 869, 16, 2254, 5034, 389, 1132, 13, 1071, 1135, 261, 6430, 2216, 1769, 203, 565, 445, 7412, 1265, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254,...
pragma solidity^0.5.0; /// @title UniCoin smart contract /// @author Chris Maree, Helda Mandlate, Luke Meiklejohn /// @dev import contracts from openzeppelin related to ownable and ERC20, ERC721 tokens import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "openzeppelin-solidity/contracts/token/ERC20...
/ @dev owner of the bid
uint256 owner_Id;
7,317,773
[ 1, 4625, 348, 7953, 560, 30, 342, 632, 5206, 3410, 434, 326, 9949, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 3410, 67, 548, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "../interfaces/IMosaicVaultConfig.sol"; import "../interfaces/IMosaicHolding.sol"; import "../interfaces/ITokenFactory.sol"; import "../libraries/FeeOperations.sol"; import "./VaultConfigBase.sol";...
@notice Updates a whitelisted token limit. @param _tokenAddress SC address of the ERC20 token to add to whitelisted tokens @param _minTransferAmount min amount of tokens that can be transfered
function updateWhitelistedTokenMinLimit(address _tokenAddress, uint256 _minTransferAmount) external onlyOwner validAddress(_tokenAddress) { require( whitelistedTokens[_tokenAddress].underlyingIOUAddress != address(0), "ERR: NOT WHITELISTED" ); ...
11,780,854
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 15419, 279, 26944, 1147, 1800, 18, 632, 891, 389, 2316, 1887, 8795, 1758, 434, 326, 4232, 39, 3462, 1147, 358, 527, 358, 26944, 2430, 632, 891, 389, 1154, 5912, 6275, 1131, 3844, 434, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 18927, 329, 1345, 2930, 3039, 12, 2867, 389, 2316, 1887, 16, 2254, 5034, 389, 1154, 5912, 6275, 13, 203, 3639, 3903, 203, 3639, 1338, 5541, 203, 3639, 923, 1887, 24899, 2316, 1887, 13, 203, 565, 288, 203, 3639, 25...
pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws wh...
lpFeeBp is basis point of fee collected by LP
uint256 public lpFeeBp = 10;
6,648,653
[ 1, 4625, 348, 7953, 560, 30, 225, 12423, 14667, 38, 84, 353, 10853, 1634, 434, 14036, 12230, 635, 511, 52, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 12423, 14667, 38, 84, 273, 1728, 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, -...
./partial_match/1/0x82895fE2945A8B19c5E511E5AA90Da3Aa27331eA/sources/CCPCyborgs.sol
0 = start, 1 = end, 2 = nextToken to try mint
uint[3] bRangeNext;
2,700,648
[ 1, 4625, 348, 7953, 560, 30, 374, 273, 787, 16, 404, 273, 679, 16, 576, 273, 9617, 358, 775, 312, 474, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 63, 23, 65, 324, 2655, 2134, 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...
./full_match/44787/0x242d75C9B2d79a7B5B70Ea009cDed173D38cE836/sources/contracts/treasury/TreasuryImplementation.sol
todo: remove this modifier after deployment and testing* @notice Enforces sender to DAO or impactMarketCouncil/
modifier onlyOwnerOrImpactMarketCouncil() { require( msg.sender == owner() || msg.sender == address(communityAdmin.impactMarketCouncil()), "Treasury: caller is not the owner nor ImpactMarketCouncil" ); _; }
13,250,471
[ 1, 4625, 348, 7953, 560, 30, 10621, 30, 1206, 333, 9606, 1839, 6314, 471, 7769, 14, 632, 20392, 1374, 1884, 764, 5793, 358, 463, 20463, 578, 15800, 3882, 278, 39, 465, 71, 330, 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, 9606, 1338, 5541, 1162, 22683, 621, 3882, 278, 39, 465, 71, 330, 1435, 288, 203, 3639, 2583, 12, 203, 5411, 1234, 18, 15330, 422, 3410, 1435, 747, 1234, 18, 15330, 422, 1758, 12, 20859, 4446, 18, 14532, 621, 3882, 278, 39, ...
./full_match/5/0xD8C733bC6bd838AF10087457B5261e2b11bA00BA/sources/contracts/StakingContract.sol
Iterate through all user's deposits to claim all rewards Create an array for all msg.senders deposits uint256[] memory depositIds = allUsersDeposits[_user].values(); StakeVault storage staker = checkDeposit[msg.sender][_currentId];
function claimAll(address _user) public virtual { uint256 _currentId = currentId[msg.sender]; uint256 i = _currentId; uint256 limit = nextId[msg.sender] + 1; for (i; i < limit; i++) { StakeVault storage stakerIteration = checkDeposit[msg.sender][i]; uint256 a...
1,931,278
[ 1, 4625, 348, 7953, 560, 30, 225, 11436, 3059, 777, 729, 1807, 443, 917, 1282, 358, 7516, 777, 283, 6397, 1788, 392, 526, 364, 777, 1234, 18, 4661, 414, 443, 917, 1282, 2254, 5034, 8526, 3778, 443, 1724, 2673, 273, 777, 6588, 758, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1595, 12, 2867, 389, 1355, 13, 1071, 5024, 288, 203, 203, 3639, 2254, 5034, 389, 2972, 548, 273, 783, 548, 63, 3576, 18, 15330, 15533, 203, 3639, 2254, 5034, 277, 273, 389, 2972, 548, 31, 203, 3639, 2254, 5034, ...
./partial_match/1/0x91d42CB9883AFCaef2ed79637291dFe30Dea431f/sources/contracts/rewards/PenpieReceiptToken.sol
should only be called by 1. pendleStaking for Pendle Market deposits 2. masterPenpie for other general staking token such as mPendleOFT or PNP-ETH Lp tokens
function mint(address account, uint256 amount) external virtual onlyOwner { _mint(account, amount); }
4,002,295
[ 1, 4625, 348, 7953, 560, 30, 225, 1410, 1338, 506, 2566, 635, 404, 18, 31472, 298, 510, 6159, 364, 453, 409, 298, 6622, 278, 443, 917, 1282, 576, 18, 4171, 24251, 84, 1385, 364, 1308, 7470, 384, 6159, 1147, 4123, 487, 312, 52, 409...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 474, 12, 2867, 2236, 16, 2254, 5034, 3844, 13, 3903, 5024, 1338, 5541, 288, 203, 3639, 389, 81, 474, 12, 4631, 16, 3844, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
//! The KeyServerSet contract. Owned version with migration support. //! //! Copyright 2017 Svyatoslav Nikolsky, Parity Technologies Ltd. //! //! Licensed under the Apache License, Version 2.0 (the "License"); //! you may not use this file except in compliance with the License. //! You may obtain a copy of the License ...
...and copy migration set to current set
copySet(currentSet, migrationSet);
5,401,818
[ 1, 4625, 348, 7953, 560, 30, 225, 1372, 464, 1610, 6333, 444, 358, 783, 444, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3530, 694, 12, 2972, 694, 16, 6333, 694, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.4.21; /** @title A dual control contract. * * @notice A general purpose contract that implements dual control over * co-operating contracts through a callback mechanism. * * @dev This contract implements dual control through a 2-of-N * threshold multi-signature scheme. The con...
CONSTRUCTOR check for at least two `_signers` validate time lock params explicitly initialize `requestCount` to zero turn the array into a set no zero addresses or duplicates
function Custodian( address[] _signers, uint256 _defaultTimeLock, uint256 _extendedTimeLock, address _primary ) public { require(_signers.length >= 2); require(_defaultTimeLock <= _extendedTimeLock); defaultTimeLock = _defaultTimeLock; ...
5,464,777
[ 1, 4625, 348, 7953, 560, 30, 225, 3492, 13915, 916, 866, 364, 622, 4520, 2795, 1375, 67, 2977, 414, 68, 1954, 813, 2176, 859, 8122, 4046, 1375, 2293, 1380, 68, 358, 3634, 7005, 326, 526, 1368, 279, 444, 1158, 3634, 6138, 578, 11211,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 385, 641, 369, 2779, 12, 203, 3639, 1758, 8526, 389, 2977, 414, 16, 203, 3639, 2254, 5034, 389, 1886, 950, 2531, 16, 203, 3639, 2254, 5034, 389, 14948, 950, 2531, 16, 203, 3639, 1758, 389, 8258, 203, 565, 262, 203, 36...
pragma solidity ^0.4.24; // File: openzeppelin-solidity/contracts/ECRecovery.sol /** * @title Eliptic curve signature operations * * @dev Based on https://gist.github.com/axic/5b33912c6f61ae6fd96d6c4a47afde6d * * TODO Remove this library once solidity supports passing a signature to ecrecover. * See https://git...
Pausable is Ownable
contract Airdrop is Pausable { using SafeMath for uint; using ECRecovery for bytes32; event Distribution(address indexed to, uint256 amount); mapping(bytes32 => address) public users; mapping(bytes32 => uint) public unclaimedRewards; address public signer; KMHTokenInterface public token; NameRegistr...
13,383,883
[ 1, 4625, 348, 7953, 560, 30, 225, 21800, 16665, 353, 14223, 6914, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 432, 6909, 1764, 353, 21800, 16665, 288, 203, 225, 1450, 14060, 10477, 364, 2254, 31, 203, 225, 1450, 7773, 11548, 364, 1731, 1578, 31, 203, 203, 225, 871, 17547, 12, 2867, 8808, 358, 16, 2254, 5034, 3844, 1769, 203, 203, ...
./full_match/1/0x08b16410c53FA67b0CC2cA58bd0F6409f3349f7a/sources/Users/dperk6/eth/swap-contract-final/contracts/Multiswap.sol
Ownership change pending WETH Address Uniswap Router for swaps Referral data Data struct
contract Multiswap { using SafeMath for uint256; using SafeERC20 for IERC20; address private pendingOwner; address private immutable WETH; IUniswapV2Router02 private immutable uniswapRouter; mapping (address => bool) private referrers; mapping (address => uint256) private referralFees; ...
2,910,309
[ 1, 4625, 348, 7953, 560, 30, 225, 14223, 9646, 5310, 2549, 4634, 678, 1584, 44, 5267, 1351, 291, 91, 438, 9703, 364, 1352, 6679, 3941, 29084, 501, 1910, 1958, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7778, 291, 91, 438, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 1758, 3238, 4634, 5541, 31, 203, 203, 565, 1758, 3238, 11732, ...
// SPDX-License-Identifier: MIT // File: contracts/Counters.sol pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or ...
address of the payment contract (for payment splitter) For RandomlyAssigned: Max supply is 1000; id start from 1 (instead of 0)
{ using SafeMath for uint256; string public baseTokenURI = ""; string public baseExtension = ".json"; string public notRevealedURI = ""; uint256 MAX_SUPPLY = 1000; uint256 public totalMint = 0; bool public revealed = false; bool public publicSale = false; address payable public p...
12,059,442
[ 1, 4625, 348, 7953, 560, 30, 225, 1758, 434, 326, 5184, 6835, 261, 1884, 5184, 21553, 13, 2457, 8072, 715, 20363, 30, 4238, 14467, 353, 4336, 31, 612, 787, 628, 404, 261, 8591, 684, 434, 374, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 533, 1071, 1026, 1345, 3098, 273, 1408, 31, 203, 565, 533, 1071, 1026, 3625, 273, 3552, 1977, 14432, 203, 565, 533, 1071, 486, 426, 537, 18931, 3098, 273, 1408...
pragma solidity ^0.4.21; pragma experimental ABIEncoderV2; // Interface that can be implemented to receive delegates when a client is authorized or deauthorized. interface SmartBankClientInterface{ function onAuthorized(address client) external; function onDeauthorized(address client) external; } // Inerface that c...
Request a transfer of funds.
function requestTransfer(string iban, uint amount, string description, SmartBankTransferInterface delegate) clientOnly external{ require(delegate != SmartBankTransferInterface(0)); emit OnTransferRequested(msg.sender, iban, amount, description, delegate); }
12,767,521
[ 1, 4625, 348, 7953, 560, 30, 225, 1567, 279, 7412, 434, 284, 19156, 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, 202, 915, 590, 5912, 12, 1080, 9834, 304, 16, 2254, 3844, 16, 533, 2477, 16, 19656, 16040, 5912, 1358, 7152, 13, 1004, 3386, 3903, 95, 203, 202, 202, 6528, 12, 22216, 480, 19656, 16040, 5912, 1358, 12, 20, 10019, 203, 1082, 203, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; /* ========== External Interfaces ========== */ import "@indexed-finance/uniswap-v2-oracle/contracts/interfaces/IIndexedUniswapV2Oracle.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /* ========== Internal In...
* @dev Adds a new token to a category. @param categoryID Category identifier. @param token Token to add to the category./ Decrement the timestamp for the last category update to ensure that the new token is sorted before the category's top tokens can be queried.
function addToken(uint256 categoryID, address token) external onlyOwner validCategory(categoryID) { require( _categoryTokens[categoryID].length < MAX_CATEGORY_TOKENS, "ERR_MAX_CATEGORY_TOKENS" ); _addToken(categoryID, token); oracle.updatePrice(token); _lastCategoryUpdate[categoryID] -...
13,013,197
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 15605, 279, 394, 1147, 358, 279, 3150, 18, 632, 891, 3150, 734, 9856, 2756, 18, 632, 891, 1147, 3155, 358, 527, 358, 326, 3150, 18, 19, 31073, 475, 326, 2858, 364, 326, 1142, 3150, 1089...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 225, 445, 527, 1345, 12, 11890, 5034, 3150, 734, 16, 1758, 1147, 13, 3903, 1338, 5541, 923, 4457, 12, 4743, 734, 13, 288, 203, 565, 2583, 12, 203, 1377, 389, 4743, 5157, 63, 4743, 734, 8009, 2469, 411, 4552, 67, 24847, 67, 8412...
./partial_match/1/0x806Ca46e7df33F6C6f4e28839162F8F85755116A/sources/NFTAuction.sol
The default value for the NFT recipient is the highest bidder/
{ address nftRecipient = nftContractAuctions[_nftContractAddress][ _tokenId ].nftRecipient; function _getNftRecipient(address _nftContractAddress, uint256 _tokenId) internal view returns (address) if (nftRecipient == address(0)) { return ...
3,894,289
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 805, 460, 364, 326, 423, 4464, 8027, 353, 326, 9742, 9949, 765, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 3639, 1758, 290, 1222, 18241, 273, 290, 1222, 8924, 37, 4062, 87, 63, 67, 82, 1222, 8924, 1887, 6362, 203, 5411, 389, 2316, 548, 203, 3639, 308, 18, 82, 1222, 18241, 31, 203, 203, 565, 445, 389, 588, 50, 1222, ...
pragma solidity ^0.4.24; import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "contracts/token/ContractReceiver.sol"; import "contracts/utils/ValidValue.sol"; import "contr...
현재 paybackpool 의 생성 시간이 createPoolInterval만큼 지났으면 새로 생성
function addPayback(address _from, uint256 _value, address _token, bytes _data) private { require(RoleManager(council.getRoleManager()).isAccess(_from, ROLE_NAME)); ERC20 token = ERC20(council.getToken()); require(address(token) == _token); if (paybackPool.length == 0 || TimeLib.cu...
5,366,875
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 174, 251, 231, 173, 257, 110, 8843, 823, 6011, 225, 173, 256, 251, 225, 173, 230, 256, 173, 231, 114, 225, 173, 238, 255, 171, 113, 231, 173, 256, 117, 752, 2864, 4006, 172, 105, 239, 174, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 9148, 823, 12, 2867, 389, 2080, 16, 2254, 5034, 389, 1132, 16, 1758, 389, 2316, 16, 1731, 389, 892, 13, 3238, 288, 203, 3639, 2583, 12, 2996, 1318, 12, 71, 465, 71, 330, 18, 588, 2996, 1318, 1435, 2934, 291, 18...
./partial_match/1/0x53BbAB02c0fb63A422F21204E6d99B9d092B5fC1/sources/contracts/Staking.sol
* @dev Withdraw tokens with reward./
function withdraw(uint256 _amount) external { PoolInfo storage pool = poolInfo; UserInfo storage user = userInfo[msg.sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(); uint256 pending = ((user.amount * pool.accTokensPerShare) / 1e12) - user.rewardDe...
4,224,799
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3423, 9446, 2430, 598, 19890, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 12, 11890, 5034, 389, 8949, 13, 3903, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 31, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 3576, 18, 15330, 15533, 203, 3639, 2583, 12, 1355, 18, 8949, 1545,...
./full_match/1/0x5E57C528EF9126200D76620e7b843600635E74Ca/sources/sir-token.sol
* @dev cheks if an address is locked and unlocks if time has expired @param address_ address @return bool @notice Emits: {LiquidityUnlocked} address, timestamp or {AccountUnlocked} address, timestamp/
function _checkLock( address address_ ) private returns(bool) { if (_locked[address_] == 0) return false; if (_locked[address_] < block.timestamp) { _locked[address_] = 0; if (address_ == A[0xAB]) emit LiquidityUnlocked(address_, block...
17,066,180
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 632, 5206, 462, 3839, 87, 309, 392, 1758, 353, 8586, 471, 7186, 87, 309, 813, 711, 7708, 225, 632, 891, 1758, 67, 1758, 225, 632, 2463, 1426, 225, 632, 20392, 7377, 1282, 30, 1377, 288, 48, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 1893, 2531, 12, 203, 3639, 1758, 1758, 67, 203, 565, 262, 3238, 1135, 12, 6430, 13, 288, 203, 3639, 309, 261, 67, 15091, 63, 2867, 67, 65, 422, 374, 13, 203, 5411, 327, 629, 31, 203, 3639, 309, 261, 67, 15091, ...
./partial_match/1/0x8975037aa4DD4f3A90BaCF12CE11C81BBB34f2a6/sources/DRAGON.sol
Set Taxes here: End Set Taxes
constructor() ERC20(NAME, SYMBOL) { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = IUniswapV2Factory(_uniswapV2Route...
4,111,521
[ 1, 4625, 348, 7953, 560, 30, 225, 1000, 399, 10855, 2674, 30, 4403, 1000, 399, 10855, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 4232, 39, 3462, 12, 1985, 16, 26059, 13, 288, 203, 3639, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 389, 318, 291, 91, 438, 58, 22, 8259, 273, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 12, 20, 92, 27, ...
./full_match/4/0x1E60b39Bc672C482774863149Bc39384F3dDBFA7/sources/contracts/GnosisSafe.sol
@dev Returns the bytes that are hashed to be signed by owners. @param to Destination address. @param value Ether value. @param data Data payload. @param operation Operation type. @param safeTxGas Gas that should be used for the safe transaction. @param baseGas Gas costs for that are independent of the transaction exec...
function encodeTransactionData( address to, uint256 value, bytes calldata data, Enum.Operation operation, uint256 safeTxGas, uint256 baseGas, uint256 gasPrice, address gasToken, address refundReceiver, uint256 _nonce ) public view r...
833,568
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2860, 326, 1731, 716, 854, 14242, 358, 506, 6726, 635, 25937, 18, 632, 891, 358, 10691, 1758, 18, 632, 891, 460, 512, 1136, 460, 18, 632, 891, 501, 1910, 2385, 18, 632, 891, 1674, 4189,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2017, 3342, 751, 12, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 460, 16, 203, 3639, 1731, 745, 892, 501, 16, 203, 3639, 6057, 18, 2988, 1674, 16, 203, 3639, 2254, 5034, 4183, 4188, 27998, 16, 203, 3639, 2254, 50...
./full_match/97/0x70Cf08CBeE91B9ca1760Eb170201f8781a344Fe1/sources/src/land/SinCityLand.sol
* Get Coordinates by Token ID @param id - tokenId of property/
function getCoordinatesFromId(uint256 id) external view returns (uint256, uint256) { require(_exists(id), "NFT does not exist"); uint256 coords = _idToCoords[id]; uint256 x = coords.div(OFFSET); uint256 y = coords.mod(OFFSET); return (x, y); } ...
5,034,113
[ 1, 4625, 348, 7953, 560, 30, 380, 968, 10320, 4174, 635, 3155, 1599, 632, 891, 612, 300, 1147, 548, 434, 1272, 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,...
[ 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, 19850, 27934, 1265, 548, 12, 11890, 5034, 612, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 16, 2254, 5034, 13, 203, 565, 288, 203, 3639, 2583, 24899, 1808, 12, 350, 3631, 315, 50, 4464, 1552...
./partial_match/56/0xF74b0d693Fdf11862Cd24886129b37907844ba11/sources/TreasuryLock2M.sol
@title Treasury Lock 2M Contract @author milkycyborg @dev Contract that locks 1/5 of treasury tokens for 2 month In Code We Trust.
contract TreasuryLock2M is Ownable { using SafeERC20 for IERC20; uint256 public constant lockLength = 60 days; IERC20 public constant lockedToken = IERC20(0x7c67DCCb04b67d4666fd97B2a00bb6D9B8D82E3F); uint256 public lockAmount = 0; uint256 public startTime = 0; bool public locked = false; bool public don...
11,103,136
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 399, 266, 345, 22498, 3488, 576, 49, 13456, 632, 4161, 312, 330, 18465, 2431, 70, 3341, 632, 5206, 13456, 716, 13046, 404, 19, 25, 434, 9787, 345, 22498, 2430, 364, 576, 3138, 657, 3356, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 399, 266, 345, 22498, 2531, 22, 49, 353, 14223, 6914, 288, 203, 225, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 225, 2254, 5034, 1071, 5381, 2176, 1782, 273, 4752, 4681, 31, 203, 225, 467, 654, 39...
./full_match/80001/0x8337bC521242bf811771148876b82ebc8a2f80A4/sources/contracts/Pool.sol
epoch -> deposit slots
mapping(uint32 => Deposit[]) private deposits;
5,568,639
[ 1, 4625, 348, 7953, 560, 30, 225, 7632, 317, 443, 1724, 12169, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 1578, 516, 4019, 538, 305, 63, 5717, 3238, 443, 917, 1282, 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, ...
./full_match/7700/0xE5B9fCd5198C5003Ef989d2b4F8497393984F67e/sources/CantoGoblins.sol
❌ Check that totalSupply is less than MAX_SUPPLY ❌ Check if ether value is correct
function safeMint(address to) public payable { require(totalSupply() < MAX_SUPPLY, "Can't mint anymore tokens."); require(msg.value >= MINT_PRICE, "Not enough ether sent."); uint256 tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(to, tokenId); ...
4,648,552
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 163, 256, 239, 2073, 716, 2078, 3088, 1283, 353, 5242, 2353, 4552, 67, 13272, 23893, 225, 163, 256, 239, 2073, 309, 225, 2437, 460, 353, 3434, 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, 4183, 49, 474, 12, 2867, 358, 13, 1071, 8843, 429, 288, 203, 3639, 2583, 12, 4963, 3088, 1283, 1435, 411, 4552, 67, 13272, 23893, 16, 315, 2568, 1404, 312, 474, 16828, 2430, 1199, 1769, 203, 203, 3639, 2583, 12, 3576, ...
pragma solidity ^0.4.16; // METADOLLAR (DOL) VAULT - COPYRIGHT 2018 METADOLLAR.ORG // ERC Token Standard #20 Interface // https://github.com/ethereum/EIPs/issues/20 contract OraclizeI { address public cbAddress; function query(uint _timestamp, string _datasource, string _arg) external payable returns (b...
@notice Destroy an amount of DOL @param amount - DOL to destroy
function destroyToken(uint256 amount) isOwner { require(amount > 0); require(tokenBalanceOf[this] >= amount); require(_totalSupply >= amount); require(tokenBalanceOf[this] - amount >= 0); require(_totalSupply - amount >= 0); tokenBalanceOf[this] -= amount; _totalSupply -= amount; allowed[this][owner] =...
1,594,759
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 15701, 392, 3844, 434, 463, 1741, 632, 891, 3844, 300, 463, 1741, 358, 5546, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 202, 915, 5546, 1345, 12, 11890, 5034, 3844, 13, 353, 5541, 288, 203, 202, 202, 6528, 12, 8949, 405, 374, 1769, 203, 202, 202, 6528, 12, 2316, 13937, 951, 63, 2211, 65, 1545, 3844, 1769, 203, 202, 202, 6528, 24899, 4963, 3088, ...
./full_match/97/0xedC72DFBC864C4BEb038e7EE93e3AE8D15B65625/sources/project_/contracts/strf-token-staker/FeeDistributor.sol
TODO: If already added, then emission will be duplicated.
emit RewardTokensAdded(tokens, feeType);
5,040,463
[ 1, 4625, 348, 7953, 560, 30, 225, 2660, 30, 971, 1818, 3096, 16, 1508, 801, 19710, 903, 506, 16975, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3626, 534, 359, 1060, 5157, 8602, 12, 7860, 16, 14036, 559, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// 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"; /** * @dev Converts a `uint256` to its ASCII `string` decimal...
Lock future mints. There is no way to open minting again
function lockMinting() public onlyOwner { isMintingLocked = true; }
10,333,223
[ 1, 4625, 348, 7953, 560, 30, 225, 3488, 3563, 312, 28142, 18, 6149, 353, 1158, 4031, 358, 1696, 312, 474, 310, 3382, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2176, 49, 474, 310, 1435, 1071, 1338, 5541, 288, 203, 3639, 15707, 474, 310, 8966, 273, 638, 31, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
/** *Submitted for verification at Etherscan.io on 2020-09-30 */ pragma solidity ^0.5.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 suc...
* Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for `sender`'s tokens of at least `amount`./
function transferFrom(address sender, address recipient, uint256 amount) govern(sender) public returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); emit Approval (send...
274,794
[ 1, 4625, 348, 7953, 560, 30, 380, 29076, 30, 300, 1375, 15330, 68, 471, 1375, 20367, 68, 2780, 506, 326, 3634, 1758, 18, 300, 1375, 15330, 68, 1297, 1240, 279, 11013, 434, 622, 4520, 1375, 8949, 8338, 300, 326, 4894, 1297, 1240, 169...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 1265, 12, 2867, 5793, 16, 1758, 8027, 16, 2254, 5034, 3844, 13, 314, 1643, 82, 12, 15330, 13, 1071, 1135, 261, 6430, 13, 288, 203, 3639, 389, 13866, 12, 15330, 16, 8027, 16, 3844, 1769, 203, 3639, 389, 12908, 53...
// SPDX-License-Identifier: AGPL-3.0-or-later\ pragma solidity 0.7.5; pragma abicoder v2; import "../libraries/SafeMath.sol"; import "../libraries/SafeERC20.sol"; import "../interfaces/ITreasury.sol"; import "../interfaces/IgEXO.sol"; import "../interfaces/IStaking.sol"; import "../types/Ownable.sol"; interface IClai...
* @notice all claims tracked under gClaimed (and track rebase)/
function treatAllAsStaked() external { require(msg.sender == dao, "Sender is not DAO"); useStatic = false; }
12,958,669
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 777, 11955, 15200, 3613, 314, 9762, 329, 261, 464, 3298, 283, 1969, 13176, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 10116, 1595, 1463, 510, 9477, 1435, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 15229, 16, 315, 12021, 353, 486, 463, 20463, 8863, 203, 3639, 999, 5788, 273, 629, 31, 203, 565, 289, 203, 2, -100, -100, -100, ...
./partial_match/4/0xba7B3d918C893e79A92AfF06A756CF3017234d02/sources/Fortuna.sol
Kullanıcı geçen TC bloğun birincisi anlamına geliyor.birinci %60Kullanıcı geçen TC bloğun ikincisi anlamına geliyor.ikinci %30Kullanıcı geçen TC bloğun üçüncüsü anlamına geliyor.üçüncü yüzde 10 alır!
if(msg.sender == tcdetailz[dailyOLDMix(0)]._address) { require(tcdetailz[dailyOLDMix(0)]._paid == false); uint usershare = onepercentofamount*60; tcdetailz[dailyOLDMix(0)] = TradCompdetails(msg.sender, 0, true); _cleantransfer(address(this), msg.sender, usershar...
8,563,024
[ 1, 4625, 348, 7953, 560, 30, 1475, 29336, 133, 114, 71, 133, 114, 8244, 132, 105, 275, 23718, 324, 383, 133, 258, 318, 324, 481, 9523, 291, 77, 392, 28448, 133, 114, 6582, 314, 292, 77, 93, 280, 18, 70, 481, 267, 8450, 738, 4848...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 540, 309, 12, 3576, 18, 15330, 422, 1715, 8992, 94, 63, 26790, 11846, 21294, 12, 20, 25887, 6315, 2867, 13, 288, 203, 5411, 2583, 12, 12444, 1641, 94, 63, 26790, 11846, 21294, 12, 20, 25887, 6315, 29434, 422, 629, 1769, 203, 5411...
// SPDX-License-Identifier: MIT pragma solidity =0.8.13; import "./ERC777PresetPausablePermissioned.sol"; contract NORI is ERC777PresetPausablePermissioned { function initialize() public virtual initializer { __NORI_init(); _mint( _msgSender(), 500_000_000 * 10**18, // 500,000,000 NORI "",...
* @dev This empty reserved space is put in place to allow future versions to add new variables without shifting down storage in the inheritance chain./ SPDX-License-Identifier: MIT OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)* @dev Contract module which allows children to implement an emergency stop mechanism ...
abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { event Paused(address account); event Unpaused(address account); bool private _paused; function _beforeTokenTransfer( address operator, address from, address to, uint256 amount uint256[41]...
10,199,394
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1220, 1008, 8735, 3476, 353, 1378, 316, 3166, 358, 1699, 3563, 5244, 358, 527, 394, 3152, 2887, 699, 430, 1787, 2588, 2502, 316, 326, 16334, 2687, 18, 19, 11405, 28826, 17, 13211, 17, 300...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 21800, 16665, 10784, 429, 353, 10188, 6934, 16, 1772, 10784, 429, 288, 203, 565, 871, 21800, 3668, 12, 2867, 2236, 1769, 203, 203, 565, 871, 1351, 8774, 3668, 12, 2867, 2236, 1769, 203, 203, 565, 1426, 3238, 389, 8774,...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@powerpool/power-oracle/contracts/interfaces/IPowerPoke.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "./interfaces/WrappedPiErc20Interface.sol"; import "./interfaces/IPoolRestrictions.sol"; im...
_getUnderlyingReserve + getUnderlyingStaked
function getUnderlyingTotal() external view returns (uint256) { return getUnderlyingReserve().add(getUnderlyingStaked()); }
5,362,860
[ 1, 4625, 348, 7953, 560, 30, 225, 389, 588, 14655, 6291, 607, 6527, 397, 10833, 765, 6291, 510, 9477, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 10833, 765, 6291, 5269, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 10833, 765, 6291, 607, 6527, 7675, 1289, 12, 588, 14655, 6291, 510, 9477, 10663, 203, 225, 289, 203, 203, 2, -100, -100, -100, -1...
./partial_match/4/0x17e54471d69e59152e966DE03E29442A34cf19B5/sources/OptionFactory.sol
loses accuracy but otherwise might overflow in redeem()
payoff = payoff.div(SCALE);
8,525,712
[ 1, 4625, 348, 7953, 560, 30, 225, 437, 2420, 15343, 1496, 3541, 4825, 9391, 316, 283, 24903, 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, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 8843, 3674, 273, 8843, 3674, 18, 2892, 12, 19378, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.18; import "./IDiscountPolicy.sol"; import "../common/Manageable.sol"; import "../shop/IWallet.sol"; import "../token/IERC20Token.sol"; /**@dev Discount settings that calcultes discounts for token holders. Applies only if user has at least minTokens amount and there is at least minPoolBalance et...
*@dev Returns discount for specific amount and buyer */
function getDiscount(address buyer, uint256 amount) public constant returns(uint256) { if(token.balanceOf(buyer) >= minTokens) { uint256 poolBalance = pool.getBalance(); if(poolBalance > minPoolBalance) { uint256 discount = poolBalance / discountsInPool; ...
6,449,650
[ 1, 4625, 348, 7953, 560, 30, 380, 36, 5206, 2860, 12137, 364, 2923, 3844, 471, 27037, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 336, 9866, 12, 2867, 27037, 16, 2254, 5034, 3844, 13, 1071, 5381, 1135, 12, 11890, 5034, 13, 288, 203, 3639, 309, 12, 2316, 18, 12296, 951, 12, 70, 16213, 13, 1545, 1131, 5157, 13, 288, 203, 5411, 2254, 5034, 2845, 13...
// Dependency file: @openzeppelin/contracts-ethereum-package/contracts/Initializable.sol // pragma solidity >=0.4.24 <0.7.0; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * WARNING: ...
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension/
interface IERC721Enumerable is IERC721 { function totalSupply() external view returns (uint256); function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); function tokenByIndex(uint256 index) external view returns (uint256); }
1,305,152
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 4232, 39, 17, 27, 5340, 3858, 17, 42, 20651, 1523, 3155, 8263, 16, 3129, 16836, 2710, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 654, 39, 27, 5340, 3572, 25121, 353, 467, 654, 39, 27, 5340, 288, 203, 565, 445, 2078, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 565, 445, 1147, 951, 5541, 21268, 12, 2867, 3410, 16, 2254, 5034, ...
/** The software and documentation available in this repository (the "Software") is protected by copyright law and accessible pursuant to the license set forth below. Copyright © 2019 Staked Securely, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person or organizatio...
@notice Set the id of an Opportunity token for a portfolio @param portfolioId - The id of the portfolio we're configuring @param opportunityId - The id of the opportunity the token represents @param tokenId - The id of the Opportunity token
function setOpportunityToken( bytes32 portfolioId, bytes32 opportunityId, bytes32 tokenId ) external onlyStorageWrappers { _portfolioStorage[portfolioId].opportunityTokens[opportunityId] = tokenId; }
12,906,415
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 225, 1000, 326, 612, 434, 392, 6066, 655, 13352, 1147, 364, 279, 19933, 632, 891, 282, 19933, 548, 300, 1021, 612, 434, 326, 19933, 732, 4565, 642, 4017, 632, 891, 282, 1061, 655, 13352,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 3817, 655, 13352, 1345, 12, 203, 565, 1731, 1578, 19933, 548, 16, 203, 565, 1731, 1578, 1061, 655, 13352, 548, 16, 203, 565, 1731, 1578, 1147, 548, 203, 225, 262, 203, 565, 3903, 203, 565, 1338, 3245, 24114, 203, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./Rena.sol"; import "./interface...
Update reward vairables for all pools. Be careful of gas spending!
function massUpdatePools() public { uint256 length = poolInfo.length; uint allRewards; for (uint256 pid = 0; pid < length; ++pid) { allRewards = allRewards.add(updatePool(pid)); } pendingRewards = pendingRewards.sub(allRewards); }
1,294,474
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 19890, 331, 10658, 20727, 1040, 364, 777, 16000, 18, 4823, 26850, 434, 16189, 272, 9561, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8039, 1891, 16639, 1435, 1071, 288, 203, 3639, 2254, 5034, 769, 273, 2845, 966, 18, 2469, 31, 203, 3639, 2254, 777, 17631, 14727, 31, 203, 3639, 364, 261, 11890, 5034, 4231, 273, 374, 31, 4231, 411, 769, 31, 965, 6610, ...
./full_match/8453/0x14fa9FA3b4Ec9fE639a9E04B5D02ee2Ea65bd3F9/sources/home/user/Documents/git-repos/0x/protocol/contracts/zero-ex/contracts/src/fixins/FixinTokenSpender.sol
@dev Gets the maximum amount of an ERC20 token `token` that can be pulled from `owner` by this address. @param token The token to spend. @param owner The owner of the tokens. @return amount The amount of tokens that can be pulled.
function _getSpendableERC20BalanceOf(IERC20Token token, address owner) internal view returns (uint256) { return LibSafeMathV06.min256(token.allowance(owner, address(this)), token.balanceOf(owner)); }
11,563,145
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 11881, 326, 4207, 3844, 434, 392, 4232, 39, 3462, 1147, 1375, 2316, 68, 716, 848, 506, 1377, 30741, 628, 1375, 8443, 68, 635, 333, 1758, 18, 632, 891, 1147, 1021, 1147, 358, 17571, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 588, 27223, 429, 654, 39, 3462, 13937, 951, 12, 45, 654, 39, 3462, 1345, 1147, 16, 1758, 3410, 13, 2713, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 10560, 9890, 10477, 58, 7677, 18, 1154, 5034, 12, 23...
/** * Note for the truffle testversion: * DragonKingTest inherits from DragonKing and adds one more function for testing the volcano from truffle. * For deployment on ropsten or mainnet, just deploy the DragonKing contract and remove this comment before verifying on * etherscan. * */ /** * Dragonking is a bloc...
* sets the fee to charge on each purchase @param _fee the new fee /
function setFee(uint8 _fee) public onlyOwner { fee = _fee; }
1,438,341
[ 1, 4625, 348, 7953, 560, 30, 380, 1678, 326, 14036, 358, 13765, 603, 1517, 23701, 632, 891, 389, 21386, 326, 394, 14036, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 202, 915, 444, 14667, 12, 11890, 28, 389, 21386, 13, 1071, 1338, 5541, 288, 203, 202, 202, 21386, 273, 389, 21386, 31, 203, 202, 97, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/11155111/0x8bc80B7e0E5BA21347b4f772aa4726aF1C3229eb/sources/project_/contracts/VaultyTimeVault.sol
To withdraw the tokens after the unlock timestamp Update the deposit information Transfer the tokens back to the withdrawer Update the total tokens locked
function withdraw(uint256 vaultId) public { Vault storage userDeposit = vaultInfo[vaultId]; require(userDeposit.owner == msg.sender, "Only the owner can withdraw."); require(block.timestamp >= userDeposit.unlockTime, "Vault is still locked."); require(userDeposit.amount > 0, "No unlocked tokens t...
3,799,022
[ 1, 4625, 348, 7953, 560, 30, 225, 2974, 598, 9446, 326, 2430, 1839, 326, 7186, 2858, 2315, 326, 443, 1724, 1779, 12279, 326, 2430, 1473, 358, 326, 598, 9446, 264, 2315, 326, 2078, 2430, 8586, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 598, 9446, 12, 11890, 5034, 9229, 548, 13, 1071, 288, 203, 565, 17329, 2502, 729, 758, 1724, 273, 9229, 966, 63, 26983, 548, 15533, 203, 377, 203, 565, 2583, 12, 1355, 758, 1724, 18, 8443, 422, 1234, 18, 15330, 16, 31...
pragma solidity 0.6.5; pragma experimental ABIEncoderV2; struct ProtocolBalance { ProtocolMetadata metadata; AdapterBalance[] adapterBalances; } struct ProtocolMetadata { string name; string description; string websiteURL; string iconURL; uint256 version; } struct AdapterBalance ...
Handle ERC20 assets + debt
function getComponents(address token) external view override returns (Component[] memory) { address[] memory vaults = governance.getVaults(token); TypedToken[] memory assets = governance.listTokens(); address[] memory debtAdapters = governance.list...
7,586,423
[ 1, 4625, 348, 7953, 560, 30, 225, 5004, 4232, 39, 3462, 7176, 397, 18202, 88, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 336, 7171, 12, 2867, 1147, 13, 203, 203, 3639, 3903, 203, 203, 3639, 1476, 203, 203, 3639, 3849, 203, 203, 3639, 1135, 261, 1841, 8526, 3778, 13, 203, 203, 565, 288, 203, 203, 3639, 1758, 8526, 3778, 9229, 87, 273, 31...
pragma solidity ^0.4.24; // File: contracts/library/SafeMath.sol /** * @title SafeMath v0.1.9 * @dev Math operations with safety checks that throw on error * change notes: original SafeMath library from OpenZeppelin modified by Inventor * - added sqrt * - added sq * - added pwr * - changed asserts to require...
* @dev players, if you registered a profile, before a game was released, or set the all bool to false when you registered, use this function to push your profile to a single game. also, if you've updated your name, you can use this to push your name to games of your choosing. -functionhash- 0x81c5b206 @param _gameID ...
function addMeToGame(uint256 _gameID) isHuman() public { require(_gameID <= gID_, "silly player, that game doesn't exist yet"); address _addr = msg.sender; uint256 _pID = pIDxAddr_[_addr]; require(_pID != 0, "hey there buddy, you dont even have an account"); ...
6,075,914
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 18115, 16, 309, 1846, 4104, 279, 3042, 16, 1865, 279, 7920, 1703, 15976, 16, 578, 444, 326, 777, 1426, 358, 629, 1347, 1846, 4104, 16, 999, 333, 445, 358, 1817, 3433, 3042, 358, 279, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 527, 4667, 774, 12496, 12, 11890, 5034, 389, 13957, 734, 13, 203, 3639, 27803, 6925, 1435, 203, 3639, 1071, 203, 565, 288, 203, 3639, 2583, 24899, 13957, 734, 1648, 314, 734, 67, 16, 315, 25119, 715, 7291, 16, 716, 7920...
pragma solidity ^0.4.2; //import "./SafeMathLib.sol"; /** * Safe unsigned safe math. * * https://blog.aragon.one/library-driven-development-in-solidity-2bebcaf88736#.750gwtwli * * Originally from https://raw.githubusercontent.com/AragonOne/zeppelin-solidity/master/contracts/SafeMathLib.sol * * Maintained here u...
*发token给基金会*/ This will make the mint transaction apper in EtherScan.io We can remove this after there is a standardized minting event
function distributeToFound(address receiver, uint amount) onlyOwner() public returns (uint actual){ require((amount+havedDistFoundCoin) < totalFoundCoin); balances[owner] = balances[owner].sub(amount); balances[receiver] = balances[receiver].plus(amount); havedDistFoundCoin = havedDistFoundCoin...
507,105
[ 1, 4625, 348, 7953, 560, 30, 380, 166, 242, 244, 2316, 168, 124, 252, 166, 258, 123, 170, 234, 244, 165, 125, 253, 5549, 1220, 903, 1221, 326, 312, 474, 2492, 513, 457, 316, 512, 1136, 7972, 18, 1594, 1660, 848, 1206, 333, 1839, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 445, 25722, 774, 2043, 12, 2867, 5971, 16, 2254, 3844, 13, 1338, 5541, 1435, 1071, 225, 1135, 261, 11890, 3214, 15329, 7010, 21281, 565, 2583, 12443, 8949, 15, 76, 8158, 5133, 2043, 27055, 13, 411, 2078, 2043, 27055, 1769, 203, 212...
pragma solidity ^0.4.24; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; import './CustomPausable.sol'; ///@title Vesting Schedule Base Contract ///@notice Vesting Schedule indicates when, how much, and how frequently ///founders, employees, ...
@notice The vesting schedule allocation of the specified address.@param _address The address to get the vesting schedule allocation of.@return Returns the requested vesting schedule allocation.
function getAllocation(address _address) external view returns(uint256 _startedOn, string _memberName, uint256 _releaseOn, uint256 _allocation, uint256 _closingBalance, uint256 _withdrawn, uint256 _lastWithdrawnOn, bool _deleted) { _startedOn = allocations[_address].startedOn; _memberName = allocat...
14,090,326
[ 1, 4625, 348, 7953, 560, 30, 632, 20392, 1021, 331, 10100, 4788, 13481, 434, 326, 1269, 1758, 18, 36, 891, 389, 2867, 1021, 1758, 358, 336, 326, 331, 10100, 4788, 13481, 434, 18, 36, 2463, 2860, 326, 3764, 331, 10100, 4788, 13481, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 17353, 12, 2867, 389, 2867, 13, 3903, 1476, 1135, 12, 11890, 5034, 389, 14561, 1398, 16, 533, 389, 5990, 461, 16, 2254, 5034, 389, 9340, 1398, 16, 2254, 5034, 389, 29299, 16, 2254, 5034, 389, 19506, 13937, 16, 2254...