file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
./partial_match/1/0xB985eA1be961f7c4A4C45504444C02c88c4fdEF9/sources/lib/hats-module/src/HatsModule.sol
import { console2 } from "forge-std/Test.sol"; remove before deploy
import { IHats } from "hats-protocol/Interfaces/IHats.sol";
2,750,309
[ 1, 4625, 348, 7953, 560, 30, 225, 1930, 288, 2983, 22, 289, 628, 315, 1884, 908, 17, 5084, 19, 4709, 18, 18281, 14432, 225, 1206, 1865, 7286, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5666, 288, 467, 44, 2323, 289, 628, 315, 76, 2323, 17, 8373, 19, 10273, 19, 45, 44, 2323, 18, 18281, 14432, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./partial_match/1/0xBaBbfEEE65AB0c84337dc223169B2b8c91094f1B/sources/FXCMStake.sol
* @dev Approve `to` to operate on `tokenId` Emits an {Approval} event./ internal owner
bytes memory returndata = to.functionCall( abi.encodeWithSelector( IERC721Receiver(to).onERC721Received.selector, _msgSender(), from, tokenId, _data ), "ERC721: transfer to non ERC721Receiver impl...
2,893,974
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1716, 685, 537, 1375, 869, 68, 358, 20829, 603, 1375, 2316, 548, 68, 7377, 1282, 392, 288, 23461, 97, 871, 18, 19, 2713, 3410, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1731, 3778, 327, 892, 273, 358, 18, 915, 1477, 12, 203, 5411, 24126, 18, 3015, 1190, 4320, 12, 203, 7734, 467, 654, 39, 27, 5340, 12952, 12, 869, 2934, 265, 654, 39, 27, 5340, 8872, 18, 9663, 16, 203, 7734, 389, 3576, 1...
/* β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•— β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•”β•β•β•β•β•β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β•šβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•”β•β•β• β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•— β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β• β•šβ•β• β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•— β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆ...
tracks registered lockers per client account
mapping(address => uint256[]) private clientRegistrations;
1,200,447
[ 1, 4625, 348, 7953, 560, 30, 225, 13933, 4104, 2176, 414, 1534, 1004, 2236, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 63, 5717, 3238, 1004, 20175, 1012, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity 0.4.26; import "./DSMath.sol"; import "./ERC20.sol"; import "./WETH.sol"; import "./UniswapExchangeInterface.sol"; import "./OracleInterface.sol"; import "./MedianizerInterface.sol"; /** * @title Atomic Loans Fund Oracles Contract * @notice Contract for interfacing with Oracles using only ETH * @a...
* @notice Determines the last oracle token payment @param oracle_ Index of oracle @return Last payment to oracle in token (LINK for Chainlink, WETH for Oraclize)/
function billWithEth(uint256 oracle_) public view returns (uint256) { return OracleInterface(med.oracles(oracle_)).bill(); }
12,617,084
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 30778, 326, 1142, 20865, 1147, 5184, 632, 891, 20865, 67, 3340, 434, 20865, 632, 2463, 6825, 5184, 358, 20865, 316, 1147, 261, 10554, 364, 7824, 1232, 16, 678, 1584, 44, 364, 531, 354, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 20714, 1190, 41, 451, 12, 11890, 5034, 20865, 67, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 1377, 327, 28544, 1358, 12, 2937, 18, 10610, 9558, 12, 280, 16066, 67, 13, 2934, 17240, 5621, 203, 225, 289, 203, ...
./full_match/5/0x631CadF9267a7784D690AFa0Bd9128760CF555Cf/sources/contracts/libraries/Transfer.sol
* @dev Returns the receipt digest./
function receiptDigest(bytes32 _domainSeparator, bytes32 _receiptHash) internal pure returns (bytes32) { return _domainSeparator.toTypedDataHash(_receiptHash); }
1,908,488
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 16030, 5403, 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, 225, 445, 16030, 9568, 12, 3890, 1578, 389, 4308, 6581, 16, 1731, 1578, 389, 8606, 8138, 2310, 13, 2713, 16618, 1135, 261, 3890, 1578, 13, 288, 203, 565, 327, 389, 4308, 6581, 18, 869, 11985, 751, 2310, 24899, 8606, 8138, 2310, 1...
./partial_match/1/0xc49E03bDd6809fd168565b26d27d5Cf72F9e9525/sources/EtceteraCrowdsale.sol
@return true if crowdsale is live
function SaleIsLive() public view returns (bool) { return now > startTime && now < endTime; }
3,584,005
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2463, 638, 309, 276, 492, 2377, 5349, 353, 8429, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 348, 5349, 2520, 12328, 1435, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 565, 327, 2037, 405, 8657, 597, 2037, 411, 13859, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.4.18; import "zeppelin-solidity/contracts/token/ERC20/StandardToken.sol"; import "zeppelin-solidity/contracts/ownership/Ownable.sol"; import "./BancorFormula.sol"; /** * @title Bonding Curve * @dev Bonding curve contract based on Bacor formula * inspired by bancor protocol and simondlr * https...
* @dev Buy tokens gas ~ 77825 TODO implement maxAmount that helps prevent miner front-running/
function buy() validGasPrice public payable returns(bool) { require(msg.value > 0); uint256 tokensToMint = calculatePurchaseReturn(totalSupply_, poolBalance, reserveRatio, msg.value); totalSupply_ = totalSupply_.add(tokensToMint); balances[msg.sender] = balances[msg.sender].add(tokensToMint); pool...
5,537,892
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 605, 9835, 2430, 16189, 4871, 2371, 8285, 2947, 2660, 2348, 943, 6275, 716, 21814, 5309, 1131, 264, 6641, 17, 8704, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 30143, 1435, 923, 27998, 5147, 1071, 8843, 429, 1135, 12, 6430, 13, 288, 203, 565, 2583, 12, 3576, 18, 1132, 405, 374, 1769, 203, 565, 2254, 5034, 2430, 774, 49, 474, 273, 4604, 23164, 990, 12, 4963, 3088, 1283, 67, 1...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function a...
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. _Available since v3.4._/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } }
1,354,478
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 10022, 434, 3739, 10415, 2795, 9088, 12321, 16, 598, 279, 16536, 635, 3634, 2982, 18, 389, 5268, 3241, 331, 23, 18, 24, 6315, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 1739, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 6430, 16, 2254, 5034, 13, 288, 203, 3639, 22893, 288, 203, 5411, 309, 261, 70, 422, 374, 13, 327, 261, 5743, 16, 374, 1769, 203, 5411, ...
./partial_match/56/0x26D97f19915F88aD163fF5954C4A806aeC448Cc4/sources/TalonsPool.sol
Update reward variables of the given pool to be up-to-date.
function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.number <= pool.lastRewardBlock) { return; } uint256 talonsSupply = talons.balanceOf(address(this)); if (talonsSupply == 0) { pool.lastRewardBlock = block.numbe...
11,136,768
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 19890, 3152, 434, 326, 864, 2845, 358, 506, 731, 17, 869, 17, 712, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1089, 2864, 12, 11890, 5034, 389, 6610, 13, 1071, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 309, 261, 2629, 18, 2696, 1648, 2845, 18, 2722, 17631, 1060, 1768, 13, 288, 203, ...
// File: contracts/upgradeability/EternalStorage.sol pragma solidity 0.7.5; /** * @title EternalStorage * @dev This contract holds all the necessary state variables to carry out the storage of any contract. */ contract EternalStorage { mapping(bytes32 => uint256) internal uintStorage; mapping(bytes32 => st...
* @dev Executes action on deposit of ERC721 token. @param _token address of the ERC721 token contract. @param _from address of token sender. @param _receiver address of token receiver on the other side. @param _tokenId unique id of the bridged token./ verify that token was indeed transferred
function bridgeSpecificActionsOnTokenTransfer( address _token, address _from, address _receiver, uint256 _tokenId ) internal override { require(IERC721(_token).ownerOf(_tokenId) == address(this)); if (!isTokenRegistered(_token)) { _setNativeTokenIsReg...
13,489,636
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3889, 993, 1301, 603, 443, 1724, 434, 4232, 39, 27, 5340, 1147, 18, 632, 891, 389, 2316, 1758, 434, 326, 4232, 39, 27, 5340, 1147, 6835, 18, 632, 891, 389, 2080, 1758, 434, 1147, 5793, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9969, 6100, 1398, 1345, 5912, 12, 203, 3639, 1758, 389, 2316, 16, 203, 3639, 1758, 389, 2080, 16, 203, 3639, 1758, 389, 24454, 16, 203, 3639, 2254, 5034, 389, 2316, 548, 203, 565, 262, 2713, 3849, 288, 203, 3639,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.1; //this contract creates campaigns and tracks the campaigns that have been deployed contract CampaignFactory { //stores deployed campaigns in array address[] public deployedContracts; //creates campaign and adds it to the array for tracking functi...
validates the minimum contribution amount is sent to the Campaign contractadds the contributors address to the approver array and increments the approver count by 1
function contribute() public payable { require( msg.value >= minimumContribution, "You must contribute a minimum amount of wei" ); approvers[msg.sender] = true; approversCount++; emit CampaignAction("Contribution was made"); }
12,871,537
[ 1, 4625, 348, 7953, 560, 30, 11964, 326, 5224, 24880, 3844, 353, 3271, 358, 326, 17820, 6835, 25428, 326, 13608, 13595, 1758, 358, 326, 6617, 502, 526, 471, 17071, 326, 6617, 502, 1056, 635, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 356, 887, 1435, 1071, 8843, 429, 288, 203, 3639, 2583, 12, 203, 5411, 1234, 18, 1132, 1545, 5224, 442, 4027, 16, 203, 5411, 315, 6225, 1297, 356, 887, 279, 5224, 3844, 434, 732, 77, 6, 203, 3639, 11272, 203, 203, 3639...
pragma solidity 0.4.24; interface ITokenContract { function balanceOf(address _owner) external view returns (uint256 balance); function transfer( address _to, uint256 _amount ) external returns (bool success); function transferFrom( address _fr...
*@dev Checks whether the signatures are valid or not and marks signers as having "voted"./ Follows ERC191 signature scheme: https:github.com/ethereum/EIPs/issues/191
function _verifySignatures( uint8[] sigV, bytes32[] sigR, bytes32[] sigS, bytes32 scriptHash, address[] destinations, uint256[]amounts ) private { require(sigR.length == sigS.length, "R,S length mismatch"); require(sigR.length == sigV.l...
12,619,097
[ 1, 4625, 348, 7953, 560, 30, 380, 36, 5206, 13074, 2856, 326, 14862, 854, 923, 578, 486, 471, 13999, 1573, 414, 487, 7999, 315, 90, 16474, 9654, 19, 16093, 87, 4232, 39, 30380, 3372, 4355, 30, 2333, 30, 6662, 18, 832, 19, 546, 822...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 8705, 23918, 12, 203, 3639, 2254, 28, 8526, 3553, 58, 16, 203, 3639, 1731, 1578, 8526, 3553, 54, 16, 203, 3639, 1731, 1578, 8526, 3553, 55, 16, 203, 3639, 1731, 1578, 2728, 2310, 16, 203, 3639, 1758, 8526, 20456, ...
./full_match/4/0x1d50a1bAfEa591435101E0486bB6af3211c764Cd/sources/ballot.sol
require a valid candidate
require (_candidateId > 0 && _candidateId <= candidatesCount);
686,525
[ 1, 4625, 348, 7953, 560, 30, 225, 2583, 279, 923, 5500, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 202, 6528, 261, 67, 19188, 548, 405, 374, 597, 389, 19188, 548, 1648, 7965, 1380, 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...
./full_match/80001/0x2dB3C430D7cA1A372c0Fe1994F3d82715b2B10A7/sources/project_/contracts/TokenSale.sol
A very large multiplier means you can support many decimals wallet of developer
contract TokenSale is Ownable { using SafeMath for uint256; uint256 public constant MULTIPLIER = 1e6; address public developer; address public fund; address public dev; address public marketing; address public expenses; address public btcInvest; uint256 public fundPercent = 350;...
860,063
[ 1, 4625, 348, 7953, 560, 30, 225, 432, 8572, 7876, 15027, 4696, 1846, 848, 2865, 4906, 15105, 9230, 434, 8751, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3155, 30746, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2254, 5034, 1071, 5381, 31385, 2053, 654, 273, 404, 73, 26, 31, 203, 203, 203, 565, 1758, 1071, 8751, 31, 203, 203, 565,...
./full_match/80001/0x271e7Ba38970356FBbE4b57912b76325F3C8731e/sources/contracts/ERC1155TokenIds.sol
* @title VF ids and ERC-1155 commitment-balance ids @author 🎲🎲 <dev@doubledice.com> @notice Logic for VirtualFloor (VF) ids, and for ERC-1155 token-ids representing commitments on specific VF-outcome-timeslot combinations. @dev Both VF ids and VF-outcome-timeslot ids are uint256. The lower 5 bytes of a VF id are alwa...
library ERC1155TokenIds { using SafeCastUpgradeable for uint256; function isValidVirtualFloorId(uint256 value) internal pure returns (bool) { return value >> ((8 + 1 + 4) * 8) == 0x01 && value & 0xff_ff_ff_ff_ff == 0; } function extractVirtualFloorId(uint256 erc1155TokenId) internal pure ret...
5,639,007
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 776, 42, 3258, 471, 4232, 39, 17, 2499, 2539, 23274, 17, 12296, 3258, 632, 4161, 225, 177, 258, 241, 115, 177, 258, 241, 115, 411, 5206, 36, 9056, 72, 1812, 18, 832, 34, 632, 20392, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4232, 39, 2499, 2539, 1345, 2673, 288, 203, 203, 565, 1450, 14060, 9735, 10784, 429, 364, 2254, 5034, 31, 203, 203, 203, 565, 445, 4908, 6466, 42, 5807, 548, 12, 11890, 5034, 460, 13, 2713, 16618, 1135, 261, 6430, 13, 288,...
./full_match/1/0x48deE19C0e44c147934702c12dc98963CA831009/sources/src/Asset/ERC1155ERC721.sol
@notice check whether address `who` is given minting bouncer rights. @param who The address to query. @return whether the address has minting rights.
function isBouncer(address who) external view returns(bool) { return _bouncers[who]; } event MetaTransactionProcessor(address metaTransactionProcessor, bool enabled);
4,919,183
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 866, 2856, 1758, 1375, 3350, 83, 68, 353, 864, 312, 474, 310, 324, 465, 2750, 14989, 18, 632, 891, 10354, 1021, 1758, 358, 843, 18, 632, 2463, 2856, 326, 1758, 711, 312, 474, 310, 1498...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 27057, 465, 2750, 12, 2867, 10354, 13, 3903, 1476, 1135, 12, 6430, 13, 288, 203, 3639, 327, 389, 70, 465, 13062, 63, 3350, 83, 15533, 203, 565, 289, 203, 203, 565, 871, 6565, 3342, 5164, 12, 2867, 2191, 3342, 5164, 16...
./partial_match/1/0x9e376F30D4e47Cc4f792BfC682caeb5dc76155f7/sources/MarketCreationRewards.sol
* @dev function to update address parameters/
function updateAddressParameters(bytes8 code, address payable value) external onlyAuthorizedToGovern { clGasPriceAggregator = IChainLinkOracle(value); }
15,474,615
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 445, 358, 1089, 1758, 1472, 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, 1089, 1887, 2402, 12, 3890, 28, 981, 16, 1758, 8843, 429, 460, 13, 3903, 1338, 15341, 774, 43, 1643, 82, 288, 203, 3639, 927, 27998, 5147, 17711, 273, 467, 3893, 2098, 23601, 12, 1132, 1769, 203, 1377, 289, 203, 2, -1...
./partial_match/56/0x4D51d8c5e05b4226Ae623295f82E279e013376aB/sources/MasterChefV2.sol
YELLOW tokens created per block.
uint256 public yellowPerBlock;
11,253,023
[ 1, 4625, 348, 7953, 560, 30, 225, 1624, 2247, 4130, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 20614, 2173, 1768, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
//File: node_modules\openzeppelin-solidity\contracts\ownership\Ownable.sol pragma solidity ^0.4.23; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address...
* @dev Mints unlocked tokens to unlockedLiquidityWallet and assings tokens to be held into the internal reserve vault contracts. To be called by the crowdsale's owner only./
function mintPreAllocatedTokens() public onlyOwner { mintTokens(pgoUnlockedLiquidityWallet, PGO_UNLOCKED_LIQUIDITY_CAP); mintTokens(address(pgoVault), PGO_INTERNAL_RESERVE_CAP); }
12,122,068
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 490, 28142, 25966, 2430, 358, 25966, 48, 18988, 24237, 16936, 471, 1551, 899, 2430, 358, 506, 15770, 1368, 326, 2713, 20501, 9229, 20092, 18, 2974, 506, 2566, 635, 326, 276, 492, 2377, 5349...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 474, 1386, 29392, 5157, 1435, 1071, 1338, 5541, 288, 203, 3639, 312, 474, 5157, 12, 84, 3240, 7087, 329, 48, 18988, 24237, 16936, 16, 453, 16387, 67, 2124, 6589, 2056, 67, 2053, 53, 3060, 4107, 67, 17296, 1769, 203...
./full_match/1/0x0966016C5E13cFa073f3f5100f84Ae2732b7bFa3/sources/contracts/Verifier.sol
Returns the address that signed a given string message
function _verifyString( string memory message, Signature memory signature ) internal pure returns (address signer) { bytes32 hash = keccak256(abi.encodePacked(message)); bytes32 messageDigest = keccak256( abi.encodePacked("\x19Ethereum Signed Message:\n32", hash) ...
3,163,966
[ 1, 4625, 348, 7953, 560, 30, 225, 2860, 326, 1758, 716, 6726, 279, 864, 533, 883, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8705, 780, 12, 203, 3639, 533, 3778, 883, 16, 203, 3639, 9249, 3778, 3372, 203, 565, 262, 2713, 16618, 1135, 261, 2867, 10363, 13, 288, 203, 3639, 1731, 1578, 1651, 273, 417, 24410, 581, 5034, 12, 21457, 18, 3015, ...
./full_match/44787/0x9d7906A7B2b085B0C40362812Fc813C8142a3791/sources/project_/contracts/UnergyLogicOperation.sol
@dev Scaled value by 1e6, if depreciation value is 1% then _depreciationPercentage input will be 1e6; @dev Scaled value by 1e6, if depreciation value is 1% then _depreciationPercentage input will be 1e6;
function externalInvoiceReport( address _projectAddr, uint256 _energyDelta, uint256 _energyTariff, uint256 _depreciationPercentage ) public whenNotPaused hasRoleInPermissionGranter(msg.sender, "externalInvoiceReport") { invoiceReport( ...
13,282,076
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 348, 12825, 460, 635, 404, 73, 26, 16, 309, 443, 4036, 7072, 460, 353, 404, 9, 1508, 389, 323, 4036, 7072, 16397, 810, 903, 506, 404, 73, 26, 31, 632, 5206, 348, 12825, 460, 635, 404,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3903, 10467, 4820, 12, 203, 3639, 1758, 389, 4406, 3178, 16, 203, 3639, 2254, 5034, 389, 15358, 9242, 16, 203, 3639, 2254, 5034, 389, 15358, 20464, 3048, 16, 203, 3639, 2254, 5034, 389, 323, 4036, 7072, 16397, 203, 565, ...
// SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.0; interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Mo...
* @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used throug...
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() { _owner = msg.sender; emit OwnershipTransferred(address(0), _owner); ...
161,327
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13456, 1605, 1492, 8121, 279, 5337, 2006, 3325, 12860, 16, 1625, 1915, 353, 392, 2236, 261, 304, 3410, 13, 716, 848, 506, 17578, 12060, 2006, 358, 2923, 4186, 18, 2525, 805, 16, 326, 3410...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14223, 6914, 353, 1772, 288, 203, 565, 1758, 3238, 389, 8443, 31, 203, 565, 1758, 3238, 389, 11515, 5541, 31, 203, 565, 2254, 5034, 3238, 389, 739, 950, 31, 203, 203, 565, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808...
pragma solidity ^0.8.12; contract Election { struct Candidate { uint candidateID; string candidateName; uint voteCount; } struct Voter { bool authorized; //check if voter/user is authorized bool voted; ...
Will use this instead of above constructorsmart contract constructor
constructor(string memory _name) public { electionName = _name; }
1,043,243
[ 1, 4625, 348, 7953, 560, 30, 225, 9980, 999, 333, 3560, 434, 5721, 19874, 81, 485, 6835, 3885, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 1080, 3778, 389, 529, 13, 1071, 288, 203, 3639, 25526, 461, 273, 389, 529, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.4.18; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner...
* @dev transfer token for a specified address @param _to The address to transfer to. @param _value The amount to be transferred./ SafeMath.sub will throw if there is not enough balance.
function transfer(address _to, uint256 _value) public whenMintingFinished returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); ...
6,882,857
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 7412, 1147, 364, 279, 1269, 1758, 632, 891, 389, 869, 1021, 1758, 358, 7412, 358, 18, 632, 891, 389, 1132, 1021, 3844, 358, 506, 906, 4193, 18, 19, 14060, 10477, 18, 1717, 903, 604, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 7412, 12, 2867, 389, 869, 16, 2254, 5034, 389, 1132, 13, 1071, 1347, 49, 474, 310, 10577, 1135, 261, 6430, 13, 288, 203, 565, 2583, 24899, 869, 480, 1758, 12, 20, 10019, 203, 565, 2583, 24899, 1132, 1648, 324, 26488, ...
./partial_match/56/0x605b391099D88F67E0B2e6ACDe16B633dFD266C4/sources/project_/contracts/Graphene.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract Graphene is Initializable, ContextUpgradeable, IERC20Upgradeable, OwnableUpgradeable { using SafeMathUpgradeable for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string priva...
11,157,500
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5601, 4009, 353, 10188, 6934, 16, 1772, 10784, 429, 16, 467, 654, 39, 3462, 10784, 429, 16, 14223, 6914, 10784, 429, 288, 203, 565, 1450, 14060, 10477, 10784, 429, 364, 2254, 5034, 31, 203, 203, 565, 2874, 261, 2867, 516, ...
./full_match/4/0xDC750c9a411e3BfA0fB0Dd1248251D5831321352/sources/cache/solpp-generated-contracts/ZkSync.sol
wtg11 - ERC20 transfer fails
require(Utils.sendERC20(token, _to, _amount), "wtg11");
749,329
[ 1, 4625, 348, 7953, 560, 30, 225, 18201, 75, 2499, 300, 4232, 39, 3462, 7412, 6684, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 12, 1989, 18, 4661, 654, 39, 3462, 12, 2316, 16, 389, 869, 16, 389, 8949, 3631, 315, 6046, 75, 2499, 8863, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.13; import "./AccessControl.sol"; import "./FiatContractInterface.sol"; /** * @title StockRoomBase * @notice Defines collections, mappings, and structs for the StockRoom side of the In-game Pro Shop System */ contract StockRoomBase is AccessControl { FiatContractInterface internal fiatCo...
* @dev Mapping of Shop ID to SKU Type list/
mapping (uint256 => uint256[]) public shopSKUTypes;
12,855,007
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 9408, 434, 17568, 1599, 358, 29469, 1412, 666, 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, 2874, 261, 11890, 5034, 516, 2254, 5034, 63, 5717, 1071, 12122, 11129, 1693, 989, 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, ...
./full_match/1/0x0000000000F7A60F1C88F317f369e3D8679C6689/sources/contracts/tokens/ERC721/Layerr721.sol
* @inheritdoc ILayerr721/
function airdrop(address[] calldata recipients, uint256[] calldata tokenIds) external onlyOwner { for(uint256 index = 0;index < recipients.length;) { _mint(msg.sender, recipients[index], tokenIds[index]); } }
17,130,900
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 10093, 467, 48, 528, 370, 27, 5340, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 279, 6909, 1764, 12, 2867, 8526, 745, 892, 12045, 16, 2254, 5034, 8526, 745, 892, 1147, 2673, 13, 3903, 1338, 5541, 288, 203, 203, 3639, 364, 12, 11890, 5034, 770, 273, 374, 31, 1615, 411, 12045, 18, 2469, 30943, 288, ...
//Address: 0xcc992b0bb9789e4e323bef8b7241ffe85487c2a6 //Contract name: DCAssetBackend //Balance: 0 Ether //Verification Date: 9/15/2016 //Transacion Count: 65 // CODE STARTS HERE contract Assertive { function assert(bool assertion) { if (!assertion) throw; } } contract TokenRecipient { function receiveApp...
* @notice Transfer `_amount` from `msg.sender.address()` to `_to`. @param _to Address that will receive. @param _amount Amount to be transferred./
function transfer(address _to, uint256 _amount) returns (bool success) { assert(allowTransactions); assert(!frozenAccount[msg.sender]); assert(balanceOf[msg.sender] >= _amount); assert(balanceOf[_to] + _amount >= balanceOf[_to]); activateAccount(msg.sender); activateAccount(_to); balanceOf...
1,030,482
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 12279, 1375, 67, 8949, 68, 628, 1375, 3576, 18, 15330, 18, 2867, 20338, 358, 1375, 67, 869, 8338, 632, 891, 389, 869, 5267, 716, 903, 6798, 18, 632, 891, 389, 8949, 16811, 358, 506, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 7412, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1135, 261, 6430, 2216, 13, 288, 203, 565, 1815, 12, 5965, 14186, 1769, 203, 565, 1815, 12, 5, 28138, 3032, 63, 3576, 18, 15330, 19226, 203, 565, 1815, 12, 12296...
./full_match/80001/0x5D934c670D2B97f2a391EDDf5ab127e4ECfaFd10/sources/contracts/DutchAuction/anft.sol
Auction memory auction = tokenIdToAuction[tokenId];
function cancelAuctionByAuctionId(uint256 _auctionId) public { }
5,555,002
[ 1, 4625, 348, 7953, 560, 30, 225, 432, 4062, 3778, 279, 4062, 273, 1147, 28803, 37, 4062, 63, 2316, 548, 15533, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3755, 37, 4062, 858, 37, 4062, 548, 12, 11890, 5034, 389, 69, 4062, 548, 13, 1071, 288, 203, 203, 1377, 203, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import { Owned } from "@rari-capital/solmate/src/auth/Owned.sol"; import { ERC20 } from "@rari-capital/solmate/src/tokens/ERC20.sol"; import { ERC721 } from "@rari-capital/solmate/src/tokens/ERC721.sol"; /** * @title RetroReceiver * @notice RetroReceiver is a ...
* @title RetroReceiver @notice RetroReceiver is a minimal contract for receiving funds, meant to be deployed at the same address on every chain that supports EIP-2470./
contract RetroReceiver is Owned { event ReceivedETH(address indexed from, uint256 amount); event WithdrewETH(address indexed withdrawer, address indexed recipient, uint256 amount); event WithdrewERC20( address indexed withdrawer, address indexed recipient, address indexed asset, ...
6,367,391
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 17100, 303, 12952, 632, 20392, 17100, 303, 12952, 353, 279, 16745, 6835, 364, 15847, 284, 19156, 16, 20348, 358, 506, 19357, 622, 326, 1967, 1758, 603, 3614, 2687, 716, 6146, 512, 2579, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 17100, 303, 12952, 353, 14223, 11748, 288, 203, 565, 871, 21066, 1584, 44, 12, 2867, 8808, 628, 16, 2254, 5034, 3844, 1769, 203, 203, 565, 871, 3423, 72, 16052, 1584, 44, 12, 2867, 8808, 598, 9446, 264, 16, 1758, 8808, 802...
pragma solidity >=0.5.4 <0.6.0; interface tokenRecipient { function RECEIVEAPPROVAL172(address _from, uint256 _value, address _token, bytes calldata _extraData) external; } //inject NONSTANDARD NAMING library SafeMath { ...
1000000 = 1 inject NONSTANDARD NAMING
uint256 constant private _multiplier_divisor322 = 10 ** 6;
13,026,370
[ 1, 4625, 348, 7953, 560, 30, 225, 15088, 273, 404, 202, 22170, 18708, 882, 18264, 423, 2192, 1360, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 11890, 5034, 5381, 3238, 389, 20538, 67, 2892, 12385, 1578, 22, 273, 1728, 2826, 1666, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/3/0xbEA8640d3DFB6003150e345F8d91F22Eb6405cE9/sources/browser/Contracts/RoyaleLPVariables.sol
storage realated to loan contract
address public loanContract;
14,214,197
[ 1, 4625, 348, 7953, 560, 30, 2502, 2863, 690, 358, 28183, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 377, 1758, 1071, 28183, 8924, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.8; import "./interfaces/IStrategy.sol"; import "./interfaces/IUniswapV2Pair.sol"; import "./interfaces/IBentoBoxMinimal.sol"; import "./libraries/UniswapV2Library.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts...
@notice Minimal interface for BentoBox token vault interactions - `token` is aliased as `address` from `IERC20` for code simplicity.
interface IBentoBoxMinimal { struct Rebase { uint128 elastic; uint128 base; } struct StrategyData { uint64 strategyStartDate; uint64 targetPercentage; } }
1,183,045
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 5444, 2840, 1560, 364, 605, 29565, 3514, 1147, 9229, 23877, 300, 1375, 2316, 68, 353, 19218, 487, 1375, 2867, 68, 628, 1375, 45, 654, 39, 3462, 68, 364, 981, 3142, 20458, 18, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 23450, 29565, 3514, 2930, 2840, 288, 203, 203, 203, 565, 1958, 868, 1969, 288, 203, 3639, 2254, 10392, 10465, 31, 203, 3639, 2254, 10392, 1026, 31, 203, 565, 289, 203, 203, 565, 1958, 19736, 751, 288, 203, 3639, 2254, 1105, ...
/* * Copyright 2021 ConsenSys Software 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...
* Balance assuming all provisional withdraws are applied and no provisional deposits are applied./ There are no checks for balance going negative as this should be impossible.
function balanceOfMin(address account) public view returns (uint256) { uint256 acc = uint256(uint160(account)); uint256 balance = 0; for (uint256 i = 0; i < accountPallelizationFactor; i++) { balance += getDoubleMapValueCommitted(BALANCES_ADD, acc, i); } for (uint...
5,480,331
[ 1, 4625, 348, 7953, 560, 30, 380, 30918, 15144, 777, 10595, 287, 598, 9446, 87, 854, 6754, 471, 1158, 10595, 287, 443, 917, 1282, 854, 6754, 18, 19, 6149, 854, 1158, 4271, 364, 11013, 8554, 6092, 487, 333, 1410, 506, 23343, 18, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 11013, 951, 2930, 12, 2867, 2236, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 4078, 273, 2254, 5034, 12, 11890, 16874, 12, 4631, 10019, 203, 3639, 2254, 5034, 11013, 273, 374, 31, 203, 3639, ...
./full_match/1/0xe63E8226095C7AE90D1e46636740d8A9998AD191/sources/contracts/LibDiamond.sol
These functions are expected to be called frequently by tools.
function diamondCut( FacetCut[] calldata _diamondCut, address _init, bytes calldata _calldata ) external; event DiamondCut(FacetCut[] _diamondCut, address _init, bytes _calldata); } struct Facet { address facetAddress; bytes4[] functionSelectors; }
3,029,055
[ 1, 4625, 348, 7953, 560, 30, 225, 8646, 4186, 854, 2665, 358, 506, 2566, 13821, 23351, 635, 8513, 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...
[ 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, 4314, 301, 1434, 15812, 12, 203, 3639, 31872, 15812, 8526, 745, 892, 389, 3211, 301, 1434, 15812, 16, 203, 3639, 1758, 389, 2738, 16, 203, 3639, 1731, 745, 892, 389, 1991, 892, 203, 565, 262, 3903, 31, 203, 203, 565, ...
./full_match/97/0xfD77CC4b5f5A745481747e93167C9B114dA5d539/sources/project_/contracts/ForzaPresale.sol
* @dev Returns the multiplication of two unsigned integers, with an overflow flag. _Available since v3.4._/ Gas optimization: this is cheaper than requiring 'a' not being zero, but the benefit is lost if 'b' is also tested. See: https:github.com/OpenZeppelin/openzeppelin-contracts/pull/522
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } }
3,284,182
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 23066, 434, 2795, 9088, 12321, 16, 598, 392, 9391, 2982, 18, 389, 5268, 3241, 331, 23, 18, 24, 6315, 19, 31849, 14850, 30, 333, 353, 19315, 7294, 2353, 29468, 296, 69, 11, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 377, 445, 775, 27860, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 6430, 16, 2254, 5034, 13, 288, 203, 540, 22893, 288, 203, 2398, 309, 261, 69, 422, 374, 13, 327, 261, 3767, 16, 374, 1769, 203, 2398, ...
./full_match/1/0x41cB4a771FdD019ADBF4685bd4885fbBeedE1784/sources/contracts/EvilNoundlesVRF.sol
Mint your evil noundle. Verify request. Make sure that the wallet is holding at least 1 noundle. require(Originals.getNoundlesFromWallet(msg.sender).length > 0, "You must hold at least one Noundle to mint"); Burn the rainbows. Mark it as they already got theirs. Add to our free mint count. Mint it.
function claimEvilNoundle() public payable isPhaseOneStarted { require(evilNoundleMint + 1 <= MAX_FREE_EVIL_MINTS, "We ran out of evil noundles :("); require(evilNoundleAllowed[msg.sender], "You are not on whitelist"); require(evilNoundleMinted[msg.sender] == false, "Y...
3,121,469
[ 1, 4625, 348, 7953, 560, 30, 225, 490, 474, 3433, 2113, 330, 290, 772, 298, 18, 8553, 590, 18, 4344, 3071, 716, 326, 9230, 353, 19918, 622, 4520, 404, 290, 772, 298, 18, 2583, 12, 7571, 1031, 18, 588, 50, 772, 1040, 1265, 16936, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7516, 20861, 330, 50, 772, 298, 1435, 1071, 8843, 429, 353, 11406, 3335, 9217, 288, 203, 203, 3639, 2583, 12, 14965, 330, 50, 772, 298, 49, 474, 397, 404, 1648, 4552, 67, 28104, 67, 24427, 2627, 67, 49, 3217, 55, 16, ...
pragma solidity 0.6.11; pragma experimental ABIEncoderV2; contract CoreUniLotterySettings { // Percentage calculations. // As Solidity doesn't have floats, we have to use integers for // percentage arithmetics. // We set 1 percent to be equal to 1,000,000 - thus, we // simulate 6 decimal poi...
Use data from Uniswap pair contract.
function getReserves() external view returns( uint _ethReserve, uint _tokenReserve ) { ( uint112 res0, uint112 res1, ) = IUniswapPair( exchangeAddress ).getReserves(); if( uniswap_ethFirst ) return ( ...
7,490,250
[ 1, 4625, 348, 7953, 560, 30, 225, 2672, 501, 628, 1351, 291, 91, 438, 3082, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 31792, 264, 3324, 1435, 7010, 203, 4766, 13491, 3903, 1476, 203, 203, 565, 1135, 12, 2254, 389, 546, 607, 6527, 16, 2254, 389, 2316, 607, 6527, 262, 203, 203, 565, 288, 203, 203, 203, 3639, 261, 2254, 17666, 400, 20, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //IERC721MultiClass interface import "./../interfaces/IERC721MultiClassFees.sol"; //abstraction of ERC721MultiClass import "./ERC721MultiClass.sol"; /** * @dev Abstract extension of ERC721MultiClass that attaches royalty fees */ abstract contract ERC721MultiC...
* @dev Removes a fee/this is for the benefit of the sender so theydont have to pay gas on things that dont matterdeduct total feesremove fees from the mapTricky logic to remove an element from an array...if there are at least 2 elements in the array,find the recipientmove the last element to the deleted element
function _deallocateFee(uint256 classId, address recipient) internal virtual { require( _fee[classId][recipient] != 0, "ERC721MultiClassFees: Recipient has no fees" ); _fees[classId] -= _fee[classId][recipient]; delete _fee[classId][recipient]; if (_recipients[classId].length > 1) { ...
12,952,922
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 20284, 279, 14036, 19, 2211, 353, 364, 326, 27641, 7216, 434, 326, 5793, 1427, 2898, 72, 1580, 1240, 358, 8843, 16189, 603, 9198, 716, 14046, 15177, 785, 853, 2078, 1656, 281, 4479, 1656, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 389, 323, 16247, 14667, 12, 11890, 5034, 31181, 16, 1758, 8027, 13, 2713, 5024, 288, 203, 565, 2583, 12, 203, 1377, 389, 21386, 63, 1106, 548, 6362, 20367, 65, 480, 374, 16, 203, 1377, 315, 654, 39, 27, 5340, 5002, 79...
./full_match/3/0x9e570c99d6AdA14E8A8f2A54D6E4895d51ecD6ab/sources/browser/github/radicle-dev/radicle-contracts/contracts/Pool.sol
@notice The address of the ERC-20 contract which tokens the pool works with @param cycleSecs The length of cycleSecs to be used in the contract instance. Low values make funds more available by shortening the average duration of tokens being frozen between being taken from senders' balances and being collectable by th...
constructor(uint64 cycleSecs, IERC20 _erc20) Pool(cycleSecs) { erc20 = _erc20; }
14,129,600
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1021, 1758, 434, 326, 4232, 39, 17, 3462, 6835, 1492, 2430, 326, 2845, 6330, 598, 632, 891, 8589, 25059, 1021, 769, 434, 8589, 25059, 358, 506, 1399, 316, 326, 6835, 791, 18, 23629, 924,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 3885, 12, 11890, 1105, 8589, 25059, 16, 467, 654, 39, 3462, 389, 12610, 3462, 13, 8828, 12, 13946, 25059, 13, 288, 203, 3639, 6445, 71, 3462, 273, 389, 12610, 3462, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -...
pragma solidity 0.5.6; // Copyright BigchainDB GmbH and Ocean Protocol contributors // SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) // Code is Apache-2.0 and docs are CC-BY-4.0 import 'openzeppelin-eth/contracts/math/SafeMath.sol'; /** * @title Epoch Library * @author Ocean Protocol Team * * @dev Implement...
* @notice getEpochTimeLock @param _self is the Epoch storage pointer/
function getEpochTimeLock( Epoch storage _self ) public view returns (uint256) { return _self.timeLock.add(_self.blockNumber); }
5,355,730
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4774, 6127, 950, 2531, 632, 891, 389, 2890, 353, 326, 512, 6127, 2502, 4407, 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, 4774, 6127, 950, 2531, 12, 203, 3639, 512, 6127, 2502, 389, 2890, 203, 565, 262, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 327, 389, 2890, 18, 957, 2531, 18, 12...
/** *Submitted for verification at Etherscan.io on 2022-05-02 */ // SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; contract Authorizable { // This contract allows a flexible authorization scheme // The owner who can change authorization status address public owner; // A mapping from an ...
@notice shows the entire array of vault/wrapper pairs @return the entire array of struct pairs
function viewRegistry() external view returns (address[] memory) { return wrappers; }
7,982,983
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 17975, 326, 7278, 526, 434, 9229, 19, 8376, 5574, 632, 2463, 326, 7278, 526, 434, 1958, 5574, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1476, 4243, 1435, 3903, 1476, 1135, 261, 2867, 8526, 3778, 13, 288, 203, 3639, 327, 21589, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/80001/0xdCdf0B3d68A4E11eF2703b87020dC5a9c66babf7/sources/@superfluid-finance/ethereum-contracts/contracts/apps/SuperTokenV1Library.sol
* @dev Delete flow without userData @param token The token used in flow @param sender The sender of the flow @param receiver The receiver of the flow/
function deleteFlow(ISuperToken token, address sender, address receiver) internal returns (bool) { return deleteFlow(token, sender, receiver, new bytes(0)); }
855,941
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2504, 4693, 2887, 13530, 632, 891, 1147, 1021, 1147, 1399, 316, 4693, 632, 891, 5793, 1021, 5793, 434, 326, 4693, 632, 891, 5971, 1021, 5971, 434, 326, 4693, 19, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 1430, 5249, 12, 45, 8051, 1345, 1147, 16, 1758, 5793, 16, 1758, 5971, 13, 203, 3639, 2713, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 327, 1430, 5249, 12, 2316, 16, 5793, 16, 5971, 16, 394, 1731, 12, 20, 10019, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contrac...
* @dev Execute the logic required to equip a single item. This involves: 1. Checking that the component contract is registered 2. Check that the item type is valid 3. Mark the new item as equipped 4. Transfer the new item to this contract 5. Transfer the old item back to the owner/ Get current item Equip the new item P...
function _equip( uint256 _tokenId, address _itemAddress, uint256 _itemId ) internal { require(registry.isValidContract(_itemAddress), "Adventurer: Item contract must be in the registry"); string memory itemType = ILootmart(_itemAddress).itemTypeFor(_itemId); require(registry.isValidItemType...
1,739,520
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 7903, 326, 4058, 1931, 358, 1298, 625, 279, 2202, 761, 18, 1220, 29876, 3324, 30, 404, 18, 24471, 716, 326, 1794, 6835, 353, 4104, 576, 18, 2073, 716, 326, 761, 618, 353, 923, 890, 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, 225, 445, 389, 14298, 625, 12, 203, 565, 2254, 5034, 389, 2316, 548, 16, 203, 565, 1758, 389, 1726, 1887, 16, 203, 565, 2254, 5034, 389, 1726, 548, 203, 225, 262, 2713, 288, 203, 565, 2583, 12, 9893, 18, 26810, 8924, 24899, 172...
./partial_match/56/0xAF11c385ecee6cF72ae37658d4367eFB25a4B2Da/sources/Sota1155General.sol
* @title Sota1155 General Sota1155General - Collect normal NFTs from Sota user/
contract Sota1155General is ERC1155Tradable { constructor() public ERC1155Tradable("SOTA1155 General", "SOTA1155 General") { } }
11,094,698
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 348, 25441, 2499, 2539, 9544, 348, 25441, 2499, 2539, 12580, 300, 9302, 2212, 423, 4464, 87, 628, 348, 25441, 729, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 348, 25441, 2499, 2539, 12580, 353, 4232, 39, 2499, 2539, 1609, 17394, 288, 203, 565, 3885, 1435, 203, 3639, 1071, 203, 3639, 4232, 39, 2499, 2539, 1609, 17394, 2932, 55, 23476, 2499, 2539, 9544, 3113, 315, 55, 23476, 2499, ...
pragma solidity ^0.6.12; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. ...
* @dev Transfers tokens to this contract and approves them to another address @param _source Token to transfer and approve @param _sourceAmount The amount to transfer and approve (in _source token) @param _to Address to approve to/ reset previous approve (some ERC20 not allow do new approve if ...
function _transferFromSenderAndApproveTo(IERC20 _source, uint256 _sourceAmount, address _to) private { require(_source.transferFrom(msg.sender, address(this), _sourceAmount)); _source.approve(_to, 0); _source.approve(_to, _sourceAmount); }
6,512,890
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2604, 18881, 2430, 358, 333, 6835, 471, 6617, 3324, 2182, 358, 4042, 1758, 632, 891, 389, 3168, 1850, 3155, 358, 7412, 471, 6617, 537, 632, 891, 389, 3168, 6275, 565, 1021, 3844, 358, 741...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 389, 13866, 1265, 12021, 1876, 12053, 537, 774, 12, 45, 654, 39, 3462, 389, 3168, 16, 2254, 5034, 389, 3168, 6275, 16, 1758, 389, 869, 13, 3238, 288, 203, 565, 2583, 24899, 3168, 18, 13866, 1265, 12, 3576, 18, 15330, ...
pragma solidity ^0.4.23; /* * β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•— β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—β–ˆβ–ˆβ•— β–ˆβ–ˆβ•— * β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β• * β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• * β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ•”β• * β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘ * β•šβ•β•β•β•β•β• β•š...
@title Interface new rabbits address function mixGenesRabbits(uint256 genes1, uint256 genes2, uint256 targetBlock) public returns (uint256);
contract PrivateRabbitInterface { function getNewRabbit(address from) public view returns (uint); function mixDNK(uint dnkmother, uint dnksire, uint genome) public view returns (uint); function isUIntPrivate() public pure returns (bool); }
1,083,992
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 6682, 394, 767, 70, 6789, 1758, 225, 445, 6843, 7642, 281, 54, 378, 6789, 12, 11890, 5034, 11423, 21, 16, 2254, 5034, 11423, 22, 16, 2254, 5034, 1018, 1768, 13, 1071, 1135, 261, 11890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 8726, 54, 378, 3682, 1358, 288, 203, 565, 445, 12654, 54, 378, 3682, 12, 2867, 628, 13, 225, 1071, 1476, 1135, 261, 11890, 1769, 203, 565, 445, 6843, 8609, 47, 12, 11890, 8800, 18353, 3011, 16, 2254, 8800, 7904, 577, 16, ...
./full_match/1/0xbB03246366ffb993A382c2F2E27F582Ae1cA2471/sources/contracts/Lottery/Lottery.sol
number of tickets sold
uint32 numberOfTicketsSold;
17,051,452
[ 1, 4625, 348, 7953, 560, 30, 225, 1300, 434, 24475, 272, 1673, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 1578, 7922, 6264, 2413, 55, 1673, 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, ...
./full_match/288/0x9284863F131f0145C8F22905C62504E9fD06AB2E/sources/contracts/Ola/Core/LendingNetwork/OTokens/CToken.sol
* OLA_ADDITIONS: This function @dev Fetches the admin bank address./
function fetchAdminBankAddress() internal view returns (address payable) { return ComptrollerForOToken(address(comptroller)).adminBankAddress(); }
7,104,101
[ 1, 4625, 348, 7953, 560, 30, 380, 531, 2534, 67, 8355, 7022, 55, 30, 1220, 445, 632, 5206, 8065, 281, 326, 3981, 11218, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2158, 4446, 16040, 1887, 1435, 2713, 1476, 1135, 261, 2867, 8843, 429, 13, 288, 203, 3639, 327, 1286, 337, 1539, 1290, 51, 1345, 12, 2867, 12, 832, 337, 1539, 13, 2934, 3666, 16040, 1887, 5621, 203, 565, 289, 203, 203, ...
./partial_match/1/0x2F602568897BEa035c12232ea2A31B2a550D3892/sources/ChadGPT.sol
exclude from paying fees or having max transaction amount
constructor() ERC20("Chad GPT", "CHAT") { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = IUni...
3,561,098
[ 1, 4625, 348, 7953, 560, 30, 225, 4433, 628, 8843, 310, 1656, 281, 578, 7999, 943, 2492, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 4232, 39, 3462, 2932, 782, 361, 611, 1856, 3113, 315, 1792, 789, 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, ...
pragma solidity ^0.4.16; // copyright contact@bytether.com contract BasicAccessControl { address public owner; address[] public moderators; function BasicAccessControl() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; ...
add fund for address
function callbackCrossFork(uint64 _requestId, uint256 _amount, bytes32 _referCodeHash) public { if (msg.sender != crossForkDistribution || _amount == 0) { LogCrossFork(_requestId, 0x0, 0, ForkResultCode.FAILED); return; } CrossForkData storage crossForkData = crossFor...
12,959,909
[ 1, 4625, 348, 7953, 560, 30, 225, 527, 284, 1074, 364, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1348, 13941, 22662, 12, 11890, 1105, 389, 2293, 548, 16, 2254, 5034, 389, 8949, 16, 1731, 1578, 389, 266, 586, 1085, 2310, 13, 1071, 288, 203, 3639, 309, 261, 3576, 18, 15330, 480, 6828, 22662, 9003, 747, 389, 8949, 422...
// SPDX-License-Identifier: MIT pragma solidity ^0.8; import "./IArbitrator.sol"; /** @title Centralized Arbitrator * @dev This is a centralized arbitrator deciding alone on the result of disputes. It illustrates how IArbitrator interface can be implemented. * Note that this contract supports appeals. The ruling...
Maps contributors to their contributions for each choice.
mapping(address => mapping(uint256 => uint256)) contributions;
1,009,479
[ 1, 4625, 348, 7953, 560, 30, 225, 19837, 13608, 13595, 358, 3675, 13608, 6170, 364, 1517, 6023, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2874, 12, 2867, 516, 2874, 12, 11890, 5034, 516, 2254, 5034, 3719, 13608, 6170, 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, -...
./full_match/42161/0x3543488F480bDb42075283Bc354Cf5B0F58e8204/sources/project_/src/active/MemepadProject.sol
Write: Owner set exchange rate Emit event
function setTokenRate(uint256 _tokenRate) external onlyOwner { require(!isInitialized(), "Initialized"); require(_tokenRate > 0, "Not zero"); tokenRate = _tokenRate; emit ESetTokenRate(tokenRate); }
16,300,936
[ 1, 4625, 348, 7953, 560, 30, 225, 2598, 30, 16837, 444, 7829, 4993, 16008, 871, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 22629, 4727, 12, 11890, 5034, 389, 2316, 4727, 13, 3903, 1338, 5541, 288, 203, 565, 2583, 12, 5, 291, 11459, 9334, 315, 11459, 8863, 203, 565, 2583, 24899, 2316, 4727, 405, 374, 16, 315, 1248, 3634, 8863, 203, 203, 565,...
pragma solidity ^0.4.19; /* Interface for ERC20 Tokens */ contract Token { bytes32 public standard; bytes32 public name; bytes32 public symbol; uint256 public totalSupply; uint8 public decimals; bool public allowTransactions; mapping (address => uint256) public balanceOf; map...
holds maker profit value
uint256 makerProfit;
2,472,934
[ 1, 4625, 348, 7953, 560, 30, 225, 14798, 312, 6388, 450, 7216, 460, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 312, 6388, 626, 7216, 31, 540, 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, ...
pragma solidity ^0.4.11; /** * Math operations with safety checks */ library SafeMath { function mul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint a, uint b) internal returns (uint) { // assert(b > 0); //...
Shortcuts for before cliff and after vesting cases. Interpolate all vested tokens. As before cliff the shortcut returns 0, we can use just calculate a value in the vesting rect (as shown in above's figure) vestedTokens = tokens * (time - start) / (vesting - start)
{ if (time < cliff) return 0; if (time >= vesting) return tokens; uint256 vestedTokens = SafeMath.div( SafeMath.mul( tokens, SafeMath.sub(time, start) ...
5,424,875
[ 1, 4625, 348, 7953, 560, 30, 225, 7925, 5150, 87, 364, 1865, 927, 3048, 471, 1839, 331, 10100, 6088, 18, 24301, 340, 777, 331, 3149, 2430, 18, 2970, 1865, 927, 3048, 326, 10995, 1135, 374, 16, 732, 848, 999, 2537, 4604, 279, 460, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 288, 203, 203, 203, 1377, 309, 261, 957, 411, 927, 3048, 13, 327, 374, 31, 203, 203, 1377, 309, 261, 957, 1545, 331, 10100, 13, 327, 2430, 31, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 1377, 2254, 5034, 331, 3149...
./partial_match/100/0xfFBAbEb49be77E5254333d5fdfF72920B989425f/sources/contracts/MiniMeToken.sol
@dev The actual token contract, the default controller is the msg.sender that deploys the contract, so usually this token will be deployed by a token controller contract, which Giveth will call a "Campaign" The chainId is hardcoded since solidity ^0.4.24 does not support `chainid` so we cannot get it dynamically xDA...
contract MiniMeToken is Controlled { uint256 public constant CHAINID = 0x64; bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9; bytes32 public constant TRANSFER_WITH_AUTHORIZATION_TYPEHASH = 0x7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b...
16,674,439
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1021, 3214, 1147, 6835, 16, 326, 805, 2596, 353, 326, 1234, 18, 15330, 225, 716, 5993, 383, 1900, 326, 6835, 16, 1427, 11234, 333, 1147, 903, 506, 19357, 635, 279, 225, 1147, 2596, 6835, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 27987, 4667, 1345, 353, 8888, 1259, 288, 203, 203, 203, 203, 203, 565, 2254, 5034, 1071, 5381, 6469, 6964, 734, 273, 374, 92, 1105, 31, 203, 565, 1731, 1578, 1071, 5381, 10950, 6068, 67, 2399, 15920, 273, 374, 92, 26, 73, ...
./full_match/3/0x97B71728DeD841E6aE6B7B11a961F8D5d34F0349/sources/browser/test_test.sol
use the return value (true or false) to test the contract
function check2() public view returns (bool) { return true; }
14,257,444
[ 1, 4625, 348, 7953, 560, 30, 225, 999, 326, 327, 460, 261, 3767, 578, 629, 13, 358, 1842, 326, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 445, 866, 22, 1435, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 1850, 327, 638, 31, 203, 3639, 289, 203, 2, -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 "@openzeppelin/contracts-ethereum-package/contracts/ownership/Ownable.sol"; import "@nomiclabs/buidler/console.sol"; import "./LBCR.sol"; import "./UserProxy.sol"; import "./UserProxyFactory.sol"; import "./ILBCR.sol"; /// @title Registers users, protocols, aggregates reputation cont...
@return userProxyFactoryAddress The address of the UserProxyFactory contract
function getUserProxyFactoryAddress() public view returns (address) { return address(userProxyFactory); }
2,512,816
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2463, 729, 3886, 1733, 1887, 1021, 1758, 434, 326, 2177, 3886, 1733, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4735, 3886, 1733, 1887, 1435, 1071, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 327, 1758, 12, 1355, 3886, 1733, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.19; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / ...
This function is used by contracts to allowing the token to notify them when an approval has been made.
function approveAndCall(address _spender, uint256 _value) public returns (bool success) { tokenSpender spender = tokenSpender(_spender); if(approve(_spender, _value)){ spender.receiveApproval(); return true; } }
5,376,408
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 445, 353, 1399, 635, 20092, 358, 15632, 326, 1147, 358, 5066, 2182, 1347, 392, 23556, 711, 2118, 7165, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6617, 537, 1876, 1477, 12, 2867, 389, 87, 1302, 264, 16, 2254, 5034, 389, 1132, 13, 1071, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 1147, 27223, 264, 17571, 264, 273, 1147, 27223, 264, 24899, 87, 1302, 264, 1769, 203, ...
./full_match/5/0x2E3dD5F1E9E3180a64E367B2aCD56B4004039590/sources/ParagonsDAOPlayerID.sol
@notice Block transfers unless Player has reached minimum rank needed to transfer, or receiver has a PDP already, or tranferring from/to zero address.
function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { if (from == address(0) || to == address(0)) super._beforeTokenTransfer(from, to, tokenId); else if (transferrable(tokenId) && balanceOf(to) == 0) super._beforeTokenTrans...
1,876,925
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3914, 29375, 3308, 19185, 711, 8675, 5224, 6171, 3577, 358, 7412, 16, 578, 5971, 711, 279, 453, 8640, 1818, 16, 578, 13637, 74, 20245, 628, 19, 869, 3634, 1758, 18, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 565, 262, 2713, 5024, 3849, 288, 203, 3639, 309, 261, 2080, 422, 1758, 12, 20, 13, 747, 358, 422, ...
./partial_match/1/0x96006F60B452526481a26eab55265ECdf82E7361/sources/HEX.sol
deduct from sender's balance
balanceOf[msg.sender] = balanceOf[msg.sender].sub(value);
2,887,450
[ 1, 4625, 348, 7953, 560, 30, 225, 11140, 853, 628, 5793, 1807, 11013, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 11013, 951, 63, 3576, 18, 15330, 65, 273, 11013, 951, 63, 3576, 18, 15330, 8009, 1717, 12, 1132, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x7F3C9e38eB2EBB192a8871c514da0D21Cc90AFc8/sources/contracts/LynchsLocksSuperContest.sol
Max Supply URI for metadata Royalties interface To claim ethers To get royalties NFT Price NFT Price Merkle Root for Discounts Mapping of discounts = used This means that if the max amount of tokens has been reached for the current phase, you cannot mint anymore
contract LynchsLocksSuperContest is ERC721Enumerable, Ownable, RoyaltiesV2Impl, Pausable { uint256 public constant MAX_SUPPLY = 1000; string public baseURI; bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; address payable public escrow; address payable public secondary; uint256 publi...
16,549,237
[ 1, 4625, 348, 7953, 560, 30, 225, 4238, 3425, 1283, 3699, 364, 1982, 534, 13372, 2390, 606, 1560, 2974, 7516, 13750, 414, 2974, 336, 721, 93, 2390, 606, 423, 4464, 20137, 423, 4464, 20137, 31827, 7450, 364, 3035, 8008, 9408, 434, 1015...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 511, 2515, 87, 19159, 8051, 660, 395, 353, 4232, 39, 27, 5340, 3572, 25121, 16, 14223, 6914, 16, 534, 13372, 2390, 606, 58, 22, 2828, 16, 21800, 16665, 288, 203, 203, 565, 2254, 5034, 1071, 5381, 4552, 67, 13272, 23893, 27...
// SPDX-License-Identifier: MIT OR Apache-2.0 // Based on: https://github.com/matter-labs/zksync/blob/master/core/bin/key_generator/src/verifier_contract_generator/VerifierTemplate.sol, rev#4012188 pragma solidity >=0.5.0 <0.9.0; pragma experimental ABIEncoderV2; library PairingsBn254 { uint256 constant q_mod = ...
Hardcoded constants to avoid accessing store
contract KeysWithPlonkVerifier is VerifierWithDeserialize { uint256 constant VK_TREE_ROOT = {{vk_tree_root}}; function getVkAggregated() internal pure returns(VerificationKey memory vk) { vk.gate_setup_commitments[0] = PairingsBn254.new_g1( ); vk.gate_setup_commitments[1] = PairingsBn2...
938,205
[ 1, 4625, 348, 7953, 560, 30, 225, 670, 1060, 24808, 6810, 358, 4543, 19531, 1707, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 11432, 1190, 1749, 265, 79, 17758, 353, 6160, 1251, 1190, 20423, 288, 203, 203, 203, 565, 2254, 5034, 5381, 30359, 67, 26557, 67, 9185, 273, 10179, 90, 79, 67, 3413, 67, 3085, 9090, 31, 203, 565, 445, 11031, 79, 6078, 690,...
./full_match/56/0x41b296076F4432cF56cDc5598Ea29203f3a9B17a/sources/project_/contracts/acg.sol
1Block/3sec - 100blocks = 5 minutes
uint256 public botSellBlockLimit = 100;
3,257,059
[ 1, 4625, 348, 7953, 560, 30, 225, 404, 1768, 19, 23, 3321, 300, 2130, 7996, 273, 1381, 6824, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 2512, 55, 1165, 1768, 3039, 273, 2130, 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, -...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "../deck/EmblemDeckInterface.sol"; import "../common/EmblemAccessControl.sol"; abstract contract EmblemDremKnobs is EmblemAccessControl { /// @dev The ERC-165 inte...
@dev C-level can update the NFT contract
function setNFTContract(address nftAddress) external onlyCLevel { EmblemDeckInterface candidateContract = EmblemDeckInterface(nftAddress); require( candidateContract.supportsInterface(InterfaceSignature_ERC721), "NFT contract does not support ERC-721" ); nonFu...
1,752,022
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 385, 17, 2815, 848, 1089, 326, 423, 4464, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 444, 50, 4464, 8924, 12, 2867, 290, 1222, 1887, 13, 3903, 1338, 39, 2355, 288, 203, 3639, 13900, 3269, 758, 363, 1358, 5500, 8924, 273, 13900, 3269, 758, 363, 1358, 12, 82, 1222, 1887, 1769, 203, 3639, 2583, 12, 203, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./AccessControl.sol"; /** * @dev Math operations with safety checks that throw on error */ library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath:...
* @dev update fee schedule by admin/
function updateFeeSchedule(uint256 senderPercentage, uint256 foundationPercentage, uint256 receiverPercentage) public { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not an admin"); _updateFeeSchedule(senderPercentage, foundationPercentage, receiverPercentage); }
5,993
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1089, 14036, 4788, 635, 3981, 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, 1089, 14667, 6061, 12, 11890, 5034, 5793, 16397, 16, 2254, 5034, 1392, 367, 16397, 16, 2254, 5034, 5971, 16397, 13, 1071, 288, 203, 3639, 2583, 12, 5332, 2996, 12, 5280, 67, 15468, 67, 16256, 16, 1234, 18, 15330, 3631, ...
./partial_match/42/0x75C1b8cD9CFD01Df29196Db4786236Ad740E0A6f/sources/DisposableMemberRoles.sol
* @dev Checks if voting of a claim should be closed or not. Internally called by checkVoteClosing method for Claims whose status number is 0 or status number lie between 2 and 6. @param claimId Claim Id. @param status Current status of claim. @return close 1 if voting should be closed,0 in case voting should not be clo...
function _checkVoteClosingFinal(uint claimId, uint status) internal view returns (int8 close) { close = 0; uint coverId; (, coverId) = cd.getClaimCoverId(claimId); bytes4 curr = qd.getCurrencyOfCover(coverId); uint tokenx1e18 = m1.calculateTokenPrice(curr); uint accept; uint deny; (, a...
3,325,800
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13074, 309, 331, 17128, 434, 279, 7516, 1410, 506, 4375, 578, 486, 18, 31048, 1230, 2566, 635, 866, 19338, 15745, 707, 364, 28895, 8272, 1267, 1300, 353, 374, 578, 1267, 1300, 328, 1385, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 389, 1893, 19338, 15745, 7951, 12, 11890, 7516, 548, 16, 2254, 1267, 13, 2713, 1476, 1135, 261, 474, 28, 1746, 13, 288, 203, 565, 1746, 273, 374, 31, 203, 565, 2254, 5590, 548, 31, 203, 565, 261, 16, 5590, 548, 13, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IE...
Update the moved token's index
s._ownedTokensIndex[lastTokenId] = tokenIndex;
6,935,756
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 326, 10456, 1147, 1807, 770, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 272, 6315, 995, 329, 5157, 1016, 63, 2722, 1345, 548, 65, 273, 1147, 1016, 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, ...
./full_match/1/0x0C58579eCeDa5bFb87448da1F8bD6c99175640eb/sources/contracts/AdapterHelper.sol
* @dev Returns balances of TokenProfit contract - tokens and ETH/
function _getAvailableFunds() internal view returns ( uint256, uint256[] memory ) { uint256[] memory availableTokens = new uint256[]( TOKENS ); for (uint256 i = 0; i < TOKENS; i++) { IERC20 token = tokens[i]...
9,701,640
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 324, 26488, 434, 3155, 626, 7216, 6835, 300, 2430, 471, 512, 2455, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 588, 5268, 42, 19156, 1435, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 203, 5411, 2254, 5034, 16, 203, 5411, 2254, 5034, 8526, 3778, 203, 3639, 262, 203, 565, 288, 203, 3639, 2254, 5034, 8526, 3778, 23...
//Address: 0xdf203118a954c918b967a94e51f3570a2faba4ac //Contract name: SuperCountriesEth //Balance: 1.696874206974341727 Ether //Verification Date: 6/7/2018 //Transacion Count: 994 // CODE STARTS HERE pragma solidity ^0.4.24; /* ...
* @dev After 7 days without any buy, the richest user and the latest player will share the contract balance !/ fire events
function confirmDividendsFromPot() public { require(richestBuyer != address(0) && lastBuyer != address(0)) ; require(block.timestamp > timestampLimit); uint256 confirmation_TimeStamp = timestampLimit; potVersion ++; uint256 balance = address(this).balance; uint256 balanceQuarter = balance.div(4); bala...
2,504,908
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 7360, 2371, 4681, 2887, 1281, 30143, 16, 326, 23657, 395, 729, 471, 326, 4891, 7291, 903, 7433, 326, 6835, 11013, 401, 19, 4452, 2641, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 6932, 7244, 350, 5839, 1265, 18411, 1435, 1071, 288, 203, 202, 202, 6528, 12, 12761, 395, 38, 16213, 480, 1758, 12, 20, 13, 597, 1142, 38, 16213, 480, 1758, 12, 20, 3719, 274, 203, 202, 202, 6528, 12, 2629, 18, 5508, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "./IERC4671.sol"; import "./IERC4671Metadata.sol"; import "./IERC4671Enumerable.sol"; abstract contract ERC4671 is IERC4671, IERC4671Met...
Mapping from tokenId to token
mapping(uint256 => Token) private _tokens;
5,347,782
[ 1, 4625, 348, 7953, 560, 30, 225, 9408, 628, 1147, 548, 358, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 3155, 13, 3238, 389, 7860, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.4.21; /* Owned contract interface */ contract IOwned { // this function isn't abstract since the compiler emits automatically generated getter functions as external function owner() public view returns (address) {} function transferOwnership(address _newOwner) public; function a...
if ETH is provided, ensure that the amount is lower than the path amount and verify that the source token is an ether token. otherwise ensure that the source is not an ether token
IERC20Token fromToken = path[0];
1,222,371
[ 1, 4625, 348, 7953, 560, 30, 225, 309, 512, 2455, 353, 2112, 16, 3387, 716, 326, 3844, 353, 2612, 2353, 326, 589, 3844, 471, 3929, 716, 326, 1084, 1147, 353, 392, 225, 2437, 1147, 18, 3541, 3387, 716, 326, 1084, 353, 486, 392, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 467, 654, 39, 3462, 1345, 628, 1345, 273, 589, 63, 20, 15533, 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,...
pragma solidity ^0.4.21; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint25...
there is no case where this function can overflow/underflow
function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b; return c; }
12,793,934
[ 1, 4625, 348, 7953, 560, 30, 1915, 353, 1158, 648, 1625, 333, 445, 848, 9391, 19, 9341, 2426, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3739, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 276, 273, 279, 342, 324, 31, 203, 3639, 327, 276, 31, 203, 565, 289, 203, 377, 203, 377, 203, ...
pragma solidity ^0.4.24; import './Ownable.sol'; contract CarExchange is Ownable { // We emit this event whenever a car is newly registered to the blockchain event Registered(uint indexed _vinNumber, address indexed _owner); // We emit this event whenever a car is bought from seller to buyer event Bought(ui...
Mapping which contains all car id'' connected to their car structures
mapping(uint => Car) public carStructs;
7,268,248
[ 1, 4625, 348, 7953, 560, 30, 225, 9408, 1492, 1914, 777, 5926, 612, 6309, 5840, 358, 3675, 5926, 12597, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2874, 12, 11890, 516, 23672, 13, 1071, 5926, 3823, 87, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./partial_match/1/0x21670dDB429B6D80B5bE4e65532576bB14b7cC62/sources/RegistryAdapterIronBank.sol
* Fetch dynamic information about an asset/
function assetDynamic(address assetAddress) public view returns (AssetDynamic memory) { ICyToken asset = ICyToken(assetAddress); address tokenAddress = underlyingTokenAddress(assetAddress); uint256 liquidity = asset.getCash(); uint256 liquidityUsdc; ...
9,165,294
[ 1, 4625, 348, 7953, 560, 30, 380, 8065, 5976, 1779, 2973, 392, 3310, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3310, 9791, 12, 2867, 3310, 1887, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 6672, 9791, 3778, 13, 203, 565, 288, 203, 3639, 467, 17992, 1345, 3310, 273, 467, 17992, 1345, 12, 9406, 1887, 1769, 203, 363...
/** *Submitted for verification at Etherscan.io on 2019-10-31 */ /************************************************************************** * ____ _ * / ___| | | __ _ _ _ ___ _ __ * | | _____ | | / _` || | | | / _ \| '__| * ...
* @dev distribute tokens internal/
function distributeTokensInternal(address _investor, uint256 _tokens) internal { require( token_.transferFrom(vaultERC20_, _investor, _tokens), "TOS04"); }
12,886,925
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25722, 2430, 2713, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 25722, 5157, 3061, 12, 2867, 389, 5768, 395, 280, 16, 2254, 5034, 389, 7860, 13, 2713, 288, 203, 565, 2583, 12, 203, 1377, 1147, 27799, 13866, 1265, 12, 26983, 654, 39, 3462, 67, 16, 389, 5768, 395, 280, 16, 389, 7860...
pragma solidity ^0.4.24; // File: openzeppelin-solidity/contracts/introspection/IERC165.sol /** * @title IERC165 * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md */ interface IERC165 { /** * @notice Query if a contract implements an interface * @param interfaceId The interfa...
* @dev Override the default ERC721 transferFrom implementation in order to check game conditions and generate side effects/
function transferFrom(address _from, address _to, uint256 _tokenId) public { _setupTransferFrom(_from, _to, _tokenId, uint64(now)); ERC721Manager.transferFrom(erc721Data, _from, _to, _tokenId); }
7,284,105
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1439, 326, 805, 4232, 39, 27, 5340, 7412, 1265, 4471, 316, 1353, 358, 866, 7920, 4636, 471, 2103, 4889, 16605, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 1265, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 5034, 389, 2316, 548, 13, 1071, 288, 203, 3639, 389, 8401, 5912, 1265, 24899, 2080, 16, 389, 869, 16, 389, 2316, 548, 16, 2254, 1105, 12, 3338, 10019, 203...
./full_match/1/0xC4BAeEA53fE2470E88dC9C7c5868440A376EcafF/sources/contracts/NFT.sol
Price Supply Minted Supply
contract NFT is ERC721Enumerable, Ownable { using Strings for uint256; string public baseExtension = ".json"; bool public paused = true; bool public publicSaleStarted = false; uint256 public maxSupply = 1515; uint256 public tier1Price = 0.2 ether; uint256 public tier2Price = 0.2 ether; uint256 publ...
2,951,664
[ 1, 4625, 348, 7953, 560, 30, 225, 20137, 3425, 1283, 490, 474, 329, 3425, 1283, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 423, 4464, 353, 4232, 39, 27, 5340, 3572, 25121, 16, 14223, 6914, 288, 203, 203, 225, 1450, 8139, 364, 2254, 5034, 31, 203, 203, 225, 533, 1071, 1026, 3625, 273, 3552, 1977, 14432, 203, 203, 225, 1426, 1071, 17781, 273, 63...
./partial_match/3/0xDEFc008BAC1e38F13F081DDD20acf89985DFa7C8/sources/BoostedSavingsVault.sol
* @dev TokenWrapper constructor @param _stakingToken Wrapped token to be staked @param _stakingContract mStable MTA Staking contract/
constructor(address _stakingToken, address _stakingContract) internal { stakingToken = IERC20(_stakingToken); stakingContract = IIncentivisedVotingLockup(_stakingContract); }
5,072,163
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3155, 3611, 3885, 632, 891, 389, 334, 6159, 1345, 24506, 1147, 358, 506, 384, 9477, 632, 891, 389, 334, 6159, 8924, 312, 30915, 490, 9833, 934, 6159, 6835, 19, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 389, 334, 6159, 1345, 16, 1758, 389, 334, 6159, 8924, 13, 2713, 288, 203, 3639, 384, 6159, 1345, 273, 467, 654, 39, 3462, 24899, 334, 6159, 1345, 1769, 203, 3639, 384, 6159, 8924, 273, 467, 382, 2998, 427, ...
pragma solidity ^0.4.18; // ---------------------------------------------------------------------------- // &#39;CAN&#39; token contract // // Deployed to : 0x2A7566f25B8ec8A96487dc2a453013d01c682CdB // Symbol : CAN // Name : CAN Coin // Total supply: 1000000000 // Decimals : 18 // // ------------------...
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract CanToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function CanToken() public { symbol = "CAN"; ...
15,344,597
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4480, 1345, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 16, 14060, 10477, 288, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2254, 1071, 389, 4963, 3088, ...
./partial_match/3/0xC66e44DF7F49753fA27034ECf655Cc3DA3474AE5/sources/RocketChain.sol
* @title SwapDex token @notice ERC20 token @dev Optional approveAndCall() functionality to notify a contract if an approve() has occurred./
contract RocketChain is ERC20, ERC20Detailed('RocketChian', 'RKT', 18) { } constructor (uint256 _totalSupplyOfTokens) { _mint(msg.sender, _totalSupplyOfTokens); } function approveAndCall(address _spender, uint256 _value, bytes calldata _extraData) external returns (bool success) { ...
5,272,395
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 12738, 40, 338, 1147, 632, 20392, 4232, 39, 3462, 1147, 632, 5206, 4055, 6617, 537, 1876, 1477, 1435, 14176, 358, 5066, 279, 6835, 309, 392, 6617, 537, 1435, 711, 7841, 18, 19, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 534, 1861, 3893, 353, 4232, 39, 3462, 16, 4232, 39, 3462, 40, 6372, 2668, 54, 1861, 782, 2779, 2187, 296, 54, 47, 56, 2187, 6549, 13, 288, 203, 203, 97, 203, 565, 3885, 261, 11890, 5034, 389, 4963, 3088, 1283, 951, 5157,...
./full_match/3/0x967328588D821b4306fe8F0592faFE94eC930429/sources/contracts/Token5.sol
* @dev Moves tokens `amount` from `sender` to `recipient`. This is internal function is equivalent to {transfer}, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a {Transfer} event. Requirements: - `sender` cannot be the zero address. - `recipient` cannot be the zero address. - `...
function _transfer(address sender, address recipient, uint256 amount) internal virtual override { super._transfer(sender, recipient, amount); }
8,243,805
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 490, 10829, 2430, 1375, 8949, 68, 628, 1375, 15330, 68, 358, 1375, 20367, 8338, 1220, 353, 2713, 445, 353, 7680, 358, 288, 13866, 5779, 471, 848, 506, 1399, 358, 425, 18, 75, 18, 2348, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 445, 389, 13866, 12, 2867, 5793, 16, 1758, 8027, 16, 2254, 5034, 3844, 13, 2713, 5024, 3849, 288, 203, 225, 2240, 6315, 13866, 12, 15330, 16, 8027, 16, 3844, 1769, 203, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.5.2; import "./UserWallet.sol"; /// @title AddressRegistry /// @notice /// @dev contract AddressRegistry { event LogSetAddress(string name, address addr); /// @notice Registry of role and address mapping(bytes32 => address) registry; /** * @dev Check if msg.sender is admin...
@dev Get the address from system registry @param _name (string) @return (address) Returns address based on role
function getAddress(string memory _name) public view returns(address) { return registry[keccak256(abi.encodePacked(_name))]; }
5,395,385
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 968, 326, 1758, 628, 2619, 4023, 632, 891, 389, 529, 261, 1080, 13, 632, 2463, 225, 261, 2867, 13, 2860, 1758, 2511, 603, 2478, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 14808, 12, 1080, 3778, 389, 529, 13, 1071, 1476, 1135, 12, 2867, 13, 288, 203, 3639, 327, 4023, 63, 79, 24410, 581, 5034, 12, 21457, 18, 3015, 4420, 329, 24899, 529, 3719, 15533, 203, 565, 289, 203, 203, 2, -100, -100...
./full_match/4/0x0A87021D82453AB0B18a375aFfdB8C689e05A182/sources/sirtoken3.sol
* @dev Mints tokens to address. @param address_ address @param amount_ uint256 @notice Requires: - ValidAddress(account_) non 0 address - ValidAmount(amount_) non 0 amount @notice Emits: {Minted} address address_, uint256 amount_/
function __mint( address address_, uint256 amount_ ) internal virtual { uint256 newtotal = Total.supply.add(amount_); require(newtotal <= _initialSupply, "mint>max"); Total.supply = newtotal; Total.current = Total.current.add(amount_); addTokens(address_, ...
12,425,004
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 632, 5206, 490, 28142, 2430, 358, 1758, 18, 225, 632, 891, 1758, 67, 1758, 225, 632, 891, 3844, 67, 2254, 5034, 225, 632, 20392, 16412, 30, 1377, 300, 2364, 1887, 12, 4631, 67, 13, 1661, 374,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 81, 474, 12, 203, 3639, 1758, 1758, 67, 16, 203, 3639, 2254, 5034, 3844, 67, 203, 565, 262, 2713, 5024, 288, 203, 3639, 2254, 5034, 394, 4963, 273, 10710, 18, 2859, 1283, 18, 1289, 12, 8949, 67, 1769, 203, 3639,...
// File: @openzeppelin/contracts/math/SafeMath.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers...
* @dev returns the conversion fee for a given target amount @param _targetAmount target amount @return conversion fee/
function calculateFee(uint256 _targetAmount) internal view returns (uint256) { return _targetAmount.mul(conversionFee) / PPM_RESOLUTION; }
1,736,000
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1135, 326, 4105, 14036, 364, 279, 864, 1018, 3844, 632, 891, 389, 3299, 6275, 225, 1018, 3844, 632, 2463, 4105, 14036, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4604, 14667, 12, 11890, 5034, 389, 3299, 6275, 13, 2713, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 3299, 6275, 18, 16411, 12, 20990, 14667, 13, 342, 453, 12728, 67, 17978, 13269, 31, 203, 565, 289, 203...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; // the erc1155 base contract - the openzeppelin erc1155 import "../token/ERC721A/ERC721A.sol"; import "../royalties/ERC2981.sol"; import "../utils...
@notice Mint a specified amount the specified token hash to the specified receiver @param recipient the address of the receiver @param amount the amount to mint
function mint( address recipient, uint256, uint256 amount ) external override onlyMinter { _mint(recipient, amount, "", true); }
12,215,468
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 490, 474, 279, 1269, 3844, 326, 1269, 1147, 1651, 358, 326, 1269, 5971, 632, 891, 8027, 326, 1758, 434, 326, 5971, 632, 891, 3844, 326, 3844, 358, 312, 474, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 12, 203, 3639, 1758, 8027, 16, 203, 3639, 2254, 5034, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 3903, 3849, 1338, 49, 2761, 288, 203, 203, 3639, 389, 81, 474, 12, 20367, 16, 3844, 16, 23453, 638, 1769,...
./partial_match/1/0x44383018ecf3DBED34eE621439a5Ff6002e8209b/sources/contracts/libraries/ValidationLibV1.sol
solhint-disable-line
require(block.timestamp > s.getResolutionTimestampInternal(coverKey, productKey), "Reporting still active");
10,998,129
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 11317, 17, 8394, 17, 1369, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2583, 12, 2629, 18, 5508, 405, 272, 18, 588, 11098, 4921, 3061, 12, 3165, 653, 16, 3017, 653, 3631, 315, 29285, 4859, 2695, 8863, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.24; // ---------------------------------------------------------------------------- // 'BRLT' token contract // // Deployed to : 0x41C01275784c14B692e73d1dfD09859f1f04b079 // Symbol : BRLT // Name : Brazilian Real Token // Total supply: 1,000,000,000,000.000000000000000000 // Decimals ...
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract BrazilianRealToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; constructor() public { symbol = "BR...
10,214,555
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 605, 354, 94, 330, 2779, 6955, 1345, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 16, 14060, 10477, 288, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 22...
pragma solidity ^0.5.0; // Copyright 2019 OpenST Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
* @notice Removes an acceptance margin of the base currency price in the specified pay currency. @dev Function requires: - Only organization's workers are allowed to call the function. - The specified pay currency code is not null./
function removeAcceptanceMargin( bytes3 _payCurrencyCode ) external onlyWorker { require( _payCurrencyCode != bytes3(0), "Pay currency code is null." ); delete baseCurrencyPriceAcceptanceMargins[_payCurrencyCode]; emit Accepta...
12,599,397
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 20284, 392, 21656, 7333, 434, 326, 1026, 5462, 6205, 316, 326, 540, 1269, 8843, 5462, 18, 632, 5206, 4284, 4991, 30, 1850, 300, 5098, 6758, 1807, 9798, 854, 2935, 358, 745, 326, 445, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1206, 5933, 1359, 9524, 12, 203, 3639, 1731, 23, 389, 10239, 28976, 203, 565, 262, 203, 3639, 3903, 203, 3639, 1338, 6671, 203, 565, 288, 203, 3639, 2583, 12, 203, 5411, 389, 10239, 28976, 480, 1731, 23, 12, 20, 3631, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import "./BToken.sol"; import "./BMath.sol"; import "../interfaces/IFlashLoanRecipient.sol"; /************************************************************************************************ Originally from https://github.c...
* @dev Burn up to `maxPoolAmountIn` for exactly `tokenAmountOut` of `tokenOut`. Returns the number of pool tokens burned. The pool implicitly burns the tokens for all underlying tokens and swaps them to the desired output token. A swap fee is charged against the output tokens./
function exitswapExternAmountOut( address tokenOut, uint256 tokenAmountOut, uint256 maxPoolAmountIn ) external _lock_ returns (uint256 poolAmountIn) { Record memory outRecord = _getOutputToken(tokenOut); require( tokenAmountOut <= bmul(outRecord.balance, MAX_OUT_RATIO), ...
2,560,680
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 605, 321, 731, 358, 1375, 1896, 2864, 6275, 382, 68, 364, 8950, 1375, 2316, 6275, 1182, 68, 434, 1375, 2316, 1182, 8338, 2860, 326, 1300, 434, 2845, 2430, 18305, 329, 18, 1021, 2845, 2468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 19526, 91, 438, 29764, 6275, 1182, 12, 203, 565, 1758, 1147, 1182, 16, 203, 565, 2254, 5034, 1147, 6275, 1182, 16, 203, 565, 2254, 5034, 943, 2864, 6275, 382, 203, 225, 262, 203, 565, 3903, 203, 565, 389, 739, 67, 203...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.6.12; // /** * @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 * e...
* @notice Claim accrued reward in one or more reward tokens @dev All params must have the same array length @param receivers List of accounts to credit claimed tokens to @param tokens Reward token addresses @param amounts Amounts of each reward token to claim/ If caller is one of previous owners, update unclaimed rewar...
function _redeem(uint256 amount) virtual internal; function claim( address[] calldata receivers, address[] calldata tokens, uint256[] calldata amounts ) override public { require(receivers.length == tokens.length && receivers.length == amounts.length, "ContinuousRewardToken: lengths dont match");...
192,365
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 18381, 4078, 86, 5957, 19890, 316, 1245, 578, 1898, 19890, 2430, 632, 5206, 4826, 859, 1297, 1240, 326, 1967, 526, 769, 632, 891, 22686, 987, 434, 9484, 358, 12896, 7516, 329, 2430, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 389, 266, 24903, 12, 11890, 5034, 3844, 13, 5024, 2713, 31, 203, 203, 225, 445, 7516, 12, 203, 565, 1758, 8526, 745, 892, 22686, 16, 203, 565, 1758, 8526, 745, 892, 2430, 16, 203, 565, 2254, 5034, 8526, 745, 892, 3098...
pragma solidity ^0.6.6; /** * @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 le...
* @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 N1Token is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; mapping (...
1,494,595
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 423, 21, 1345, 353, 1772, 16, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 377, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 2648...
./partial_match/1/0xb87fedDa905Dc72532177B08CE6B533ed7b26a83/sources/src/ERC721B.sol
* @dev See {IERC721-safeTransferFrom}./
function safeTransferFrom( address from, address to, uint256 id, bytes memory data ) public virtual { transferFrom(from, to, id); if (!_checkOnERC721Received(from, to, id, data)) revert TransferToNonERC721ReceiverImplementer(); }
3,997,535
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 27, 5340, 17, 4626, 5912, 1265, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4183, 5912, 1265, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 612, 16, 203, 3639, 1731, 3778, 501, 203, 565, 262, 1071, 5024, 288, 203, 3639, 7412, 1265, 12, 2080, 16, 358, 16, 612, ...
/** *Submitted for verification at Etherscan.io on 2022-04-14 */ // SPDX-License-Identifier: UNLICENSED // File: contracts/interfaces/ILayerZeroUserApplicationConfig.sol pragma solidity >=0.5.0; interface ILayerZeroUserApplicationConfig { // @notice set the configuration of the LayerZero messaging library of t...
mint function you can choose to mint 1 or 2 mint is free, but payments are accepted
function mint(uint8 numTokens) external payable { require(numTokens < 3, "omni Apes: Max 2 NFTs per transaction"); require( nextTokenId + numTokens <= MAX_MINT_ETHEREUM, "omni Apes: Mint exceeds supply" ); _safeMint(msg.sender, ++nextTokenId); if (numT...
15,069,941
[ 1, 4625, 348, 7953, 560, 30, 225, 312, 474, 445, 1846, 848, 9876, 358, 312, 474, 404, 578, 576, 312, 474, 353, 4843, 16, 1496, 25754, 854, 8494, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 12, 11890, 28, 818, 5157, 13, 3903, 8843, 429, 288, 203, 3639, 2583, 12, 2107, 5157, 411, 890, 16, 315, 362, 15834, 1716, 281, 30, 4238, 576, 423, 4464, 87, 1534, 2492, 8863, 203, 3639, 2583, 12, 203, 5411, ...
pragma solidity 0.4.24; // File: contracts/upgradeability/EternalStorage.sol /** * @title EternalStorage * @dev This contract holds all the necessary state variables to carry out the storage of any contract. */ contract EternalStorage { mapping(bytes32 => uint256) internal uintStorage; mapping(bytes32 => ...
* @dev Tells the address of the implementation where every call will be delegated. @return address of the implementation to which it will be delegated/* @dev Fallback function allowing to perform a delegatecall to the given implementation. This function will return whatever the implementation call returns/
function () payable public { address _impl = implementation(); require(_impl != address(0)); assembly { 0x40 is the "free memory slot", meaning a pointer to next slot of empty memory. mload(0x40) loads the data in the free memory slot, so `ptr` is a pointer to...
15,421,485
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 29860, 87, 326, 1758, 434, 326, 4471, 1625, 3614, 745, 903, 506, 30055, 18, 632, 2463, 1758, 434, 326, 4471, 358, 1492, 518, 903, 506, 30055, 20308, 632, 5206, 21725, 445, 15632, 358, 307...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1832, 8843, 429, 1071, 288, 203, 3639, 1758, 389, 11299, 273, 4471, 5621, 203, 3639, 2583, 24899, 11299, 480, 1758, 12, 20, 10019, 203, 3639, 19931, 288, 203, 7734, 374, 92, 7132, 353, 326, 315, 9156, 3778, 4694, 3113, ...
./full_match/44787/0x1818c1Ef317666607807DeB5d5EA69F0461734F1/sources/contracts/common/MultiSig.sol
* @notice Emitted when a confirmed proposal is successfully executed. @param proposalId The ID of the proposal that was executed. @param returnData The response that was recieved from the external call./
event ProposalExecuted(uint256 indexed proposalId, bytes returnData);
13,265,949
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 512, 7948, 1347, 279, 19979, 14708, 353, 4985, 7120, 18, 632, 891, 14708, 548, 1021, 1599, 434, 326, 14708, 716, 1703, 7120, 18, 632, 891, 327, 751, 1021, 766, 716, 1703, 1950, 1385, 215...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 19945, 23839, 12, 11890, 5034, 8808, 14708, 548, 16, 1731, 327, 751, 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, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //contract user context (use this instead of msg.sender and msg.data) import "@openzeppelin/contracts/utils/Context.sol"; //implementation of ERC721 Non-Fungible Token Standard import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; //IMultiClass interface im...
* @dev Returns the amount a `tokenId` is being offered for./
function listingOf(uint256 tokenId) public view override returns(uint256) { return _book[tokenId]; }
12,921,449
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 3844, 279, 1375, 2316, 548, 68, 353, 3832, 10067, 329, 364, 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, 225, 445, 11591, 951, 12, 11890, 5034, 1147, 548, 13, 1071, 1476, 3849, 1135, 12, 11890, 5034, 13, 288, 203, 565, 327, 389, 3618, 63, 2316, 548, 15533, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.7.0; import './libraries/UniswapV2Library.sol'; import './libraries/SafeMath.sol'; import './libraries/TransferHelper.sol'; import './interfaces/IUniswapV2Router02.sol'; import './interfaces/IUniswapV2Factory.sol'; import './interfaces/IERC20.sol'; impor...
refund dust eth, if any
function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external virtual override payable ensure(deadline) returns (uint amountToken, uint amountETH, uint liquidity) { (amountTok...
2,115
[ 1, 4625, 348, 7953, 560, 30, 225, 16255, 302, 641, 13750, 16, 309, 1281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 48, 18988, 24237, 1584, 44, 12, 203, 3639, 1758, 1147, 16, 203, 3639, 2254, 3844, 1345, 25683, 16, 203, 3639, 2254, 3844, 1345, 2930, 16, 203, 3639, 2254, 3844, 1584, 44, 2930, 16, 203, 3639, 1758, 358, 16, 203, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.4.23; contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, a...
* @return the releaseTime set by the tokenOwner./
function getTokenOwnerLockReleaseTime(ERC20 token, address tokenOwner) public view returns (uint256) { return timelockMap[address(token)][tokenOwner].releaseTime; }
10,851,176
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2463, 326, 3992, 950, 444, 635, 326, 1147, 5541, 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,...
[ 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, 9162, 5541, 2531, 7391, 950, 12, 654, 39, 3462, 1147, 16, 1758, 1147, 5541, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 1658, 292, 975, 863, 63, 2867, 12, 2316, 13, 6362, 2316, 5541, 8009, 9340, 9...