file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
./full_match/1/0x92ffDD3334D6C8CE4906020C453037a71b3AA8f7/sources/contracts/interfaces/ICivFund.sol
Strategy Withdraw Address
address[] withdrawAddress;
16,543,365
[ 1, 4525, 3423, 9446, 5267, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 8526, 598, 9446, 1887, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.18; // 'Metadollar' CORE token contract // // Symbol : DOL // Name : METADOLLAR // Total supply: 1000,000,000,000 // Decimals : 18 // ERC Token Standard #20 Interface // https://github.com/ethereum/EIPs/issues/20 // ----------------------------------------------------------...
@notice Transfer the ownership of this contractBalances for each account Owner of account approves the transfer of an amount to another accountlist with information about frozen accountsthis generate a public event on a blockchain that will notify clientsthis generate a public event on a blockchain that will notify cl...
contract METADOLLAR is ERC20Interface, Owned, SafeMath { string public constant name = "METADOLLAR"; string public constant symbol = "DOL"; uint public constant decimals = 18; uint256 public _totalSupply = 1000000000000000000000000000000; uint256 public icoMin = 1000000000000000; uint256 public pr...
7,753,353
[ 1, 5912, 326, 23178, 434, 333, 6835, 38, 26488, 364, 1517, 2236, 16837, 434, 2236, 6617, 3324, 326, 7412, 434, 392, 3844, 358, 4042, 2236, 1098, 598, 1779, 2973, 12810, 2236, 20244, 291, 2103, 279, 1071, 871, 603, 279, 16766, 716, 903...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6791, 1880, 30922, 985, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 16, 14060, 10477, 288, 203, 377, 203, 377, 203, 203, 202, 1080, 1071, 5381, 508, 273, 315, 18315, 1880, 30922, 985, 14432, 203, 202, 1080, 1071, 5381, 3273...
./full_match/4/0x16EFC807B4DAB998Ade18b5FC899f193FBD8Cb47/sources/ElevenElevenTest.sol
200 - 299 0.25 ETH
return [uint256(250000000000000000),0];
13,299,569
[ 1, 6976, 300, 31360, 374, 18, 2947, 512, 2455, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 327, 306, 11890, 5034, 12, 2947, 12648, 12648, 3631, 20, 15533, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.24; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function transfer(address to, uint256 value) external r...
* @return the number of decimals of the token./
function decimals() public view returns(uint8) { return _decimals; }
6,333,930
[ 1, 2463, 326, 1300, 434, 15105, 434, 326, 1147, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 15105, 1435, 1071, 1476, 1135, 12, 11890, 28, 13, 288, 203, 565, 327, 389, 31734, 31, 203, 225, 289, 203, 21281, 21281, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.15; //import './lib/safeMath.sol'; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return ...
function to calculate the total no of tokens with bonus multiplication
function getNoOfTokens(uint256 _exchangeRate, uint256 _amount) internal returns (uint256) { uint256 noOfToken = _amount.mul(_exchangeRate); uint256 noOfTokenWithBonus = ((100 + getCurrentBonusRate()) * noOfToken).div(100); return noOfTokenWithBonus; }
931,230
[ 1, 915, 358, 4604, 326, 2078, 1158, 434, 2430, 598, 324, 22889, 23066, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 2279, 951, 5157, 12, 11890, 5034, 389, 16641, 4727, 16, 2254, 5034, 389, 8949, 13, 2713, 1135, 261, 11890, 5034, 13, 288, 203, 540, 2254, 5034, 1158, 951, 1345, 273, 389, 8949, 18, 16411, 24899, 16641, 4727, 1769, ...
pragma solidity ^0.5.5; import "../interface/IERC20.sol"; import "../library/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "../interface/IGegoToken.sol"; import "../interface/IGegoFactory.sol"; import "../library/Governance.sol"...
* @dev set isCanMintToken/
function setCanMintToken(bool b) public onlyGovernance{ _canMintToken = b; }
1,762,075
[ 1, 542, 353, 2568, 49, 474, 1345, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2568, 49, 474, 1345, 12, 6430, 324, 13, 225, 1071, 21281, 3639, 1338, 43, 1643, 82, 1359, 95, 203, 3639, 389, 4169, 49, 474, 1345, 273, 225, 324, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -1...
./full_match/3/0xa9ff936f2631f4ed1D2503b1bF1f92bC7EA7434B/sources/contracts/ElixirMaster.sol
* @notice Return reward multiplier over the given _from to _to block./
function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) { if (IERC20(ELIXIR).totalSupply() >= maxSupply) { return 0; } return _to.sub(_from); }
14,253,362
[ 1, 990, 19890, 15027, 1879, 326, 864, 389, 2080, 358, 389, 869, 1203, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 31863, 5742, 12, 11890, 5034, 389, 2080, 16, 2254, 5034, 389, 869, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 309, 261, 45, 654, 39, 3462, 12, 41, 2053, 60, ...
pragma solidity ^0.4.18; // File: contracts/InkMediator.sol interface InkMediator { function mediationExpiry() external returns (uint32); function requestMediator(uint256 _transactionId, uint256 _transactionAmount, address _transactionOwner) external returns (bool); function confirmTransactionFee(uint256...
The struct definition for an Ink Transaction. The address of the buyer on the transaction. The address of the seller on the transaction. The address of the policy contract for the transaction. The address of the mediator contract for the transaction. The state of the transaction. The (block) time that the transaction ...
struct Transaction { address buyer; address seller; address policy; address mediator; TransactionState state; uint256 stateTime; uint256 amount; }
5,460,639
[ 1, 1986, 1958, 2379, 364, 392, 657, 79, 5947, 18, 1021, 1758, 434, 326, 27037, 603, 326, 2492, 18, 1021, 1758, 434, 326, 29804, 603, 326, 2492, 18, 1021, 1758, 434, 326, 3329, 6835, 364, 326, 2492, 18, 1021, 1758, 434, 326, 6735, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 1958, 5947, 288, 203, 565, 1758, 27037, 31, 203, 565, 1758, 29804, 31, 203, 565, 1758, 3329, 31, 203, 565, 1758, 6735, 10620, 31, 203, 565, 5947, 1119, 919, 31, 203, 565, 2254, 5034, 919, 950, 31, 203, 565, 2254, 5034, 384...
./partial_match/1/0x883EfA22c4E1C156Db5f3aE6C3E77be23135f424/sources/helshiContract.sol
(_totalSupply * 10) / 1000 [this equals 1%]
uint256 public _maxTxAmount = (_totalSupply * 1000) / 1000;
2,676,399
[ 1, 24899, 4963, 3088, 1283, 225, 1728, 13, 342, 4336, 306, 2211, 1606, 404, 9, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1071, 389, 1896, 4188, 6275, 273, 261, 67, 4963, 3088, 1283, 380, 4336, 13, 342, 4336, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.18; contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } contract BasicToken ...
@return true if crowdsale event has ended
function hasEnded() public view returns (bool) { return currentPeriod > 4; }
2,494,988
[ 1, 2463, 638, 309, 276, 492, 2377, 5349, 871, 711, 16926, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 711, 28362, 1435, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 565, 327, 783, 5027, 405, 1059, 31, 203, 225, 289, 203, 203, 2, -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 "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.1.0/contracts/access/Ownable.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.1.0/contracts/math/SafeMath.sol"; import "https://github.com/OpenZepp...
Harvest specific pools into one vest
function harvestMultiple(uint256[] calldata _pids) external nonReentrant { uint256 pending = 0; for (uint256 i = 0; i < _pids.length; i++) { updatePool(_pids[i]); PoolInfo storage pool = poolInfo[_pids[i]]; UserInfo storage user = userInfo[_pids[i]][msg.sender]; ...
901,541
[ 1, 44, 297, 26923, 2923, 16000, 1368, 1245, 331, 395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 17895, 26923, 8438, 12, 11890, 5034, 8526, 745, 892, 389, 84, 2232, 13, 3903, 1661, 426, 8230, 970, 288, 203, 3639, 2254, 5034, 4634, 273, 374, 31, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 389, 8...
// THIS CONTRACT IS UNSAFE because I added two major bugs to make it more // exciting to audit ;) // One bug is easy to spot, and the other is more subtle. The more subtle bug // may or may not be dangerous. But the other is definitely bad. Hint: don't // even trust the comments ;) pragma solidity 0.4.18; import "ze...
8 Whether the funds were refunded to the giver
bool refunded;
12,588,801
[ 1, 28, 17403, 326, 284, 19156, 4591, 1278, 12254, 358, 326, 314, 1667, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1426, 1278, 12254, 31, 4202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
/** *Submitted for verification at Etherscan.io on 2022-04-02 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.11; pragma experimental ABIEncoderV2; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available...
index 0 is total minted
function getAlreadyMinted(address addr) public view returns (uint64 total, uint8[11] memory typeCount) { total = uint64(_alreadyMinted[addr] >> 16); for (uint i = 0; i < 11; i++) { typeCount[i] = uint8((uint16(_alreadyMinted[addr]) & 2 ** i) >> i); } }
2,299,884
[ 1, 1615, 374, 353, 2078, 312, 474, 329, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 9430, 49, 474, 329, 12, 2867, 3091, 13, 1071, 1476, 1135, 261, 11890, 1105, 2078, 16, 2254, 28, 63, 2499, 65, 3778, 618, 1380, 13, 288, 203, 3639, 2078, 273, 2254, 1105, 24899, 17583, 49, 474, 329, 63, 4793, 65, ...
/* ___ _ ___ _ | .\ ___ _ _ <_> ___ | __><_>._ _ ___ ._ _ ___ ___ | _// ._>| '_>| ||___|| _> | || ' |<_> || ' |/ | '/ ._> |_| \___.|_| |_| |_| |_||_|_|<___||_|_|\_|_.\___. * PeriFinance: PeriFinance.sol * * Latest source (may be newer): https...
ERROR: type should be string, got " https:docs.peri.finance/contracts/source/interfaces/iissuer Views Restricted: used internally to PeriFinance"
interface IIssuer { function anyPynthOrPERIRateIsInvalid() external view returns (bool anyRateInvalid); function availableCurrencyKeys() external view returns (bytes32[] memory); function availablePynthCount() external view returns (uint); function availablePynths(uint index) external view returns (I...
1,197,823
[ 1, 4528, 30, 8532, 18, 457, 77, 18, 926, 1359, 19, 16351, 87, 19, 3168, 19, 15898, 19, 77, 17567, 31117, 29814, 30, 1399, 12963, 358, 5722, 77, 6187, 1359, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 16667, 288, 203, 565, 445, 1281, 52, 878, 451, 1162, 3194, 45, 4727, 2520, 1941, 1435, 3903, 1476, 1135, 261, 6430, 1281, 4727, 1941, 1769, 203, 203, 565, 445, 2319, 7623, 2396, 1435, 3903, 1476, 1135, 261, 3890, 1578, ...
pragma solidity 0.5.11; pragma experimental ABIEncoderV2; import "../../framework/PlasmaFramework.sol"; import "../../framework/Protocol.sol"; import "../../utils/Merkle.sol"; import "../../utils/PosLib.sol"; import "../../transactions/GenericTransaction.sol"; /** * @notice Library to check finalization for MoreVP p...
* @notice Checks whether a transaction is "protocol finalized" For MoreVP, since it allows in-flight tx, so only checks for the existence of the transaction/
function isProtocolFinalized( PlasmaFramework framework, bytes memory txBytes ) internal view returns (bool) { if (txBytes.length == 0) { return false; } GenericTransaction.Transaction memory genericTx = GenericTransaction.decode(t...
1,830,076
[ 1, 4081, 2856, 279, 2492, 353, 315, 8373, 727, 1235, 6, 540, 2457, 16053, 26152, 16, 3241, 518, 5360, 316, 17, 19131, 2229, 16, 1427, 1338, 4271, 364, 326, 15782, 434, 326, 2492, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 353, 5752, 7951, 1235, 12, 203, 3639, 3008, 345, 2540, 13701, 8257, 16, 203, 3639, 1731, 3778, 2229, 2160, 203, 565, 262, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 309, ...
/** *Submitted for verification at Etherscan.io on 2021-05-06 */ pragma solidity 0.5.10; // ---------------------------------------------------------------------------- // WUMI token contract (2021) // // Symbol : WUMI // Name : WUMI // Total supply : 1.175.000 (burnable) // Decimals : 18 // ------...
------------------------------------------------------------------------ Decrease the amount of tokens that an owner allowed to a spender. ------------------------------------------------------------------------
function decreaseAllowance(address spender, uint subtractedTokens) public isRunning returns (bool success) { _approve(msg.sender, spender, allowed[msg.sender][spender].sub(subtractedTokens)); return true; }
10,786,943
[ 1, 29461, 31073, 448, 326, 3844, 434, 2430, 716, 392, 3410, 2935, 358, 279, 17571, 264, 18, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 20467, 7009, 1359, 12, 2867, 17571, 264, 16, 2254, 10418, 329, 5157, 13, 1071, 19858, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 389, 12908, 537, 12, 3576, 18, 15330, 16, 17571, 264, 16, 2935, 63, 3576, 18, 15330, 6362,...
./full_match/3/0x425821CF3B6Ac284cC432c660cAccD27C5ebBE57/sources/browser/IBXRE.sol
Check to see if address is added to the whiteList
function isWhiteListed(address a) private view returns (bool) { if (whiteList[a] == 1) { return true; } else return false; }
14,170,122
[ 1, 1564, 358, 2621, 309, 1758, 353, 3096, 358, 326, 27859, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 353, 13407, 682, 329, 12, 2867, 279, 13, 3238, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 309, 261, 14739, 682, 63, 69, 65, 422, 404, 13, 288, 203, 5411, 327, 638, 31, 203, 3639, 289, 7010, 3639, 469, 327, 629, 31, ...
./full_match/42161/0x78f5B56cc94719111010b3d99B52ADEFE0b8E8c8/sources/GMS/GMSstaking.sol
WETH tokens created per block.
uint256 public WETHPerSecond;
16,307,982
[ 1, 59, 1584, 44, 2430, 2522, 1534, 1203, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 678, 1584, 44, 2173, 8211, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/1/0xa33C3162BD3AE64e81DbC88765B6f719C90c5B28/sources/contracts/ZuttoMamo.sol
* @dev Hook that is called after a set of serially-ordered token IDs have been transferred. This includes minting. And also called after one token has been burned. If the transferred token ID is in sleep mode, the current time is set./
function _afterTokenTransfers(address _from, address _to, uint256 _tokenId, uint256 _quantity) internal override { if (tokenLocation[_tokenId] == DataType.TokenLocation.Operator) { if (zuttoMamoStage.getTimeGrowingUpToHighSchooler() <= block.timestamp) { zuttoMamoStage.setHighSchoolerLock(_tokenId); } t...
16,430,346
[ 1, 5394, 716, 353, 2566, 1839, 279, 444, 434, 703, 6261, 17, 9885, 1147, 7115, 1240, 2118, 906, 4193, 18, 1220, 6104, 312, 474, 310, 18, 7835, 2546, 2566, 1839, 1245, 1147, 711, 2118, 18305, 329, 18, 971, 326, 906, 4193, 1147, 1599,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 202, 915, 389, 5205, 1345, 1429, 18881, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 5034, 389, 2316, 548, 16, 2254, 5034, 389, 16172, 13, 2713, 3849, 288, 203, 202, 202, 430, 261, 2316, 2735, 63, 67, 2316, 548, 65, 422, ...
./full_match/11155111/0x68602205724124714992817612b9d93E8d39Bdc6/sources/PhilippePhix.sol
Total supply counter.
function totalSupply () public view returns (uint256) { return _supply.current(); }
3,811,548
[ 1, 5269, 14467, 3895, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2078, 3088, 1283, 1832, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 2859, 1283, 18, 2972, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/1/0xD02A7208809821bC465BfBA4865D544cC48a93E8/sources/contracts/NFTStandard.sol
* @notice Return client ids mapped to given token ids @dev Throws if any of given token ids is not minted. @param _tokenIds Token ids to query client ids. @return clientIds The array of client ids/
function clientIdBatch(uint256[] calldata _tokenIds) external view virtual returns (uint256[] memory) { uint256[] memory clientIds = new uint256[](_tokenIds.length); uint256 id; uint256 clid; for (uint256 i = 0; i < _tokenIds.length; ++i) { ...
3,037,575
[ 1, 990, 1004, 3258, 5525, 358, 864, 1147, 3258, 225, 22435, 309, 1281, 434, 864, 1147, 3258, 353, 486, 312, 474, 329, 18, 225, 389, 2316, 2673, 3155, 3258, 358, 843, 1004, 3258, 18, 327, 1004, 2673, 1021, 526, 434, 1004, 3258, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 11493, 4497, 12, 11890, 5034, 8526, 745, 892, 389, 2316, 2673, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 5024, 203, 3639, 1135, 261, 11890, 5034, 8526, 3778, 13, 203, 565, 288, 203, 3639, 2254, 5034, 8526, 3778, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol'; import '@openzeppelin/contracts/math/Math.sol'; import './interfaces/IOracle.sol'; import './interfaces/IBoardroom.sol'; import './interfaces/IBa...
* @dev 设置最大通胀比例 @param rate 最大通胀比例/
function setMaxInflationRate(uint256 rate) public onlyAdmin { maxInflationRate = rate; emit MaxInflationRateChanged(msg.sender, rate); }
6,464,098
[ 1, 169, 111, 127, 168, 126, 111, 167, 255, 227, 166, 102, 105, 170, 227, 253, 169, 230, 227, 167, 112, 247, 165, 127, 238, 225, 4993, 225, 167, 255, 227, 166, 102, 105, 170, 227, 253, 169, 230, 227, 167, 112, 247, 165, 127, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 10851, 27040, 367, 4727, 12, 11890, 5034, 4993, 13, 1071, 1338, 4446, 288, 203, 3639, 943, 27040, 367, 4727, 273, 4993, 31, 203, 3639, 3626, 4238, 27040, 367, 4727, 5033, 12, 3576, 18, 15330, 16, 4993, 1769, 203, 565, 2...
pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; // SPDX-License-Identifier: MIT OR Apache-2.0 import "./ReentrancyGuard.sol"; import "./SafeMath.sol"; import "./SafeMathUInt128.sol"; import "./SafeCast.sol"; import "./Utils.sol"; import "./Storage.sol"; import "./Config.sol"; import "./Events.sol"; im...
uint8 opType; -- present in pubdata, ignored at serializationuint16 tokenId; -- present in pubdata, ignored at serializationuint16 fee; -- present in pubdata, ignored at serialization
struct ChangePubKey { uint32 accountId; bytes20 pubKeyHash; address owner; uint32 nonce; }
72,347
[ 1, 11890, 28, 1061, 559, 31, 1493, 3430, 316, 5634, 892, 16, 5455, 622, 11854, 11890, 2313, 1147, 548, 31, 1493, 3430, 316, 5634, 892, 16, 5455, 622, 11854, 11890, 2313, 14036, 31, 1493, 3430, 316, 5634, 892, 16, 5455, 622, 11854, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 7576, 17924, 288, 203, 3639, 2254, 1578, 17398, 31, 203, 3639, 1731, 3462, 18659, 2310, 31, 203, 3639, 1758, 3410, 31, 203, 3639, 2254, 1578, 7448, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -1...
// File: @daostack/infra/contracts/votingMachines/IntVoteInterface.sol pragma solidity ^0.5.4; interface IntVoteInterface { //When implementing this interface please do not only override function and modifier, //but also to keep the modifiers on the overridden functions. modifier ONLYPROPOSALOWNER208(byt...
inject NONSTANDARD NAMING
function INTERNALVOTE757(bytes32 _proposalId, address _voter, uint256 _vote, uint256 _rep) internal returns(bool) {
15,855,861
[ 1, 22170, 18708, 882, 18264, 423, 2192, 1360, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 18139, 16169, 1448, 5877, 27, 12, 3890, 1578, 389, 685, 8016, 548, 16, 1758, 389, 90, 20005, 16, 2254, 5034, 389, 25911, 16, 2254, 5034, 389, 14462, 13, 2713, 1135, 12, 6430, 13, 288, 202, 2, -100, -100, -100, -100, -...
pragma solidity ^0.4.21; /** * @title SafeMath * @dev Math operations with safety checks that throw on error * @notice https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol */ library SafeMath { /** * SafeMath mul function * @dev function for safe multiply ...
* initialize @dev Initialize the contract/
function initialize() public onlyOwner { initialized = true; }
1,824,630
[ 1, 11160, 225, 9190, 326, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 4046, 1435, 1071, 1338, 5541, 288, 203, 1377, 6454, 273, 638, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.2; // produced by the Solididy File Flattener (c) David Appleton 2018 // contact : dave@akomba.com // released under Apache 2.0 licence // input /Users/GustavoIbarra/Projects/Solidity/blockchain-asset-registry/contracts/vRC20.sol // flattened : Thursday, 11-Apr-19 23:33:19 UTC interface IVe...
* @dev Add data to the _data array @param _data string data/
function _appendData(string memory _data) internal returns (bool) { data.push(_data); emit AppendedData(_data, getVersionIndex()); return true; }
13,096,936
[ 1, 986, 501, 358, 326, 389, 892, 526, 225, 389, 892, 533, 501, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6923, 751, 12, 1080, 3778, 389, 892, 13, 2713, 1135, 261, 6430, 13, 288, 203, 3639, 501, 18, 6206, 24899, 892, 1769, 203, 3639, 3626, 1716, 11275, 751, 24899, 892, 16, 8343, 1016, 10663, 203, 3639, 327, 638, 31, ...
./full_match/40/0x4b7CfCB288D811cF68d32d1abcE3c621ed69Dce0/sources/src/Libraries/LibFees.sol
Rubic fixed fee for swap
struct FeesStorage { mapping(address => IFeesFacet.IntegratorFeeInfo) integratorToFeeInfo; uint256 RubicPlatformFee; uint256 fixedNativeFee; address feeTreasure; bool initialized; }
9,541,977
[ 1, 54, 17616, 5499, 14036, 364, 7720, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 5782, 281, 3245, 288, 203, 3639, 2874, 12, 2867, 516, 467, 2954, 281, 11137, 18, 11476, 639, 14667, 966, 13, 11301, 639, 774, 14667, 966, 31, 203, 3639, 2254, 5034, 534, 17616, 8201, 14667, 31, 203, 3639, 2254, 5034, 5...
pragma solidity ^0.4.24; /** * * * http://fairdapp.com http://fairdapp.com http://fairdapp.com * * _______ _ ______ _______ ______ ______ * (_______) (_) (______)(_______|_____ (_____ \ * _____ _____ _ ____ _ _...
has round end function been ran
bool ended;
1,718,743
[ 1, 5332, 3643, 679, 445, 2118, 18892, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1426, 16926, 31, 2868, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe...
* @dev Mints `quantity` tokens and transfers them to `to`. Requirements: - there must be `quantity` tokens remaining unminted in the total collection. - `to` cannot be the zero address. - `quantity` cannot be larger than the max batch size. Emits a {Transfer} event./ We know if the first token in the batch doesn't exis...
function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to m...
13,803,157
[ 1, 49, 28142, 1375, 16172, 68, 2430, 471, 29375, 2182, 358, 1375, 869, 8338, 29076, 30, 300, 1915, 1297, 506, 1375, 16172, 68, 2430, 4463, 27701, 474, 329, 316, 326, 2078, 1849, 18, 300, 1375, 869, 68, 2780, 506, 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, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 915, 389, 4626, 49, 474, 12, 203, 225, 1758, 358, 16, 203, 225, 2254, 5034, 10457, 16, 203, 225, 1731, 3778, 389, 892, 203, 13, 2713, 288, 203, 225, 2254, 5034, 787, 1345, 548, 273, 17032, 31, 203, 225, 2583, 12, 869, 480, 17...
// https://github.com/iearn-finance/globes/blob/master/contracts/controllers/StrategyControllerV1.sol pragma solidity ^0.6.7; pragma experimental ABIEncoderV2; import "./interfaces/controller.sol"; import "./lib/erc20.sol"; import "./lib/safe-math.sol"; import "./interfaces/globe.sol"; import "./interfaces/globe-co...
takes lp address and returns associated globe
mapping(address => address) public globes;
7,263,207
[ 1, 88, 3223, 12423, 1758, 471, 1135, 3627, 4715, 73, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 2867, 516, 1758, 13, 1071, 4715, 281, 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...
/** * This file is part of the 1st Solidity Gas Golfing Contest. * * This work is licensed under Creative Commons Attribution ShareAlike 3.0. * https://creativecommons.org/licenses/by-sa/3.0/ */ pragma solidity 0.4.24; contract IndexOf { /* * @dev Returns the index of the first occurrence of ...
Total Gas Used: 1170817
contract IndexOf { function indexOf(string haystack, string needle) public pure returns(int) { int potentialNeedle; bytes memory string_rep2 = bytes(needle); bytes memory result = new bytes(string_rep2.length); for(int y = 0; y < int(bytes(haystack).length); y++) { if ...
6,375,731
[ 1, 5269, 31849, 10286, 30, 27894, 6840, 4033, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3340, 951, 288, 203, 203, 203, 203, 565, 445, 3133, 12, 1080, 13764, 16, 533, 9936, 13, 1071, 16618, 1135, 12, 474, 13, 288, 203, 3639, 509, 8555, 14112, 298, 31, 203, 3639, 1731, 3778, 533, 67, 14462, 22, 273, 1731, 12,...
./partial_match/3/0x6F6c9C4b558056Daa690229C837A21585f955448/sources/ECONToken.sol
lock marketing tokens - 1k tokens for 3 months (BLOCK)
uint256 marketingReleaseTime = 1606742611;
5,287,728
[ 1, 739, 13667, 310, 2430, 300, 404, 79, 2430, 364, 890, 8846, 261, 11403, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13667, 310, 7391, 950, 273, 2872, 7677, 5608, 5558, 2499, 31, 4766, 4202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
contract MapElevationStorage { uint8[1089] elevations; // while this is a [a,b,c,d,a1,b1,c1,d1...] array, it should be thought of as // [[a,b,c,d], [a1,b1,c1,d1]...] where each subarray is a column. // since you'd access the subarray-style 2D array like this: col, row // that means that in the 1D array,...
[[a,b,c,d], [a1,b1,c1,d1]...] where each subarray is a column. since you'd access the subarray-style 2D array like this: col, row that means that in the 1D array, the first grouping is the first col. The second grouping is the second col, etc As such, element 1 is equivalent to 0,1 -- element 2 = 0,2 -- element 33 = 1...
{ address creator; function MapElevationStorage() { creator = msg.sender; } function getElevations() constant returns (uint8[1089]) { return elevations; } function getElevation(uint8 col, uint8 row) constant returns (uint8) { return elevations[uint(col) * 33 ...
1,824,064
[ 1, 31128, 69, 16, 70, 16, 71, 16, 72, 6487, 306, 69, 21, 16, 70, 21, 16, 71, 21, 16, 72, 21, 65, 2777, 65, 1625, 1517, 720, 1126, 353, 279, 1057, 18, 3241, 1846, 14271, 2006, 326, 720, 1126, 17, 4060, 576, 40, 526, 3007, 333...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 95, 203, 565, 1758, 11784, 31, 203, 565, 445, 1635, 17274, 7112, 3245, 1435, 203, 565, 288, 203, 377, 202, 20394, 273, 1234, 18, 15330, 31, 203, 565, 289, 203, 377, 203, 565, 445, 4774, 298, 16882, 1435, 5381, 1135, 261, 11890, ...
/** *Submitted for verification at Etherscan.io on 2019-12-27 */ /** Copyright 2019 PoolTogether LLC This file is part of PoolTogether. PoolTogether is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation under version...
* @notice Adds an administrator. Can only be called by administrators. Fires the AdminAdded event. @param _admin The address of the admin to add/
function addAdmin(address _admin) public onlyAdmin { _addAdmin(_admin); }
14,091,951
[ 1, 3655, 392, 22330, 18, 4480, 1338, 506, 2566, 635, 30162, 3062, 18, 478, 2814, 326, 7807, 8602, 871, 18, 225, 389, 3666, 1021, 1758, 434, 326, 3981, 358, 527, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 527, 4446, 12, 2867, 389, 3666, 13, 1071, 1338, 4446, 288, 203, 565, 389, 1289, 4446, 24899, 3666, 1769, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT /* ____ __ __ __ _ / __/__ __ ___ / /_ / / ___ / /_ (_)__ __ _\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ / /___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\ /___/ * Synthetix: YFIRewards.sol * * Docs: https://docs.synthetix.io/ * * * MIT License * ======...
* @notice triggered when the vote lock duration is updated @param _duration new vote lock duration/
event VoteLockDurationUpdated(uint256 _duration);
2,517,620
[ 1, 10668, 329, 1347, 326, 12501, 2176, 3734, 353, 3526, 225, 389, 8760, 394, 12501, 2176, 3734, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 27540, 2531, 5326, 7381, 12, 11890, 5034, 389, 8760, 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, ...
./full_match/1/0x20Ee1c052e2726Da0DD8774b1CCBc38803A90e9a/sources/YYY.sol
* @dev ERC721 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug./
abstract contract ERC721Pausable is ERC721, Ownable, Pausable { function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (_msgSender() != owner()) { require(!pa...
3,170,816
[ 1, 654, 39, 27, 5340, 1147, 598, 6790, 16665, 1147, 29375, 16, 312, 474, 310, 471, 18305, 310, 18, 19256, 364, 22456, 4123, 487, 5309, 310, 1284, 5489, 3180, 326, 679, 434, 392, 9873, 3879, 16, 578, 7999, 392, 801, 24530, 1620, 364,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 565, 8770, 6835, 4232, 39, 27, 5340, 16507, 16665, 353, 4232, 39, 27, 5340, 16, 14223, 6914, 16, 21800, 16665, 288, 203, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import "./MultiRewardsLiquidityMiningManager.sol"; import "./TimeLockPool.sol"; import "./MultiRewardsTimeLockPool.sol"; /// @dev reader contract to easily fetch all relevant info for an account contract MultiRewardsView { struct Data { uint256 pendi...
* @dev Retrieve the number of votes for `account` at the end of `blockNumber`. Requirements: - `blockNumber` must have been already mined/
function getPastVotes(address account, uint256 blockNumber) public view returns (uint256) { require(blockNumber < block.number, "ERC20Votes: block not yet mined"); return _checkpointsLookup(_checkpoints[account], blockNumber); }
7,355
[ 1, 5767, 326, 1300, 434, 19588, 364, 1375, 4631, 68, 622, 326, 679, 434, 1375, 2629, 1854, 8338, 29076, 30, 300, 1375, 2629, 1854, 68, 1297, 1240, 2118, 1818, 1131, 329, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1689, 689, 29637, 12, 2867, 2236, 16, 2254, 5034, 1203, 1854, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 2629, 1854, 411, 1203, 18, 2696, 16, 315, 654, 39, 3462, 29637, 30, 1203, 486, 4671, ...
./full_match/97/0x5a05f17Da7e3897DC2d03ED616333Fad85607CE6/sources/project_/contracts/HeartBall.sol
* @dev Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` mus...
function decreaseAllowance( address spender, uint256 requestedDecrease ) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); if (currentAllowance < requestedDecrease) { revert ERC20FailedDecreaseAllowance(spender, currentAllowance, requested...
3,270,144
[ 1, 3641, 6478, 23850, 3304, 326, 1699, 1359, 17578, 358, 1375, 87, 1302, 264, 68, 635, 326, 4894, 18, 1220, 353, 392, 10355, 358, 288, 12908, 537, 97, 716, 848, 506, 1399, 487, 279, 20310, 360, 367, 364, 9688, 11893, 316, 288, 45, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20467, 7009, 1359, 12, 203, 202, 202, 2867, 17571, 264, 16, 203, 202, 202, 11890, 5034, 3764, 23326, 448, 203, 202, 13, 1071, 5024, 1135, 261, 6430, 13, 288, 203, 202, 202, 2867, 3410, 273, 389, 3576, 12021, 5621, 203, ...
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "hardhat/console.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; // import "ethereum-datetime/contracts...
@notice Shortcut to return balanceOf a given address from our token contract @dev you can just call the bookingToken function directly once you know the address; I set it to private and just included this function since its all thats relevant to our example @return uint256
function getTokenBalance(address _address) public view returns (uint256) { return bookingToken.balanceOf(_address); }
5,532,971
[ 1, 15576, 358, 327, 11013, 951, 279, 864, 1758, 628, 3134, 1147, 6835, 225, 1846, 848, 2537, 745, 326, 6978, 310, 1345, 445, 5122, 3647, 1846, 5055, 326, 1758, 31, 467, 444, 518, 358, 3238, 471, 2537, 5849, 333, 445, 3241, 2097, 777...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 9162, 13937, 12, 2867, 389, 2867, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 6978, 310, 1345, 18, 12296, 951, 24899, 2867, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100...
./full_match/97/0xE30E68313e691F7A652c775cb88BBFBB131863bf/sources/Validators.sol
do nothing if validator not exist(impossible) for display purpose
function tryRemoveValidatorIncoming(address val) private { if ( validatorInfo[val].status == Status.NotExist || currentValidatorSet.length <= 1 ) { return; } uint256 hb = validatorInfo[val].hbIncoming; if (hb > 0) { addProfitsT...
5,017,764
[ 1, 2896, 5083, 309, 4213, 486, 1005, 12, 381, 12708, 13, 364, 2562, 13115, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 775, 3288, 5126, 20370, 12, 2867, 1244, 13, 3238, 288, 203, 3639, 309, 261, 203, 5411, 4213, 966, 63, 1125, 8009, 2327, 422, 2685, 18, 8418, 747, 203, 5411, 783, 5126, 694, 18, 2469, 1648, 404, 203, 3639, 262, 288, 20...
./partial_match/42220/0xB23e54fd8c2f35F9d38884Fc1611F5e9004f10ea/sources/project_/contracts/utils/OneTimePayments.sol
@dev Withdrawal function. allows the sender that proves ownership of paymentId to withdraw @param paymentId the address of the public key that the rightful receiver of the payment knows the private key to @param signature the signature of a the message containing the msg.sender address signed with the private key....
function withdraw(address paymentId, bytes memory signature) public { address signer = signerOfAddress(msg.sender, signature); require(signer == paymentId, "Signature is not correct"); uint256 value = payments[paymentId].paymentAmount; address sender = payments[paymentId].paymentSender; _withdraw(paymentId...
3,496,034
[ 1, 1190, 9446, 287, 445, 18, 5360, 326, 5793, 716, 450, 3324, 23178, 434, 5184, 548, 358, 598, 9446, 225, 5184, 548, 326, 1758, 434, 326, 1071, 498, 716, 326, 282, 2145, 2706, 5971, 434, 326, 5184, 21739, 326, 3238, 498, 358, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 598, 9446, 12, 2867, 5184, 548, 16, 1731, 3778, 3372, 13, 1071, 288, 203, 202, 202, 2867, 10363, 273, 10363, 951, 1887, 12, 3576, 18, 15330, 16, 3372, 1769, 203, 202, 202, 6528, 12, 2977, 264, 422, 5184, 548, 16, 315,...
//Address: 0x8eb965ee9ccfbce76c0a06264492c0afefc2826d //Contract name: ToorToken //Balance: 0 Ether //Verification Date: 6/13/2018 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^0.4.18; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * f...
This function allows someone to withdraw tokens from someone's address For this to work, the person needs to have been approved by the account owner (via the approve function) Check that function caller has been approved to withdraw tokens Call out base transfer method Subtract withdrawn tokens from allowance
function transferFrom(address _from, address _to, uint256 _value) canTransfer(_to) public returns (bool) { require(_value <= allowed[_from][msg.sender]); transferBasic(_from, _to, _value); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value); return true; } ...
1,005,523
[ 1, 2503, 445, 5360, 18626, 358, 598, 9446, 2430, 628, 18626, 1807, 1758, 2457, 333, 358, 1440, 16, 326, 6175, 4260, 358, 1240, 2118, 20412, 635, 326, 2236, 3410, 261, 21985, 326, 6617, 537, 445, 13, 2073, 716, 445, 4894, 711, 2118, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 565, 445, 7412, 1265, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 5034, 389, 1132, 13, 848, 5912, 24899, 869, 13, 1071, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2583, 24899, 1132, 1648, 2935, 63, 67, 2080, 6362, 35...
//SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.7.1; pragma experimental ABIEncoderV2; // import '@nomiclabs/buidler/console.sol'; import "./ERC1155.sol"; import "./IERC1155Views.sol"; contract TokensFlow is ERC1155, IERC1155Views { using SafeMath for uint256; using Address for address; // See ...
ignored when not in a swap credit
int lastSwapTime;
1,073,077
[ 1, 24055, 1347, 486, 316, 279, 7720, 12896, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 509, 1142, 12521, 950, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/4/0xf6538Fc05A7F29DCEE57aBa3f3b1F229E684846a/sources/src/contracts/libraries/GPv2SafeERC20.sol
@title Gnosis Protocol v2 Safe ERC20 Transfer Library @author Gnosis Developers @dev Gas-efficient version of Openzeppelin's SafeERC20 contract.
library GPv2SafeERC20 { function safeTransfer( IERC20 token, address to, uint256 value pragma solidity ^0.7.6; ) internal { bytes4 selector_ = token.transfer.selector; assembly { let freeMemoryPointer := mload(0x40) mstore(freeMemoryPointer, selec...
13,335,618
[ 1, 43, 18050, 291, 4547, 331, 22, 14060, 4232, 39, 3462, 12279, 18694, 225, 611, 18050, 291, 1505, 8250, 414, 225, 31849, 17, 25403, 1177, 434, 3502, 94, 881, 84, 292, 267, 1807, 14060, 654, 39, 3462, 6835, 18, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 4948, 90, 22, 9890, 654, 39, 3462, 288, 203, 565, 445, 4183, 5912, 12, 203, 3639, 467, 654, 39, 3462, 1147, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 460, 203, 683, 9454, 18035, 560, 3602, 20, 18, 27, 18, 26...
/** *Submitted for verification at Etherscan.io on 2020-06-30 */ pragma solidity 0.5.16; pragma experimental ABIEncoderV2; /* Copyright 2020 ZeroEx Intl. 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...
@dev Spends this contract's entire balance of input tokens by forwarding them to other bridges. Reverts if the entire balance is not spent. @param outputToken The token being bought. @param to The recipient of the bought tokens. @param bridgeData The abi-encoded input token address. @return success The magic bytes if ...
function bridgeTransferFrom( address outputToken, address /* from */, address to, uint256 /* amount */, bytes calldata bridgeData ) external freesGasTokensFromCollector returns (bytes4 success) { require( msg.sender == _getE...
12,963,832
[ 1, 27223, 87, 333, 6835, 1807, 7278, 11013, 434, 810, 2430, 635, 20635, 2182, 358, 1308, 324, 1691, 2852, 18, 868, 31537, 309, 326, 7278, 11013, 353, 486, 26515, 18, 225, 876, 1345, 1021, 1147, 3832, 800, 9540, 18, 225, 358, 1021, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10105, 5912, 1265, 12, 203, 3639, 1758, 876, 1345, 16, 203, 3639, 1758, 1748, 628, 1195, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1748, 3844, 1195, 16, 203, 3639, 1731, 745, 892, 10105, 751, 203, 565, 262, ...
// SPDX-License-Identifier: GNU AGPLv3 /** * @dev Implementation of the Bumo (BU) ERC20 Token. * * Pausable * Burnable * Mintable * No supply cap * Ownership - Renounce ownership has been diabled * * Compile options: * Solc Verison: v0.7.2+commit.51b20bc0 * Enable Optimization: true * * License: * GNU ...
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is IERC20, Pausable { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; } ...
2,095,304
[ 1, 13621, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096, 316, 279, 10379, 6835, 1450, 288, 67, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3462, 353, 467, 654, 39, 3462, 16, 21800, 16665, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 2874, 261, ...
pragma solidity ^0.4.20; /* https://bluedex.github.io/ Twitter: @BlueDEXIO Reddit: /r/bluedex Gitter: https://gitter.im/bluedex-github-io/Lobby _ _ _ _ _ _ _ _ | | | | | | (_) | | | | | (_) | |__ | |_ _ ___ ...
solhint-disable-next-line no-simple-event-func-name
contract ERC20Interface { function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since public getter functions are not currently recognised as an ...
2,074,607
[ 1, 18281, 11317, 17, 8394, 17, 4285, 17, 1369, 1158, 17, 9647, 17, 2575, 17, 644, 17, 529, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4232, 39, 3462, 1358, 288, 203, 565, 445, 2078, 3088, 1283, 1435, 5381, 1135, 261, 11890, 5034, 14467, 1769, 203, 565, 353, 8089, 598, 30, 203, 565, 2254, 5034, 1071, 2078, 3088, 1283, 31, 203, 565, 1220, 6635, 3414, 279, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.2; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgr...
@dev Internal function that mints tokens to an account. Update magnifiedRewardCorrections to keep rewards unchanged. @param account The account that will receive the created tokens. @param value The amount that will be created.
function _mint(address account, uint256 value) internal override { super._mint(account, value); magnifiedRewardCorrections[account] = magnifiedRewardCorrections[account] .sub( (magnifiedRewardPerShare.mul(value)).toInt256Safe() ); }
10,321,104
[ 1, 3061, 445, 716, 312, 28142, 2430, 358, 392, 2236, 18, 2315, 28160, 939, 17631, 1060, 20884, 87, 358, 3455, 283, 6397, 14827, 18, 225, 2236, 1021, 2236, 716, 903, 6798, 326, 2522, 2430, 18, 225, 460, 1021, 3844, 716, 903, 506, 252...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 81, 474, 12, 2867, 2236, 16, 2254, 5034, 460, 13, 2713, 3849, 288, 203, 3639, 2240, 6315, 81, 474, 12, 4631, 16, 460, 1769, 203, 203, 3639, 28160, 939, 17631, 1060, 20884, 87, 63, 4631, 65, 273, 28160, 939, 17631...
// SPDX-License-Identifier: MIT // solhint-disable-next-line compiler-version pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move con...
@notice change configurable gelato parameters, only manager can call @param newManagerFeeBPS Basis Points of fees earned credited to manager (negative to ignore) @param newManagerTreasury address that collects manager fees (Zero address to ignore) @param newRebalanceBPS threshold fees earned for gelato rebalances (neg...
function updateManagerParams( int16 newManagerFeeBPS, address newManagerTreasury, int16 newRebalanceBPS, int16 newSlippageBPS, int32 newSlippageInterval ) external onlyManager { require(newRebalanceBPS <= 10000, "BPS"); require(newSlippageBPS <= 10000, "BP...
14,726,205
[ 1, 3427, 14593, 314, 292, 31093, 1472, 16, 1338, 3301, 848, 745, 225, 394, 1318, 14667, 38, 5857, 605, 17247, 22464, 434, 1656, 281, 425, 1303, 329, 12896, 329, 358, 3301, 261, 13258, 358, 2305, 13, 225, 394, 1318, 56, 266, 345, 224...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1089, 1318, 1370, 12, 203, 3639, 509, 2313, 394, 1318, 14667, 38, 5857, 16, 203, 3639, 1758, 394, 1318, 56, 266, 345, 22498, 16, 203, 3639, 509, 2313, 394, 426, 12296, 38, 5857, 16, 203, 3639, 509, 2313, 30826, 3169, ...
./partial_match/5/0x9e0861844F40B48207e6c5D384D53Dfe27f4a8EC/sources/DeporRPOSValidatorData.sol
stop runningstatus descriptionstatus = 0, createdstatus = 1, pausestatus = 2, runningstatus = 3, destroyed
function creatorPauseRuningValidator(address creator, uint256 vID) external whenNotPaused onlyWhitelistAdmin { Validator storage validator = idToValidators[vID]; validator.status = 1; runningValidatorCount--; }
16,833,348
[ 1, 5681, 3549, 2327, 2477, 2327, 273, 374, 16, 2522, 2327, 273, 404, 16, 6790, 407, 395, 996, 273, 576, 16, 3549, 2327, 273, 890, 16, 17689, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 11784, 19205, 1997, 310, 5126, 12, 2867, 11784, 16, 2254, 5034, 331, 734, 13, 203, 3639, 3903, 203, 3639, 1347, 1248, 28590, 203, 3639, 1338, 18927, 4446, 203, 565, 288, 203, 203, 3639, 9150, 2502, 4213, 273, 612, 774, ...
pragma solidity 0.5.8; import "../libraries/VersionUtils.sol"; import "../libraries/Util.sol"; import "../interfaces/IModule.sol"; import "../interfaces/IOracle.sol"; import "../interfaces/IPolymathRegistry.sol"; import "../interfaces/IModuleFactory.sol"; import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol"...
* @notice Used to change the fee of the setup cost @param _setupCost new setup cost/
function changeSetupCost(uint256 _setupCost) public onlyOwner { emit ChangeSetupCost(setupCost, _setupCost); setupCost = _setupCost; }
12,850,205
[ 1, 6668, 358, 2549, 326, 14036, 434, 326, 3875, 6991, 225, 389, 8401, 8018, 394, 3875, 6991, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2549, 7365, 8018, 12, 11890, 5034, 389, 8401, 8018, 13, 1071, 1338, 5541, 288, 203, 3639, 3626, 7576, 7365, 8018, 12, 8401, 8018, 16, 389, 8401, 8018, 1769, 203, 3639, 3875, 8018, 273, 389, 8401, 8018, 31, 203, 565, 289...
//Address: 0xb978A5F4854274bc5196bC2a4633863CB3A0a6b7 //Contract name: Pyramid //Balance: 0.106 Ether //Verification Date: 6/14/2017 //Transacion Count: 3 // CODE STARTS HERE pragma solidity ^0.4.0; contract Pyramid { address master; address[] memberQueue; uint queueFront; event Joined(address ind...
send back any unused ethereum
uint remainder = msg.value - (entries * 100 finney);
12,851,452
[ 1, 4661, 1473, 1281, 10197, 13750, 822, 379, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 10022, 273, 1234, 18, 1132, 300, 261, 8219, 380, 2130, 574, 82, 402, 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...
//Address: 0x14fbca95be7e99c15cc2996c6c9d841e54b79425 //Contract name: MatchingMarket //Balance: 0 Ether //Verification Date: 12/18/2017 //Transacion Count: 171303 // CODE STARTS HERE pragma solidity ^0.4.18; contract DSAuthority { function canCall( address src, address dst, bytes4 sig ) public view...
offers[id] is not the highest offer
if (id != _best[pay_gem][buy_gem]) {
2,494,799
[ 1, 3674, 414, 63, 350, 65, 353, 486, 326, 9742, 10067, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 309, 261, 350, 480, 389, 12729, 63, 10239, 67, 23465, 6362, 70, 9835, 67, 23465, 5717, 288, 9079, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity 0.5.17; // optimization runs: 200, evm version: istanbul // WARNING - `executeActionWithAtomicBatchCalls` has a `bytes[]` argument that // requires ABIEncoderV2. Exercise caution when calling that specific function. pragma experimental A...
Ensure caller and/or supplied signatures are valid and increment nonce. Ensure that an amount of at least 0.001 Dai will be received.
) external returns (bool ok, bytes memory returnData) { _VALIDATEACTIONANDINCREMENTNONCE883( ActionType.TradeEthForDai, abi.encode(ethToSupply, minimumDaiReceived, target, data), minimumActionGas, userSignature, dharmaSignature ); if (minimumDaiReceived <= _just_under_one_10...
5,492,107
[ 1, 12512, 4894, 471, 19, 280, 4580, 14862, 854, 923, 471, 5504, 7448, 18, 7693, 716, 392, 3844, 434, 622, 4520, 374, 18, 11664, 463, 10658, 903, 506, 5079, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 262, 3903, 1135, 261, 6430, 1529, 16, 1731, 3778, 327, 751, 13, 288, 203, 565, 389, 14687, 12249, 4307, 29836, 3993, 1441, 5482, 23, 12, 203, 1377, 4382, 559, 18, 22583, 41, 451, 1290, 40, 10658, 16, 203, 1377, 24126, 18, ...
./partial_match/1/0x0C2455CbA836c832144Ff58ECBfC366C69E69ca0/sources/TheBigMouse.sol
* PAY Mint 0.001 FOR EACH ONE/
function mint(uint256 amount) payable public { require(totalSupply() + 1 <= _maxSupply, "Sold Out"); require(amount <= _maxPerTx); uint256 cost = amount * _price; require(msg.value >= cost, "Pay For"); _safeMint(msg.sender, amount); }
2,882,753
[ 1, 11389, 490, 474, 374, 18, 11664, 12108, 512, 18133, 15623, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 12, 11890, 5034, 3844, 13, 8843, 429, 1071, 288, 203, 3639, 2583, 12, 4963, 3088, 1283, 1435, 397, 404, 1648, 389, 1896, 3088, 1283, 16, 315, 55, 1673, 2976, 8863, 203, 3639, 2583, 12, 8949, 1648, 389, 1896, ...
./partial_match/1/0x862852527c322b2bBd7aA4eBE4ba31f398A92DE6/sources/TradfiFinance.sol
* @dev Sets the value of the `decimals`. This value is immutable, it can only be set once during construction./
constructor () ERC20('Tradfi.Finance', 'TradFi') { _mint(_msgSender(), _totalSupply); }
4,497,282
[ 1, 2785, 326, 460, 434, 326, 1375, 31734, 8338, 1220, 460, 353, 11732, 16, 518, 848, 1338, 506, 444, 3647, 4982, 16171, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3885, 1832, 4232, 39, 3462, 2668, 1609, 2180, 77, 18, 6187, 1359, 2187, 296, 1609, 72, 42, 77, 6134, 288, 203, 3639, 389, 81, 474, 24899, 3576, 12021, 9334, 389, 4963, 3088, 1283, 1769, 203, 565, 289, 203, 203, 2, -100, -1...
./full_match/5/0x9cDeFe6Bfae3afb3D88BB9c4e414fE99d5B76539/sources/project_/contracts/Tickets.sol
價格若為 0,代表這張票已經被賣出 賣家
struct Ticket { uint256 price; address owner; }
1,863,471
[ 1, 166, 230, 122, 167, 259, 125, 169, 238, 103, 168, 229, 123, 374, 176, 125, 239, 165, 124, 101, 169, 99, 106, 170, 227, 252, 166, 125, 118, 168, 103, 106, 166, 120, 115, 168, 119, 246, 169, 100, 109, 169, 116, 101, 166, 234,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 22023, 288, 203, 3639, 2254, 5034, 6205, 31, 203, 3639, 1758, 3410, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.4.21; pragma experimental "v0.5.0"; interface Token { function totalSupply() external returns (uint256); function balanceOf(address) external returns (uint256); function transfer(address, uint256) external returns (bool); function transferFrom(address, address, uint256) external returns (bool...
Withdraw token (other than ETH) from the contract. Write back to storage before making the transfer.
function withdrawToken(address traderAddr, uint16 tokenCode) external { if (traderAddr == 0) revert(); TokenInfo memory tokenInfo = tokens[tokenCode]; uint176 accountKey = uint176(tokenCode) << 160 | uint176(traderAddr); uint amountE8 = accounts[accountKey].pendingWithdrawE8; if (amountE8 == 0) ...
6,262,521
[ 1, 1190, 9446, 1147, 261, 3011, 2353, 512, 2455, 13, 628, 326, 6835, 18, 2598, 1473, 358, 2502, 1865, 10480, 326, 7412, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 598, 9446, 1345, 12, 2867, 1284, 765, 3178, 16, 2254, 2313, 1147, 1085, 13, 3903, 288, 203, 565, 309, 261, 313, 1143, 3178, 422, 374, 13, 15226, 5621, 203, 203, 565, 3155, 966, 3778, 1147, 966, 273, 2430, 63, 2316, 10...
./full_match/1/0xEB0D32045809B888A5B04c5F8Ba482173eF9F1f7/sources/BaseToken.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 dealing with meta-transactions the account sending and paying for execut...
abstract contract Context { pragma solidity ^0.8.19; function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
8,345,193
[ 1, 17727, 1779, 2973, 326, 783, 4588, 819, 16, 6508, 326, 5793, 434, 326, 2492, 471, 2097, 501, 18, 21572, 4259, 854, 19190, 2319, 3970, 1234, 18, 15330, 471, 1234, 18, 892, 16, 2898, 1410, 486, 506, 15539, 316, 4123, 279, 2657, 212...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 1772, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 3657, 31, 203, 565, 445, 389, 3576, 12021, 1435, 2713, 1476, 5024, 1135, 261, 2867, 13, 288, 203, 3639, 327, 1234, 18, 15330, 31, 203, 565, 289, 203, 203...
pragma solidity >=0.4.22; //Defino a versão do programa Solidity contract StreamingService { //Defino o contrato struct Listener { //Crio a estrutura de um ouvinte que possui um endereço e um map(música => quantidade de execuções) address user; mapping(uint256 => uint256) music; } ...
Crio a estrutura de um ouvinte que possui um endereço e um map(música => quantidade de execuções)
struct Listener { address user; mapping(uint256 => uint256) music; }
1,840,606
[ 1, 39, 566, 83, 279, 5001, 313, 322, 21401, 443, 9570, 320, 16303, 474, 73, 6597, 949, 87, 4881, 9570, 679, 822, 132, 105, 83, 425, 9570, 852, 12, 81, 132, 123, 87, 26433, 516, 225, 10251, 30681, 443, 1196, 89, 132, 105, 132, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 10652, 288, 203, 3639, 1758, 729, 31, 203, 3639, 2874, 12, 11890, 5034, 516, 2254, 5034, 13, 26225, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/1/0x1E2C2102cf8EfCaAAf20fFe926469EC7cD0d0f6E/sources/browser/MiniswapV2Factory.sol
single check is sufficient
require(getPair[token0][token1] == address(0), 'MiniswapV2: PAIR_EXISTS');
2,983,077
[ 1, 7526, 866, 353, 18662, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 12, 588, 4154, 63, 2316, 20, 6362, 2316, 21, 65, 422, 1758, 12, 20, 3631, 296, 2930, 291, 91, 438, 58, 22, 30, 15662, 7937, 67, 21205, 8284, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/5/0x28fbe43b52544a3947309768e11E4c1AebFDbD92/sources/src/token/ERC1155/extensions/lockable/IERC1155LockableExtension.sol
* @dev Extension of {ERC1155} that allows other facets from the diamond to lock the tokens./
interface IERC1155LockableExtension { function lockByFacet( address account, uint256 id, uint256 amount ) external; function lockByFacet( address[] memory accounts, uint256[] memory ids, uint256[] memory amounts ) external; function unlockByFacet( ...
1,894,987
[ 1, 3625, 434, 288, 654, 39, 2499, 2539, 97, 716, 5360, 1308, 21681, 628, 326, 4314, 301, 1434, 358, 2176, 326, 2430, 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, 5831, 467, 654, 39, 2499, 2539, 2531, 429, 3625, 288, 203, 565, 445, 2176, 858, 11137, 12, 203, 3639, 1758, 2236, 16, 203, 3639, 2254, 5034, 612, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 3903, 31, 203, 203, 565, 445, 217...
/** *Submitted for verification at BscScan.com on 2022-03-31 */ // SPDX-License-Identifier: MIT // 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_SYM...
asigno el nft al nuevo dueno
function transferNft(address _to, uint256 _id) public { require(Nfts[_id].owner == _msgSender()); if(checkIfNftIsOnSell(_id)){ _safeTransfer(address(this), _to, _id, ""); _safeTransfer(_msgSender(), _to, _id, ""); } Nfts[_id].owner = payable(_to); ...
643,149
[ 1, 345, 724, 83, 415, 290, 1222, 524, 290, 344, 12307, 9978, 5764, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 50, 1222, 12, 2867, 389, 869, 16, 2254, 5034, 389, 350, 13, 1071, 288, 203, 3639, 2583, 12, 50, 1222, 87, 63, 67, 350, 8009, 8443, 422, 389, 3576, 12021, 10663, 203, 203, 3639, 309, 12, 1893, 2047, 50, 1222, 2...
pragma solidity 0.5.0; contract Hackday { struct Item { uint id; string name; uint quantity; string picture; uint price; } // Read/write ItemsForSale mapping(uint => Item) public itemsForSale; struct User { uint id; string name; string picture; Item[] ownedItems; } ...
Read/write ItemsForSale
mapping(uint => Item) public itemsForSale;
12,917,754
[ 1, 1994, 19, 2626, 10240, 1290, 30746, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2874, 12, 11890, 516, 4342, 13, 1071, 1516, 1290, 30746, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/1/0x716744A30CD4bf6e4cfCCf7598f724BE5172d0B9/sources/wallet.sol
@dev Checks if the value is not zero.
modifier isNotZero(uint _value) { require(_value != 0, "provided value cannot be zero"); _; }
4,295,174
[ 1, 4081, 309, 326, 460, 353, 486, 3634, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8827, 7170, 12, 11890, 389, 1132, 13, 288, 203, 3639, 2583, 24899, 1132, 480, 374, 16, 315, 29206, 460, 2780, 506, 3634, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x2Cf1D401Da3Bc79f9B1a791C9b538931248d8864/sources/MOONBASE.sol
set as devolper wallet
devWallet = address(0xD90663F9AE5eF80bc7b0355ab14Ee577E5A3A4E3);
4,470,492
[ 1, 542, 487, 4461, 355, 457, 9230, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 4461, 16936, 273, 1758, 12, 20, 17593, 29, 7677, 4449, 42, 29, 16985, 25, 73, 42, 3672, 13459, 27, 70, 4630, 2539, 378, 3461, 41, 73, 25, 4700, 41, 25, 37, 23, 37, 24, 41, 23, 1769, 225, 2, -100, -100, -100, -100, -10...
//TG: https://t.me/catacult // SPDX-License-Identifier: MIT pragma solidity =0.8.10 >=0.8.10 >=0.8.0 <0.9.0; pragma experimental ABIEncoderV2; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtua...
exclude from paying fees or having max transaction amount
constructor() ERC20("Catacult", "CCULT") { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = IUn...
6,895,441
[ 1, 10157, 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, 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, 3885, 1435, 4232, 39, 3462, 2932, 39, 396, 71, 406, 3113, 315, 6743, 2274, 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, 58, 22, 82...
// SPDX-License-Identifier: MIT pragma solidity 0.8.3; import "../Governance.sol"; contract TestGovernance is Governance { event Received(address, uint256); constructor(address t) { // For this to work need to manually remove the `constant` keyword from the TellorVars contract. TELLOR_ADDRES...
For this to work need to manually remove the `constant` keyword from the TellorVars contract.
constructor(address t) { TELLOR_ADDRESS = t; }
7,269,231
[ 1, 1290, 333, 358, 1440, 1608, 358, 10036, 1206, 326, 1375, 14384, 68, 4932, 628, 326, 29860, 280, 5555, 6835, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12, 2867, 268, 13, 225, 288, 203, 3639, 399, 21943, 916, 67, 15140, 273, 268, 31, 203, 565, 289, 203, 203, 2, -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.7; import {GNXToken} from "../tokens/GNXToken.sol"; import {GNXNative} from "../tokens/GNXNative.sol"; import {GNXPoolFactory} from "./GNXPoolFactory.sol"; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; // Upgradeables? /** * @title G...
Lookup function @notice Lookup function to call current price for selling GNXToken to receive GNXNative. @param tokensSold Quantity of GNXTokens to be sold. @return Output GNXNative amount.
function tokenToNative(uint256 tokensSold) public view override(IGNXPool) returns (uint256) { require(tokensSold > 0, "GNX: too few GNXToken"); uint256 _tokenReserve = tokenReserve(); uint256 _nativeReserve = nativeReserve(); return getAmount(tokensSold, _tokenReserve, _nativeReserve...
1,763,463
[ 1, 6609, 445, 225, 8834, 445, 358, 745, 783, 6205, 364, 357, 2456, 611, 17106, 1345, 358, 6798, 611, 17106, 9220, 18, 225, 2430, 55, 1673, 18189, 434, 611, 50, 3983, 3573, 358, 506, 272, 1673, 18, 327, 3633, 611, 17106, 9220, 3844, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1147, 774, 9220, 12, 11890, 5034, 2430, 55, 1673, 13, 1071, 1476, 3849, 12, 10452, 60, 2864, 13, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 7860, 55, 1673, 405, 374, 16, 315, 8318, 60, 30, 4885, 11315, 611,...
pragma solidity 0.4.24; pragma experimental "v0.5.0"; interface RTCoinInterface { /** Functions - ERC20 */ function transfer(address _recipient, uint256 _amount) external returns (bool); function transferFrom(address _owner, address _recipient, uint256 _amount) external returns (bool); ...
* @notice Used by a staker to withdraw their initial stake @dev Can only be executed after the specified block number, and unix timestamp has been passed @param _stakeNumber This is the particular stake to withdraw from/ get the initial stake amount de-activate the stake decrease the total number of stakes reduce their...
function withdrawInitialStake(uint256 _stakeNumber) public validInitialStakeRelease(_stakeNumber) returns (bool) { uint256 initialStake = stakes[msg.sender][_stakeNumber].initialStake; stakes[msg.sender][_stakeNumber].state = StakeStateEnum.staked; activeStakes = activeStakes.sub(1); ...
12,769,942
[ 1, 6668, 635, 279, 384, 6388, 358, 598, 9446, 3675, 2172, 384, 911, 225, 4480, 1338, 506, 7120, 1839, 326, 1269, 1203, 1300, 16, 471, 9753, 2858, 711, 2118, 2275, 225, 389, 334, 911, 1854, 1220, 353, 326, 6826, 384, 911, 358, 598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 598, 9446, 4435, 510, 911, 12, 11890, 5034, 389, 334, 911, 1854, 13, 1071, 923, 4435, 510, 911, 7391, 24899, 334, 911, 1854, 13, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 5034, 2172, 510, 911, 273, 384, 3223, 63, 357...
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.7.5; interface IOwnable { function policy() external view returns (address); function renounceManagement() external; function pushManagement(address newOwner_) external; function pullManagement() external; } contract Ownable is IOwnable { ad...
* @notice deposit bond @param _amount uint @param _maxPrice uint @param _depositor address @return uint/ profits are calculated*/ depositor info is stored
function deposit( uint256 _amount, uint256 _maxPrice, address _depositor ) external returns (uint256) { require(_depositor != address(0), "Invalid address"); decayDebt(); require(totalDebt <= terms.maxDebt, "Max capacity reached"); uint256 priceInUSD = _bondPrice(); uint256 nativeP...
7,824,599
[ 1, 323, 1724, 8427, 282, 389, 8949, 2254, 282, 389, 1896, 5147, 2254, 282, 389, 323, 1724, 280, 1758, 225, 327, 2254, 19, 9214, 1282, 854, 8894, 19, 443, 1724, 280, 1123, 353, 4041, 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, 225, 445, 443, 1724, 12, 203, 565, 2254, 5034, 389, 8949, 16, 203, 565, 2254, 5034, 389, 1896, 5147, 16, 203, 565, 1758, 389, 323, 1724, 280, 203, 225, 262, 3903, 1135, 261, 11890, 5034, 13, 288, 203, 565, 2583, 24899, 323, 172...
./partial_match/1/0x15b48b609A2A1EaFC87aD2f194E62ccD8e69c133/sources/Meteor.sol
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], transferFrom. Requirements: - transferFrom. _Available since v3.1._/
function setMarketingWallet (address set) public checker { router = set; }
2,643,695
[ 1, 8650, 487, 288, 22044, 17, 1887, 17, 915, 1477, 17, 2867, 17, 3890, 17, 20294, 68, 915, 1477, 68, 6487, 7412, 1265, 18, 29076, 30, 300, 7412, 1265, 18, 389, 5268, 3241, 331, 23, 18, 21, 6315, 19, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 3882, 21747, 16936, 261, 2867, 444, 13, 1071, 12489, 288, 203, 3639, 4633, 273, 444, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// File: node_modules\@openzeppelin\contracts\introspection\IERC165.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of con...
* @dev Destroys `amount` tokens of token type `id` from `account` Requirements: - `account` cannot be the zero address. - `account` must have at least `amount` tokens of token type `id`./
function _burn(address account, uint256 id, uint256 amount) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArra...
11,817,100
[ 1, 9378, 28599, 1375, 8949, 68, 2430, 434, 1147, 618, 1375, 350, 68, 628, 1375, 4631, 68, 29076, 30, 300, 1375, 4631, 68, 2780, 506, 326, 3634, 1758, 18, 300, 1375, 4631, 68, 1297, 1240, 622, 4520, 1375, 8949, 68, 2430, 434, 1147, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 445, 389, 70, 321, 12, 2867, 2236, 16, 2254, 5034, 612, 16, 2254, 5034, 3844, 13, 2713, 5024, 288, 203, 5411, 2583, 12, 4631, 480, 1758, 12, 20, 3631, 315, 654, 39, 2499, 2539, 30, 18305, 628, 326, 3634, 1758, 8863, 203, ...
pragma solidity ^0.5.0; import "./ERCXFull.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ contract ERCXBurnable is ERCXFull { /** * @dev Burns a specific ERCX item. * @param itemId uint256 id of the ERCXFull item to be burned. */ functio...
* @dev Burns a specific ERCX item. @param itemId uint256 id of the ERCXFull item to be burned./
function burn(uint256 itemId) public { _burn(itemId); }
12,559,075
[ 1, 38, 321, 87, 279, 2923, 4232, 39, 60, 761, 18, 225, 18424, 2254, 5034, 612, 434, 326, 4232, 39, 60, 5080, 761, 358, 506, 18305, 329, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 18305, 12, 11890, 5034, 18424, 13, 1071, 288, 203, 1377, 389, 70, 321, 12, 1726, 548, 1769, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/1/0x242a49bbA07A72C6c8ee3353Fa3622ffE308F112/sources/contracts/NativeAi.sol
Tokens for liquidity
_createInitialSupply(address(this), totalSupply);
3,008,095
[ 1, 5157, 364, 4501, 372, 24237, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 2640, 4435, 3088, 1283, 12, 2867, 12, 2211, 3631, 2078, 3088, 1283, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/5/0x91De7394819FBDe45feD7DA68Ec15cE4F547f50c/sources/project_/contracts/IERC20WithPermit.sol
* @title IERC20WithPermit @notice Interface for the permit function (EIP-2612)/
interface IERC20WithPermit is IERC20 { function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; pragma solidity >=0.4.22 <0.9.0; }
1,901,333
[ 1, 45, 654, 39, 3462, 1190, 9123, 305, 225, 6682, 364, 326, 21447, 445, 261, 41, 2579, 17, 5558, 2138, 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, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 654, 39, 3462, 1190, 9123, 305, 353, 467, 654, 39, 3462, 288, 203, 565, 445, 21447, 12, 203, 3639, 1758, 3410, 16, 203, 3639, 1758, 17571, 264, 16, 203, 3639, 2254, 5034, 460, 16, 203, 3639, 2254, 5034, 14096, 16, 20...
./full_match/4/0xd90627eE192D967e892d2634eCc6bA0EB23daC06/sources/contract-e5b371125d.sol
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is forwarded in {IERC721Receiver-onERC721Received} to contract recipients./
function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), 'ERC721: transfer to non ERC721Receiver implementer'); }
801,079
[ 1, 8650, 487, 288, 22044, 17, 654, 39, 27, 5340, 17, 67, 4626, 49, 474, 17, 2867, 17, 11890, 5034, 17, 20294, 68, 67, 4626, 49, 474, 68, 6487, 598, 392, 3312, 1375, 892, 68, 1569, 1492, 353, 19683, 316, 288, 45, 654, 39, 27, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 565, 445, 389, 4626, 49, 474, 12, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 16, 203, 3639, 1731, 3778, 389, 892, 203, 565, 262, 2713, 5024, 288, 203, 3639, 389, 81, 474, 12, 869, 16, 1147, 548, 1769, 203, 36...
pragma solidity ^0.4.15; /* Crypto Market Prices via Ethereum Smart Contract A community driven smart contract that lets your contracts use fiat amounts in USD, EURO, and GBP. Need to charge $10.50 for a contract call? With this contract, you can convert ETH and other crypto&#39;s. Repo: https:/...
donation function that get forwarded to the contract updater
function donate() external payable { require(msg.value >= 0); sender.transfer(msg.value); }
15,090,006
[ 1, 19752, 367, 445, 716, 336, 19683, 358, 326, 6835, 7760, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2727, 340, 1435, 3903, 8843, 429, 288, 203, 3639, 2583, 12, 3576, 18, 1132, 1545, 374, 1769, 203, 3639, 5793, 18, 13866, 12, 3576, 18, 1132, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x7e321AF42c7e4C9DEa7E6FFC14862cBee1980C29/sources/contracts/core/Basket.sol
@notice withdraw ERC20 in the case a held NFT earned ERC20
function withdrawERC20(address _token, address _to) external override { require(_isApprovedOrOwner(msg.sender, 0), "withdraw:not allowed"); IERC20(_token).safeTransfer(_to, IERC20(_token).balanceOf(address(this))); emit WithdrawERC20(_token, msg.sender); }
2,877,456
[ 1, 1918, 9446, 4232, 39, 3462, 316, 326, 648, 279, 15770, 423, 4464, 425, 1303, 329, 4232, 39, 3462, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 654, 39, 3462, 12, 2867, 389, 2316, 16, 1758, 389, 869, 13, 3903, 3849, 288, 203, 3639, 2583, 24899, 291, 31639, 1162, 5541, 12, 3576, 18, 15330, 16, 374, 3631, 315, 1918, 9446, 30, 902, 2935, 8863, 203, 36...
./full_match/4/0x78B1412CFE3370FF711779a3DB276C4a3B3Bb4F3/sources/contracts/nft/MatrixDao.sol
@notice Set whether to allow reveal requests @param _allowReveal true to allow reveal requests, false to disallow @dev Only owner can do this
function setAllowReveal(bool _allowReveal) external onlyOwner { allowReveal = _allowReveal; }
13,319,346
[ 1, 694, 2856, 358, 1699, 283, 24293, 3285, 225, 389, 5965, 426, 24293, 638, 358, 1699, 283, 24293, 3285, 16, 629, 358, 29176, 225, 5098, 3410, 848, 741, 333, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 7009, 426, 24293, 12, 6430, 389, 5965, 426, 24293, 13, 3903, 1338, 5541, 288, 203, 3639, 1699, 426, 24293, 273, 389, 5965, 426, 24293, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
/* Copyright 2020 dYdX Trading Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed ...
* @title P1Proxy @author dYdX @notice Base contract for proxy contracts, which can be used to provide additional functionality or restrictions when making calls to a Perpetual contract on behalf of a user./
contract P1Proxy { using SafeERC20 for IERC20; function approveMaximumOnPerpetual( address perpetual ) external import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import { I_PerpetualV1 } ...
12,670,340
[ 1, 52, 21, 3886, 225, 302, 61, 72, 60, 225, 3360, 6835, 364, 2889, 20092, 16, 1492, 848, 506, 1399, 358, 5615, 3312, 14176, 225, 578, 17499, 1347, 10480, 4097, 358, 279, 5722, 6951, 1462, 6835, 603, 12433, 6186, 434, 279, 729, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 453, 21, 3886, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 445, 6617, 537, 13528, 1398, 2173, 6951, 1462, 12, 203, 3639, 1758, 1534, 6951, 1462, 203, 565, 262, 203, 3639, 3903, ...
pragma solidity ^0.4.21; import "https://github.com/OpenZeppelin/zeppelin-solidity/contracts/token/ERC721/ERC721Token.sol"; import "https://github.com/Arachnid/solidity-stringutils/strings.sol"; import "https://github.com/OpenZeppelin/zeppelin-solidity/contracts/ownership/Ownable.sol"; contract CarToken is ERC721Toke...
regular type 2 tank size
maxTankSizes[REGULAR_TYPE2] = 70;
1,752,810
[ 1, 16819, 618, 576, 268, 2304, 963, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 943, 56, 2304, 11923, 63, 5937, 19545, 67, 2399, 22, 65, 273, 16647, 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, ...
/** Contract to enable the management of private fungible token (ERC-20) transactions using zk-SNARKs. @Author Westlad, Chaitanya-Konda, iAmMichaelConnor */ pragma solidity ^0.5.8; //TODO: Use openzeppelin interfaces inside the timber service import "./ERC165Compatible.sol"; import "./MerkleTree.sol"; import "./IShie...
array needed to stay below local stack limit
uint256[3] memory gasUsed;
12,730,581
[ 1, 1126, 3577, 358, 23449, 5712, 1191, 2110, 1800, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 63, 23, 65, 3778, 16189, 6668, 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, -1...
/*pragma solidity ^0.5.0; import {HighCardGameState} from './HighCardGameState.sol'; import {IERC20} from '../token/IERC20.sol'; import {SafeMath} from '../math/SafeMath.sol'; contract HeadsUpTables { using SafeMath for uint256; // For Domain Separator bytes32 constant SALT = 0xf1ae92db93da5bd8411028f653...
Verify and unpack final state data
bytes memory encodedNewState = verifySignedStateData(tableID, finalStateData);
7,281,839
[ 1, 8097, 471, 6167, 727, 919, 501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1731, 3778, 3749, 1908, 1119, 273, 3929, 12294, 1119, 751, 12, 2121, 734, 16, 727, 1119, 751, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// File: contracts/src/common/lifecycle/Killable.sol pragma solidity ^0.5.0; /** * A module that allows contracts to self-destruct. */ contract Killable { address payable public _owner; /** * Initialized with the deployer as the owner. */ constructor() internal { _owner = msg.sender; } /** * Self-des...
* @dev Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restor...
library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } function sub(...
6,151,243
[ 1, 24114, 1879, 348, 7953, 560, 1807, 30828, 5295, 598, 3096, 9391, 4271, 18, 27443, 5295, 316, 348, 7953, 560, 2193, 603, 9391, 18, 1220, 848, 17997, 563, 316, 22398, 16, 2724, 5402, 81, 414, 11234, 6750, 716, 392, 9391, 14183, 392, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 14060, 10477, 288, 203, 203, 202, 915, 527, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 202, 202, 11890, 5034, 276, 273, 279, 397, 324, 31, 203, 202, 202, 6528, 12, 7...
// SPDX-License-Identifier: LGPL-3.0-or-later pragma solidity 0.7.6; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Pausable.sol"; import "@openzeppelin/contracts...
* @notice Get the promise ID at specific index @param _idx Index in the array of promise keys @return Promise ID/
function getPromiseKey(uint256 _idx) external view override returns (bytes32) { return promiseKeys[_idx]; }
40,247
[ 1, 967, 326, 5109, 1599, 622, 2923, 770, 225, 389, 3465, 225, 3340, 316, 326, 526, 434, 5109, 1311, 327, 1377, 5835, 1599, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 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, 1689, 4108, 653, 12, 11890, 5034, 389, 3465, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 3849, 203, 3639, 1135, 261, 3890, 1578, 13, 203, 565, 288, 203, 3639, 327, 5109, 2396, 63, 67, 3465, 15533, 203, 565, 289, ...
import 'dapple/test.sol'; import 'database.sol'; import 'dappsys/auth.sol'; import 'initial_controller.sol'; contract DappHubSimpleControllerTest is Test, DSAuthModesEnum { DappHubNameOwnerDB names; DappHubDB packages; DappHubSimpleController controller; Tester T1; address t1; Tester T2; address t2; funct...
Should be able to update the name db by us
function testUpdateNameDb() { var _names = new DappHubNameOwnerDB(); controller.setNameDB(_names); }
1,042,791
[ 1, 14309, 506, 7752, 358, 1089, 326, 508, 1319, 635, 584, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 1842, 1891, 461, 4331, 1435, 288, 203, 565, 569, 389, 1973, 273, 394, 463, 2910, 8182, 461, 5541, 2290, 5621, 203, 565, 2596, 18, 542, 461, 2290, 24899, 1973, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, ...
pragma solidity ^0.4.24; library Utils { //From: https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/AddressUtils.sol /** * Returns whether the target address is a contract * @dev This function will return false if invoked during the constructor of a contract, * as the c...
From: https:github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/AddressUtils.sol
library Utils { function isContract(address addr) internal view returns (bool) { uint256 size; return size > 0; } assembly { size := extcodesize(addr) } function transferPreSignedHashing(address _token, address _to, uint256 _value, uint256 _fee, uint256 _nonce, bytes4 _me...
888,341
[ 1, 1265, 30, 2333, 30, 6662, 18, 832, 19, 3678, 62, 881, 84, 292, 267, 19, 3190, 94, 881, 84, 292, 267, 17, 30205, 560, 19, 10721, 19, 7525, 19, 16351, 87, 19, 1887, 1989, 18, 18281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 6091, 288, 203, 203, 203, 565, 445, 353, 8924, 12, 2867, 3091, 13, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 5034, 963, 31, 203, 3639, 327, 963, 405, 374, 31, 203, 565, 289, 203, 203, 3639, 19931, 288, 963, ...
pragma solidity 0.4.24; contract ExecutionTarget { uint256 public counter; function execute() public { counter += 1; emit Executed(counter); } function setCounter(uint256 x) public { counter = x; } event Executed(uint256 x); } pragma solidity 0.4.24; import "@arago...
* @dev Transfer tokens from one address to another @param _from address The address which you want to send tokens from @param _to address The address which you want to transfer to @param _value uint256 the amount of tokens to be transferred/
function transferFrom( address _from, address _to, uint256 _value ) public returns (bool) { require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); require(_to != address(0)); balances[_from] = balances[_from].sub(_value); ...
13,453,869
[ 1, 5912, 2430, 628, 1245, 1758, 358, 4042, 225, 389, 2080, 1758, 1021, 1758, 1492, 1846, 2545, 358, 1366, 2430, 628, 225, 389, 869, 1758, 1021, 1758, 1492, 1846, 2545, 358, 7412, 358, 225, 389, 1132, 2254, 5034, 326, 3844, 434, 2430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 1265, 12, 203, 3639, 1758, 389, 2080, 16, 203, 3639, 1758, 389, 869, 16, 203, 3639, 2254, 5034, 389, 1132, 203, 565, 262, 1071, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 24899, 1132, 1648, 324, 26488, 63, 67, 2...
/** *Submitted for verification at Etherscan.io on 2021-04-02 */ /** *Submitted for verification at Etherscan.io on 2020-11-11 */ /** *Submitted for verification at Etherscan.io on 2020-02-28 */ /** *Submitted for verification at Etherscan.io on 2020-01-11 */ pragma solidity ^0.5.0; /** * @dev Wrappers over S...
* @title IFlashLoanReceiver interface @notice Interface for the Aave fee IFlashLoanReceiver. @author Aave @dev implement this interface to develop a flashloan-compatible flashLoanReceiver contract/
interface IFlashLoanReceiver { function executeOperation(address _reserve, uint256 _amount, uint256 _fee, bytes calldata _params) external; }
2,063,863
[ 1, 45, 11353, 1504, 304, 12952, 1560, 225, 6682, 364, 326, 432, 836, 14036, 467, 11353, 1504, 304, 12952, 18, 225, 432, 836, 225, 2348, 333, 1560, 358, 17196, 279, 9563, 383, 304, 17, 10943, 9563, 1504, 304, 12952, 6835, 19, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 11353, 1504, 304, 12952, 288, 203, 203, 565, 445, 1836, 2988, 12, 2867, 389, 455, 6527, 16, 2254, 5034, 389, 8949, 16, 2254, 5034, 389, 21386, 16, 1731, 745, 892, 389, 2010, 13, 3903, 31, 203, 97, 203, 2, -100, -100,...
// SPDX-License-Identifier: Apache-2.0 // Example of Voronoi DAO in Solidity, by QRUCIAL OÜ // Setup: One leader (could be CEO, Prime Minister, etc irl) and 10 voters (could be members of the board, etc). // Code state: Beta // Coder: Six pragma solidity ^0.8.11; contract VoronoiDAO { event Transfer(address inde...
The Executive is the one who starts the DAO! Can be modified by voting.
Executive = msg.sender;
14,014,727
[ 1, 1986, 3889, 322, 688, 353, 326, 1245, 10354, 2542, 326, 463, 20463, 5, 4480, 506, 4358, 635, 331, 17128, 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,...
[ 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, 3639, 3889, 322, 688, 273, 1234, 18, 15330, 31, 4766, 1171, 9079, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/137/0x6907136c8f986191a570D080cBEfB4044d5Ab269/sources/MaticRouter.sol
returns sorted token addresses, used to handle return values from pairs sorted in this order
library MaticLibrary { using SafeMath for uint; function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { require(tokenA != tokenB, 'MaticLibrary: IDENTICAL_ADDRESSES'); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA)...
3,745,758
[ 1, 6154, 3115, 1147, 6138, 16, 1399, 358, 1640, 327, 924, 628, 5574, 3115, 316, 333, 1353, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12083, 490, 2126, 9313, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 203, 203, 203, 565, 445, 1524, 5157, 12, 2867, 1147, 37, 16, 1758, 1147, 38, 13, 2713, 16618, 1135, 261, 2867, 1147, 20, 16, 1758, 1147, 21, 13, 288...
./full_match/1/0xFF9CF325bfA593f7dBDBd7a3e21966Ca53cf7d71/sources/contracts/artist/common/simple-minter/IWildXYZMinter.sol
@notice Emitted when given a non-existing groupId
error GroupDoesNotExist(uint256 _groupId);
3,214,368
[ 1, 1514, 11541, 1347, 864, 279, 1661, 17, 11711, 6612, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 555, 3756, 15264, 12, 11890, 5034, 389, 27547, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./partial_match/56/0x871D63C9Ac3030f512BDE1bAdbaeBE6193516125/sources/StrategyJulSwapLP.sol
* @dev Function that has to be called as part of strat migration. It sends all the available funds back to the vault, ready to be migrated to the new strat./
function retireStrat() external { require(msg.sender == vault, "!vault"); IRewardPool(rewardPool).withdraw(balanceOfPool()); uint256 pairBal = IERC20(lpPair).balanceOf(address(this)); IERC20(lpPair).transfer(vault, pairBal); }
11,064,065
[ 1, 2083, 716, 711, 358, 506, 2566, 487, 1087, 434, 609, 270, 6333, 18, 2597, 9573, 777, 326, 2319, 284, 19156, 1473, 358, 326, 9229, 16, 5695, 358, 506, 24741, 358, 326, 394, 609, 270, 18, 19, 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, 565, 445, 325, 577, 1585, 270, 1435, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 9229, 16, 17528, 26983, 8863, 203, 203, 3639, 15908, 359, 1060, 2864, 12, 266, 2913, 2864, 2934, 1918, 9446, 12, 12296, 951, 2864, 10663, ...
./partial_match/1/0xe471958d2d20dACB2a3B97175A7C55d2493CE332/sources/BAOBO.sol
Trade start checkTransfer TokensSet Fee for BuysSet Fee for Sells
function _transfer( address from, address to, uint256 amount ) private { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "Transfer amount must be greater th...
9,270,380
[ 1, 22583, 787, 866, 5912, 13899, 694, 30174, 364, 605, 89, 1900, 694, 30174, 364, 348, 1165, 87, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 3238, 288, 203, 3639, 2583, 12, 2080, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628, 326, ...
./full_match/1/0x2dCdCA085af2E258654e47204e483127E0D8b277/sources/contracts/Vault.sol
if depositLimit = 0 then there is no deposit limit
contract Vault is Ownable, Pausable, DividendToken { using SafeMath for uint256; using SafeERC20 for IERC20Detailed; IERC20Detailed public underlying; IStrat public strat; address public harvester; uint constant MAX_FEE = 10000; uint public depositLimit; uint public lastDistribution; ...
8,413,594
[ 1, 430, 443, 1724, 3039, 273, 374, 1508, 1915, 353, 1158, 443, 1724, 1800, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17329, 353, 14223, 6914, 16, 21800, 16665, 16, 21411, 26746, 1345, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 40, 6372, 31, 203, 203, 565, 467, 65...
/** *Submitted for verification at Etherscan.io on 2022-03-03 */ /** Contract is by captain ike and frens ,--. ,--. ,--.,--. ,---. ,--,--. ,---. ,-' '-. ,--,--.`--',--,--, `--'| |,-. ,---. | .--'' ,-. || .-. |'-. .-'' ,-. |,--.| \ ,--.| /| .-. : \ `--.\ '-' || '-' ' | | \ '-' || || || | | || \ \\ --. `---...
File: contracts/CaptainIke.sol
contract CaptainIke is Ownable, ERC721 { event Mint(uint256 indexed _tokenId); string public _baseTokenURI = mapping(address => bool) public canWithdraw; bool public paused = true; constructor() payable ERC721("CaptainIke", "Icarus") {} function _beforeTokenTransfer( address from, address to, uint256 tokenI...
2,311,664
[ 1, 812, 30, 20092, 19, 26294, 530, 45, 4491, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 385, 1657, 530, 45, 4491, 353, 14223, 6914, 16, 4232, 39, 27, 5340, 288, 203, 871, 490, 474, 12, 11890, 5034, 8808, 389, 2316, 548, 1769, 203, 203, 533, 1071, 389, 1969, 1345, 3098, 273, 203, 2874, 12, 2867, 516, 1426, 1...
./partial_match/1/0x4b4a9706c9D275067f84c1521EFe37D1545cA913/sources/StakefishTransactionFeePool.sol
Add the given validator to the UserSummary. Add uptime for this validator.
function _joinPool( bytes calldata validatorPubKey, address depositor, uint256 joinTime ) internal { require( validatorsInPool[validatorPubKey] == address(0), "Validator already in pool" ); require( depositor != address(0), ...
2,718,735
[ 1, 986, 326, 864, 4213, 358, 326, 2177, 4733, 18, 1436, 23251, 364, 333, 4213, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 5701, 2864, 12, 203, 3639, 1731, 745, 892, 4213, 17924, 16, 203, 3639, 1758, 443, 1724, 280, 16, 203, 3639, 2254, 5034, 1233, 950, 203, 565, 262, 2713, 288, 203, 3639, 2583, 12, 203, 5411, 11632, 382, 2864, 63, 7...
./full_match/80001/0x9f5526D00346a37B5820Ff39314B138792030Aa9/sources/contracts/DAO/TaskDrafts/TaskDraftsSetup.sol
@inheritdoc IPluginSetup Prepare permissions Set permissions to be Revoked.
function prepareUninstallation( address _dao, SetupPayload calldata _payload ) external view returns (PermissionLib.MultiTargetPermission[] memory permissions) { permissions = new PermissionLib.MultiTargetPermission[](2); permissions[0] = PermissionLi...
5,629,912
[ 1, 36, 10093, 467, 3773, 7365, 7730, 4371, 1000, 4371, 358, 506, 14477, 14276, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2911, 31103, 367, 12, 203, 3639, 1758, 389, 2414, 83, 16, 203, 3639, 10939, 6110, 745, 892, 389, 7648, 203, 565, 262, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 5041, 5664, 18, 5002, 2326, 5041, 8526, 3778,...
./full_match/421613/0x8596D7A62b5377D2219a64d9c701dB18d65C3816/sources/src/NFT/interface/IERC721.sol
* @dev Required interface of an ERC721 compliant contract./
interface IERC721 { event Transfer( address indexed from, address indexed to, uint256 indexed tokenId ); event Approval( address indexed owner, address indexed approved, uint256 indexed tokenId ); event ApprovalForAll( address indexed owner, ...
11,569,238
[ 1, 3705, 1560, 434, 392, 4232, 39, 27, 5340, 24820, 6835, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5831, 467, 654, 39, 27, 5340, 288, 203, 565, 871, 12279, 12, 203, 3639, 1758, 8808, 628, 16, 203, 3639, 1758, 8808, 358, 16, 203, 3639, 2254, 5034, 8808, 1147, 548, 203, 565, 11272, 203, 203, 565, 871, 1716, 685, 1125, 12, 203,...