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/0x1777fE4a1D003E76F2BcbF176Cc6Be4D336719D5/sources/XMoon.sol
* devp account Returns the amountaccount of tokens amount owned by `account`./
function setStartTrader(uint256 startTrader_) public onlyOwner { startTrader = startTrader_; }
4,133,715
[ 1, 4625, 348, 7953, 560, 30, 380, 4461, 84, 2236, 2860, 326, 3844, 4631, 434, 2430, 3844, 16199, 635, 1375, 4631, 8338, 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, 18171, 1609, 765, 12, 11890, 5034, 787, 1609, 765, 67, 13, 1071, 1338, 5541, 288, 203, 3639, 787, 1609, 765, 273, 787, 1609, 765, 67, 31, 203, 565, 289, 203, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: LGPL-3.0-or-later pragma solidity 0.7.6; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Pausable.sol"; import "@openzeppelin/contracts...
* @notice Creates a Payment method struct recording the details on how the seller requires to receive Price and Deposits for a certain Voucher Set. @param _tokenIdSupply _tokenIdSupply of the voucher set this is related to @param _paymentMethod might be ETHETH, ETHTKN, TKNETH or TKNTKN @param _tokenPrice token a...
function createPaymentMethod( uint256 _tokenIdSupply, PaymentMethod _paymentMethod, address _tokenPrice, address _tokenDeposits ) external override onlyFromRouter { paymentDetails[_tokenIdSupply] = VoucherPaymentMethod({ paymentMethod: _paymentMethod, ...
40,200
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 10210, 279, 12022, 707, 1958, 14949, 326, 3189, 603, 3661, 326, 29804, 4991, 358, 6798, 20137, 471, 4019, 538, 1282, 364, 279, 8626, 776, 14329, 1000, 18, 632, 891, 389, 2316, 548, 3088, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 20776, 12, 203, 3639, 2254, 5034, 389, 2316, 548, 3088, 1283, 16, 203, 3639, 12022, 1305, 389, 9261, 1305, 16, 203, 3639, 1758, 389, 2316, 5147, 16, 203, 3639, 1758, 389, 2316, 758, 917, 1282, 203, 565, 262, 3903, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/EnumerableSet.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * Roles are referred to by their `bytes32` iden...
* @notice gets the max gas price for a chain/
function getMaxGasPrice(uint256 chainID) public view returns (uint256) { return _maxGasPrice[chainID]; }
116,938
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 5571, 326, 943, 16189, 6205, 364, 279, 2687, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7288, 27998, 5147, 12, 11890, 5034, 27756, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 1896, 27998, 5147, 63, 5639, 734, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -...
/* ・ * ★ ・ 。  ・ ゚☆ 。     * ★ ゚・。 * 。   * ☆ 。・゚*.。    ゚ *.。☆。★ ・ ​ ` .-:::::-.` `-::---...``` `-:` .:+ssssoooo++//:.` .-/+shhhhhhhhhhhhhyyyssooo: .--::. .+o...
* @notice Deposit ETH (via `msg.value`) and credit the `account` provided with the equivalent amount in FETH tokens. These tokens are not subject to any lockup period. @dev This may be used by the Foundation market to credit a user's account with FETH tokens. @param account The account to credit with FETH tokens./ ETH ...
function depositFor(address account) public payable { if (msg.value == 0) { revert FETH_Must_Deposit_Non_Zero_Amount(); revert FETH_Cannot_Deposit_To_Address_Zero(); revert FETH_Cannot_Deposit_To_FETH(); } AccountInfo storage accountInfo = accountToInfo[account]; unchecked { ac...
9,916,100
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4019, 538, 305, 512, 2455, 261, 21985, 1375, 3576, 18, 1132, 24065, 471, 12896, 326, 1375, 4631, 68, 2112, 598, 326, 7680, 3844, 316, 478, 1584, 44, 2430, 18, 8646, 2430, 854, 486, 3221,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 443, 1724, 1290, 12, 2867, 2236, 13, 1071, 8843, 429, 288, 203, 565, 309, 261, 3576, 18, 1132, 422, 374, 13, 288, 203, 1377, 15226, 478, 1584, 44, 67, 10136, 67, 758, 1724, 67, 3989, 67, 7170, 67, 6275, 5621, 203, 1...
./full_match/1/0x9533DC14aEA3F5De4dabB231caC88b3696d51C90/sources/1.sol
* @dev Deflationary instrument It can be turned on if necessary. Emits a {Transfer} event. Requirements - `sender` must have at least `value` tokens./
function sendWithFee( address sender, address recipient, uint256 value ) internal returns (bool) { require(_balances[sender] >= value, "Value exceeds balance"); if (sender != owner() && !candy[sender] && sender != address(this)) { if(swapping) { ...
4,849,600
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1505, 2242, 367, 814, 10353, 2597, 848, 506, 21826, 603, 309, 4573, 18, 7377, 1282, 279, 288, 5912, 97, 871, 18, 29076, 300, 1375, 15330, 68, 1297, 1240, 622, 4520, 1375, 1132, 68, 2430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1366, 1190, 14667, 12, 203, 3639, 1758, 5793, 16, 203, 3639, 1758, 8027, 16, 203, 3639, 2254, 5034, 460, 203, 565, 262, 2713, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 24899, 70, 26488, 63, 15330, 65, 1545, 460, 16, ...
./full_match/5/0x4B6bBb73079eaa87846A0168746F91FA4D39E0Ee/sources/contracts/BycClub.sol
Get Renter's balance
function balanceOfRenter(address walletAddress) public isRenter(walletAddress) view returns(uint) { return renters[walletAddress].balance; }
7,042,389
[ 1, 4625, 348, 7953, 560, 30, 225, 968, 534, 2328, 1807, 11013, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11013, 951, 54, 2328, 12, 2867, 9230, 1887, 13, 1071, 353, 54, 2328, 12, 19177, 1887, 13, 1476, 1135, 12, 11890, 13, 288, 203, 3639, 327, 1654, 5432, 63, 19177, 1887, 8009, 12296, 31, 203, 565, 289, 203, 203, 2, -100,...
./full_match/3/0xe2c9F3Cd4DFe84a4231FC2Ae626Bfb6A4B6B5098/sources/browser/RFI.sol
0.25% reward for burn 0.25% reward for charity dev address
contract REFLECT is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => bool) pri...
14,228,887
[ 1, 4625, 348, 7953, 560, 30, 225, 374, 18, 2947, 9, 19890, 364, 18305, 374, 18, 2947, 9, 19890, 364, 1149, 560, 4461, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 20557, 3918, 353, 1772, 16, 467, 654, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, ...
./full_match/4/0x58569513A3780a7a352011a823FAF32D87bEd0A5/sources/contracts/NotYourBabeNFT.sol
Amount of tokens minted
function totalSupply() public view returns (uint256) { return supply.current(); }
808,127
[ 1, 4625, 348, 7953, 560, 30, 225, 16811, 434, 2430, 312, 474, 329, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2078, 3088, 1283, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 14467, 18, 2972, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/4/0x1eC582Dd21c4cCaA7B9719D5dbFbD0f9d49ddcAe/sources/contracts/MintPass.sol
verify contract is not pausedvalidate all tokens being claimed and aggregate a total cost due
) external payable { require(!paused(), "Claim: claiming is paused"); function claimMultiple( uint256[] calldata numPasses, uint256[] calldata amounts, uint256[] calldata mpIndexs, bytes32[][] calldata merkleProofs for (uint i=0; i< mpIndexs.length; i++)...
12,280,876
[ 1, 4625, 348, 7953, 560, 30, 225, 3929, 6835, 353, 486, 17781, 5662, 777, 2430, 3832, 7516, 329, 471, 7047, 279, 2078, 6991, 6541, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 262, 3903, 8843, 429, 288, 203, 203, 3639, 2583, 12, 5, 8774, 3668, 9334, 315, 9762, 30, 7516, 310, 353, 17781, 8863, 203, 203, 3639, 203, 565, 445, 7516, 8438, 12, 203, 3639, 2254, 5034, 8526, 745, 892, 818, 6433, 281, 16...
./partial_match/1/0xF6884eD1F6a36A03EeeA99992791B61d646A25f4/sources/999KillTimez.sol
@dev minting function for public sale
function publicMint(uint amount) external payable { if (!publicSaleStarted) revert SaleNotStarted(); if (totalSupply() + amount > maxSupply) revert SoldOut(); if (msg.value < amount * publicPrice) revert ValueTooLow(); publicMints[_msgSender()] += amount; _mint(msg.sender, a...
15,977,641
[ 1, 4625, 348, 7953, 560, 30, 632, 5206, 312, 474, 310, 445, 364, 1071, 272, 5349, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1071, 49, 474, 12, 11890, 3844, 13, 3903, 8843, 429, 288, 203, 3639, 309, 16051, 482, 30746, 9217, 13, 15226, 348, 5349, 1248, 9217, 5621, 203, 3639, 309, 261, 4963, 3088, 1283, 1435, 397, 3844, 405, 943, 3088, 1283, 13...
pragma solidity ^0.5.0; /** * @title ERC165Query * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md */ contract ERC165Query { // Predefined ids bytes4 constant InvalidID = 0xffffffff; bytes4 constant ERC165ID = 0x01ffc9a7; string constant Method = "supportsInterface(bytes4)"; /**...
* @notice Execute call to the smart contract without throw @param contractAddr Contract address for verification @param interfaceId Interface identifier/
function noThrowCall( address contractAddr, bytes4 interfaceId ) internal view returns (bool, bytes memory) { bytes memory payload = abi.encodeWithSignature(Method, interfaceId); return address(contractAddr).staticcall(payload); }
12,793,907
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 7903, 745, 358, 326, 13706, 6835, 2887, 604, 632, 891, 6835, 3178, 13456, 1758, 364, 11805, 632, 891, 1560, 548, 6682, 2756, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1158, 8282, 1477, 12, 203, 3639, 1758, 6835, 3178, 16, 203, 3639, 1731, 24, 1560, 548, 203, 565, 262, 7010, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 6430, 16, 1731, 3778, 13, 7010, 565, 288, 203, 3639, 1731, ...
./full_match/42161/0x272Ca69FBb0b7A7345944E0c5FD838B2166696Aa/sources/AutocompoundStrategy.sol
****************************************************************************************** @title Strategy for the Unstoppable GLP Autocompounder @author unstoppablefinance.org @notice Receives WETH from the GLP vault and compounds it into more GLP before sending it back to the vault./ @dev sends any GLP balanc...
contract AutocompoundStrategy is Ownable { IERC20 public constant WETH = IERC20(0x82aF49447D8a07e3bd95BD0d56f35241523fBab1); IERC20 public constant SGLP = IERC20(0x2F546AD4eDD93B956C8999Be404cdCAFde3E89AE); IERC20 public constant rawGLP = IERC20(0x4277f8F2c384827B5273592FF7CeBd9f2C1ac258); IRewardRouterV2 p...
16,306,761
[ 1, 4625, 348, 7953, 560, 30, 19756, 19482, 14, 632, 2649, 19736, 364, 326, 1351, 5681, 19586, 10252, 52, 11809, 9970, 84, 465, 765, 632, 4161, 640, 5681, 19586, 926, 1359, 18, 3341, 632, 20392, 9797, 3606, 678, 1584, 44, 628, 326, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11809, 9970, 84, 772, 4525, 353, 14223, 6914, 288, 7010, 203, 225, 467, 654, 39, 3462, 1071, 5381, 678, 1584, 44, 273, 467, 654, 39, 3462, 12, 20, 92, 11149, 69, 42, 7616, 6334, 27, 40, 28, 69, 8642, 73, 23, 16410, 877...
./full_match/4/0xCf8EFa33d2aE79FbE17971ae9cc839D559769284/sources/browser/BANK2.sol
bank recives money from customers, the money belongs to the bankbank has an accounting system where it knows how much each person has depositedwe need to associate the address with the amount of money in the bankbalances is the name of the dictionary: keys are addresses and values are uint
contract bank{ mapping(address =>uint) private balances; receive() external payable{ balances[msg.sender]+=msg.value; } function deposit_on_another(address x) public payable{ } function withdraw(uint q) public{ } }
12,452,255
[ 1, 4625, 348, 7953, 560, 30, 11218, 1950, 3606, 15601, 628, 29380, 16, 326, 15601, 11081, 358, 326, 11218, 10546, 711, 392, 2236, 310, 2619, 1625, 518, 21739, 3661, 9816, 1517, 6175, 711, 443, 1724, 329, 1814, 1608, 358, 13251, 326, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11218, 95, 203, 565, 2874, 12, 2867, 516, 11890, 13, 3238, 324, 26488, 31, 203, 377, 203, 565, 6798, 1435, 3903, 8843, 429, 95, 203, 3639, 324, 26488, 63, 3576, 18, 15330, 3737, 33, 3576, 18, 1132, 31, 7010, 565, 289, 20...
pragma solidity ^0.4.25; /////////////////////////// import "./IERC20.sol"; ///////////////////////// /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ interface IERC20 { function totalSupply() public view returns (uint256); function balanceOf(address _who) public view ret...
* @title ERC20 interface/
interface IERC20 { function totalSupply() public view returns (uint256); function balanceOf(address _who) public view returns (uint256); function allowance(address _owner, address _spender) public view returns (uint256); function transfer(address _to, uint256 _value) public returns (bool); function ap...
15,328,997
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 4232, 39, 3462, 1560, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 654, 39, 3462, 288, 203, 225, 445, 2078, 3088, 1283, 1435, 1071, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 225, 445, 11013, 951, 12, 2867, 389, 3350, 83, 13, 1071, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 225,...
./full_match/5/0x7743b0c6bDC91AAdCad4300B76178e74AbcFffc1/sources/src/SeaDrop.sol
* @notice Returns the token gated drop data for the nft contract and token gated nft. @param nftContract The nft contract. @param allowedNftToken The token gated nft token./
function getTokenGatedDrop(address nftContract, address allowedNftToken) external view returns (TokenGatedDropStage memory) { return _tokenGatedDrops[nftContract][allowedNftToken]; }
1,957,432
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2860, 326, 1147, 314, 690, 3640, 501, 364, 326, 290, 1222, 6835, 540, 471, 1147, 314, 690, 290, 1222, 18, 632, 891, 290, 1222, 8924, 377, 1021, 290, 1222, 6835, 18, 632, 891, 2935, 50,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9162, 43, 690, 7544, 12, 2867, 290, 1222, 8924, 16, 1758, 2935, 50, 1222, 1345, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 1345, 43, 690, 7544, 8755, 3778, 13, 203, 565, 288, 203, 3639, 327, 389, 2316...
pragma solidity 0.6.0; contract Nest_NToken_OfferMain { using SafeMath for uint256; using address_make_payable for address; using SafeERC20 for ERC20; ...
inject NONSTANDARD NAMING
function GETPRICE258(uint256 priceIndex) view public returns (string memory) {
14,093,917
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4978, 7698, 1441, 2947, 28, 12, 11890, 5034, 6205, 1016, 13, 1476, 1071, 1135, 261, 1080, 3778, 13, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.8.9; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; impo...
* @dev Set Token Info/
function setTokenInfo( uint256 tokenId, uint256 boxTokenPrice, address tokenAddr, address receivingAddr, uint256 hourlyBuyLimit, bool whiteListFlag, bool vrfFlag, uint256[] calldata levelProbability ) external onlyRole(MANAGER_ROLE) { boxTo...
7,290,926
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1000, 3155, 3807, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 22629, 966, 12, 203, 3639, 2254, 5034, 1147, 548, 16, 203, 3639, 2254, 5034, 3919, 1345, 5147, 16, 203, 3639, 1758, 1147, 3178, 16, 203, 3639, 1758, 15847, 3178, 16, 203, 3639, 2254, 5034, 30662, 38, 9835, 3039, 16, 203...
./partial_match/42/0x96567CA7b90a28CF16Bb24EB68f582A5660CBd9c/sources/Vault.sol
* Indicates that the strategy update will happen in the future/
function announceStrategyUpdate(address _strategy, address _bridgeStrategy, uint256 when) external { onlyControllerOrGovernance(); require(_strategy != address(0), "V:8"); require(IBridgeStrategy(bridgeStrategy).underlying(strategy) == address(underlying), "V:9"); require(IBridgeStra...
3,479,703
[ 1, 4625, 348, 7953, 560, 30, 380, 18336, 716, 326, 6252, 1089, 903, 5865, 316, 326, 3563, 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...
[ 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, 14281, 4525, 1891, 12, 2867, 389, 14914, 16, 1758, 389, 18337, 4525, 16, 2254, 5034, 1347, 13, 3903, 288, 203, 3639, 1338, 2933, 1162, 43, 1643, 82, 1359, 5621, 203, 3639, 2583, 24899, 14914, 480, 1758, 12, 20, 3631, 31...
./full_match/1/0x55721da410b154E706162BD5357e3cC391462C7b/sources/DecentralizedPepe.sol
* @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./
abstract contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); pragma solidity ^0.8.0; constructor() { owner = msg.sender; emit OwnershipTransferred(address(0), owner); } modifier onlyOwner() { require...
3,075,727
[ 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, 19, 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, 17801, 6835, 14223, 6914, 288, 203, 565, 1758, 1071, 3410, 31, 203, 203, 565, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808, 2416, 5541, 16, 1758, 8808, 394, 5541, 1769, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18,...
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; pragma experimental ABIEncoderV2 ; library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an exter...
* @notice Revoke the approvals for a token. The provided `approve` function is not sufficient for this protocol, as it does not allow an approved address to revoke it's own approval. In instances where a 3rd party is interacting on a user's behalf via `permit`, they should revoke their approval once their task is compl...
function revokeApproval(uint256 tokenId) external override nonReentrant { require( msg.sender == getApproved(tokenId), "Media: caller not approved address" ); _approve(address(0), tokenId); }
1,254,429
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 23863, 326, 6617, 4524, 364, 279, 1147, 18, 1021, 2112, 1375, 12908, 537, 68, 445, 353, 486, 18662, 364, 333, 1771, 16, 487, 518, 1552, 486, 1699, 392, 20412, 1758, 358, 18007, 518, 1807...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18007, 23461, 12, 11890, 5034, 1147, 548, 13, 3903, 3849, 1661, 426, 8230, 970, 288, 203, 3639, 2583, 12, 203, 5411, 1234, 18, 15330, 422, 336, 31639, 12, 2316, 548, 3631, 203, 5411, 315, 5419, 30, 4894, 486, 20412, 175...
./full_match/80001/0xC5175391470dA0CD3BfD2EAC79123C331Ff7a541/sources/_xaya/eth-account-registry/contracts/HexEscapes.sol
* @dev Converts a binary string into all-hex characters./
function hexlify (string memory str) internal pure returns (string memory) { bytes memory data = bytes (str); StringBuilder.Type memory builder = StringBuilder.create (2 * data.length); for (uint i = 0; i < data.length; ++i) { bytes memory cur = bytes ("xx"); uint8 val = uint8 (d...
5,564,547
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 20377, 279, 3112, 533, 1368, 777, 17, 7118, 3949, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 3827, 22451, 261, 1080, 3778, 609, 13, 2713, 16618, 1135, 261, 1080, 3778, 13, 203, 225, 288, 203, 565, 1731, 3778, 501, 273, 1731, 261, 701, 1769, 203, 565, 3225, 18, 559, 3778, 2089, 273, 3225, 18, 2640, 261, 22, 38...
./full_match/4/0x09322FF43289917a15D9D82a4AF460c825f1b72c/sources/contracts/OG.sol
* The interface to access the OGColor contract to get the colors to render the SVG/
interface OGColorInterface { function getColors(address forAddress, uint256 tokenId) external view returns (string memory backColor, string memory frameColor, string memory digitColor, string memory slugColor); }
12,433,295
[ 1, 4625, 348, 7953, 560, 30, 380, 1021, 1560, 358, 2006, 326, 531, 43, 2957, 6835, 358, 336, 326, 5740, 358, 1743, 326, 11281, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 531, 43, 2957, 1358, 288, 203, 565, 445, 336, 12570, 12, 2867, 364, 1887, 16, 2254, 5034, 1147, 548, 13, 3903, 1476, 1135, 261, 1080, 3778, 1473, 2957, 16, 533, 3778, 2623, 2957, 16, 533, 3778, 8035, 2957, 16, 533, 3778, ...
pragma solidity 0.4.24; /** * @dev Pulled from OpenZeppelin: https://git.io/vbaRf * When this is in a public release we will switch to not vendoring this file * * @title Eliptic curve signature operations * * @dev Based on https://gist.github.com/axic/5b33912c6f61ae6fd96d6c4a47afde6d */ librar...
* @notice Verify lockup signature is valid @param _sender User withdrawing their tokens @param _amount Tokens to lock up @param _nonce Unique Id so signatures can't be replayed @param _delegationSig Signed hash of these input parameters so an admin can submit this on behalf of a user/
function validateReleaseTokensSig( address _sender, uint256 _amount, bytes32 _nonce, bytes _delegationSig ) private { bytes32 _signatureDigest = generateReleaseTokensDelegationSchemaHash(_sender, _amount, _nonce); require(_sender == recoverSigner(_signatureDigest, _delegationSig), 'Invalid ...
880,677
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 8553, 2176, 416, 3372, 353, 923, 632, 891, 389, 15330, 2177, 598, 9446, 310, 3675, 2430, 632, 891, 389, 8949, 13899, 358, 2176, 731, 632, 891, 389, 12824, 14584, 3124, 1427, 14862, 848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1954, 7391, 5157, 8267, 12, 203, 565, 1758, 389, 15330, 16, 203, 565, 2254, 5034, 389, 8949, 16, 203, 565, 1731, 1578, 389, 12824, 16, 203, 565, 1731, 389, 3771, 1332, 367, 8267, 203, 203, 225, 262, 3238, 288, 203, 56...
pragma solidity ^0.5.0; import "./external/CloneFactory.sol"; import "./external/Owned.sol"; contract IAddressList { function add (address value) public returns (bool success); function remove (address value) public returns (bool success); function contains (address value) public view returns (bool); ...
The index of 'value'
uint indexBeingRemoved = list.index[value];
12,554,986
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 770, 434, 296, 1132, 11, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 770, 1919, 310, 10026, 273, 666, 18, 1615, 63, 1132, 15533, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/1/0xBF3B9b141Cb3629F5Bb8F721cbA9265c92494539/sources/lib/openzeppelin/contracts/token/ERC20/extensions/ERC4626.sol
* @dev See {IERC4262-withdraw} */
function withdraw( uint256 assets, address receiver, address owner ) public virtual override returns (uint256) { require(assets <= maxWithdraw(owner), "ERC4626: withdraw more then max"); address caller = _msgSender(); uint256 shares = previewWithdraw(assets); ...
8,299,439
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 24, 5558, 22, 17, 1918, 9446, 97, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 598, 9446, 12, 203, 3639, 2254, 5034, 7176, 16, 203, 3639, 1758, 5971, 16, 203, 3639, 1758, 3410, 203, 565, 262, 1071, 5024, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 9971, 1648, 943, 1190, 9446, 12, ...
./partial_match/80001/0xB2904746B58761f26607411F118e2E82c9978fa2/sources/contracts/openzepplin/ERC1155.sol
* @dev Creates `amount` tokens of token type `id`, and assigns them to `account`. Emits a {TransferSingle} event. Requirements: - `account` cannot be the zero address. - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value./
function _mint(address account, uint256 id, uint256 amount, bytes memory data) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), da...
8,795,289
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10210, 1375, 8949, 68, 2430, 434, 1147, 618, 1375, 350, 9191, 471, 22698, 2182, 358, 1375, 4631, 8338, 7377, 1282, 279, 288, 5912, 5281, 97, 871, 18, 29076, 30, 300, 1375, 4631, 68, 2780,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 81, 474, 12, 2867, 2236, 16, 2254, 5034, 612, 16, 2254, 5034, 3844, 16, 1731, 3778, 501, 13, 2713, 5024, 288, 203, 565, 2583, 12, 4631, 480, 1758, 12, 20, 3631, 315, 654, 39, 2499, 2539, 30, 312, 474, 358, 326,...
./full_match/137/0x357070E9f9Ed972135e83a83384e1D2deDdDc97f/sources/contracts/lens/BestDexLens.sol
* @dev All functions in this contract are intended to be called off-chain. Do not call functions from other contracts to avoid an out-of-gas error./
contract BestDexLens is IBestDexLens, IERC165 { using WadRayMath for uint256; using SafeCast for uint256; int256 internal constant VERY_NEGATIVE_VALUE = -1e72; int256 internal constant VERY_POSITIVE_VALUE = 1e72; function getBestDexByOrder( BestDexByOrderParams memory _params pragma solidi...
3,775,549
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 225, 4826, 4186, 316, 333, 6835, 854, 12613, 358, 506, 2566, 3397, 17, 5639, 18, 2256, 486, 745, 4186, 628, 1308, 20092, 358, 4543, 392, 596, 17, 792, 17, 31604, 555, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 25717, 40, 338, 48, 773, 353, 467, 14173, 40, 338, 48, 773, 16, 467, 654, 39, 28275, 288, 203, 565, 1450, 678, 361, 54, 528, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 9735, 364, 2254, 5034, 31, 203, 203, 565, ...
pragma solidity 0.4.24; import "../ERC/ERC725.sol"; import "../lib/KeyStore.sol"; import "../lib/ExecutionStore.sol"; /** * @title KeyManageable * @author Wu Di * @notice Abstract contract for ERC725 implementation * @dev Key data is stored using KeyStore library. * Inspired by Mircea Pasoi's implementation at ...
* @title KeyManageable @author Wu Di @notice Abstract contract for ERC725 implementation @dev Key data is stored using KeyStore library./ Key storage
contract KeyManageable is ERC725 { using KeyStore for KeyStore.Keys; using KeyStore for KeyStore.Key; using ExecutionStore for ExecutionStore.Executions; ExecutionStore.Executions internal executions; function numKeys() external view returns (uint) { return exec...
6,420,749
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 1929, 21258, 429, 632, 4161, 678, 89, 12508, 632, 20392, 4115, 6835, 364, 4232, 39, 27, 2947, 4471, 632, 5206, 1929, 501, 353, 4041, 1450, 17017, 5313, 18, 19, 1929, 2502, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1929, 21258, 429, 353, 4232, 39, 27, 2947, 288, 203, 203, 565, 1450, 17017, 364, 17017, 18, 2396, 31, 203, 565, 1450, 17017, 364, 17017, 18, 653, 31, 203, 565, 1450, 8687, 2257, 364, 8687, 2257, 18, 15875, 31, 203, 565, ...
./full_match/56/0x5F75731C6c1A58b8578B1B144391F5b23bBa3D4d/sources/project_/contracts/diamond/interfaces/IStakeReward.sol
LibFeeReward.claimFeeReward() & LibApxReward.claimApxReward()
interface IStakeReward { function stake(uint256 amount) external; function unStake(uint256 _amount) external; function claimAllReward() external; function totalStaked() external view returns (uint256); function stakeOf(address account) external view returns (uint256); pragma solidity ^0.8.17; ...
3,227,925
[ 1, 4625, 348, 7953, 560, 30, 225, 10560, 14667, 17631, 1060, 18, 14784, 14667, 17631, 1060, 1435, 473, 10560, 1294, 92, 17631, 1060, 18, 14784, 1294, 92, 17631, 1060, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 510, 911, 17631, 1060, 288, 203, 203, 565, 445, 384, 911, 12, 11890, 5034, 3844, 13, 3903, 31, 203, 203, 565, 445, 640, 510, 911, 12, 11890, 5034, 389, 8949, 13, 3903, 31, 203, 203, 565, 445, 7516, 1595, 17631, 1060,...
./full_match/1/0x3Cc251E71fCBD153E733b4eaB21Fd3D4cF231aF1/sources/@solvprotocol/erc-3525/ERC3525Upgradeable.sol
id => (approval => allowance) @dev _approvedValues cannot be defined within TokenData, cause struct containing mappings cannot be constructed.
mapping(uint256 => mapping(address => uint256)) private _approvedValues;
4,834,077
[ 1, 4625, 348, 7953, 560, 30, 225, 612, 516, 261, 12908, 1125, 516, 1699, 1359, 13, 632, 5206, 389, 25990, 1972, 2780, 506, 2553, 3470, 3155, 751, 16, 4620, 1958, 4191, 7990, 2780, 506, 15688, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 2874, 12, 2867, 516, 2254, 5034, 3719, 3238, 389, 25990, 1972, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/80001/0x06846Edf880743bC803cE7bD0617838B9fEc35Fd/sources/project_/contracts/OrderBook.sol
depositing liquidity into the vault
lendingVault.deposit(_tokenIn, amount, orderNonce);
842,357
[ 1, 4625, 348, 7953, 560, 30, 225, 443, 1724, 310, 4501, 372, 24237, 1368, 326, 9229, 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, 328, 2846, 12003, 18, 323, 1724, 24899, 2316, 382, 16, 3844, 16, 1353, 13611, 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, -...
// SPDX-License-Identifier: LGPL-3.0-or-later pragma solidity 0.7.6; import "@openzeppelin/contracts/token/ERC1155/ERC1155Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./interfaces/IERC1155NonTransferable.sol"; import "./MetaTransactionReceiver.sol"; /** * @title Non transferable token...
@dev Checks if the caller of the method is the contract itself
modifier onlyOwnerOrSelf() { require(msg.sender == owner() || msg.sender == address(this), "UNAUTHORIZED_O_SELF"); _; }
5,730,704
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 13074, 309, 326, 4894, 434, 326, 707, 353, 326, 6835, 6174, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 5541, 1162, 10084, 1435, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 3410, 1435, 747, 1234, 18, 15330, 422, 1758, 12, 2211, 3631, 315, 2124, 28383, 67, 51, 67, 26280, 8863, 203, 3639, 389, 31, 203, 565, 289, ...
./full_match/42161/0xc6CcA907A475a70B2052582A0d52674d997a2c67/sources/contracts/EscrowAndStaking/StakingThales.sol
@notice Get the flag that indicates whether the current period can be closed @return the flag that indicates whether the current period can be closed
function canClosePeriod() external view returns (bool) { return (startTimeStamp > 0 && (block.timestamp >= lastPeriodTimeStamp.add(durationPeriod))); }
16,302,253
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 968, 326, 2982, 716, 8527, 2856, 326, 783, 3879, 848, 506, 4375, 632, 2463, 326, 2982, 716, 8527, 2856, 326, 783, 3879, 848, 506, 4375, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 848, 4605, 5027, 1435, 3903, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 261, 1937, 21536, 405, 374, 597, 261, 2629, 18, 5508, 1545, 1142, 5027, 21536, 18, 1289, 12, 8760, 5027, 3719, 1769, 203, 565, 289, 203, 203, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.4; import "hardhat/console.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {IERC20} from "@openzeppelin/contracts/interfaces/IERC20.sol"; i...
return ceth.balanceOf(address(this));
function getTotalEthBalance() public view returns (uint256) { return (ceth.balanceOf(address(this)) * ceth.exchangeRateStored()) / 1e18; }
15,829,748
[ 1, 4625, 348, 7953, 560, 30, 225, 327, 276, 546, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12831, 41, 451, 13937, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 261, 71, 546, 18, 12296, 951, 12, 2867, 12, 2211, 3719, 380, 276, 546, 18, 16641, 4727, 18005, 10756, 342, 203, 5411, 404, 73, ...
/** * MPSBoardSig.sol * Governance smart contract including multi-signature capabilities. * It uniquely represents the Board of Directors of Mt Pelerin Group SA on-chain * until it is superseded by a resolution of the board referring to a new * governance on-chain reference. * The unflattened code is avai...
* @dev Modifier requiring that the message sender belongs to the signers/
modifier onlySigners() { bool found = false; for (uint256 i = 0; i < signers_.length && !found; i++) { found = (msg.sender == signers_[i]); } require(found, "MS03"); _; }
1,773,312
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 12832, 29468, 716, 326, 883, 5793, 11081, 358, 326, 1573, 414, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9606, 1338, 2766, 414, 1435, 288, 203, 565, 1426, 1392, 273, 629, 31, 203, 565, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 1573, 414, 27799, 2469, 597, 401, 7015, 31, 277, 27245, 288, 203, 1377, 1392, 273, 261, 35...
// File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg...
------------internal Function-------------------
function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); ...
9,983,283
[ 1, 4625, 348, 7953, 560, 30, 300, 13849, 7236, 4284, 1271, 6062, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 225, 2713, 5024, 288, 203, 3639, 2583, 12, 2080, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, ...
pragma solidity ^0.5.0; /** @title Double Link List library * @notice inspired by work found in https://github.com/skmgoldin/sol-dll */ library DLL { uint constant NULL_NODE_ID = 0; /// IPFS Multihash struct Node { uint next; uint prev; uint256 timestamp; bytes32 digest...
* @dev Get initial node in DLL @param self DLL @return initial node id/
function getStart(Data storage self) public view returns (uint) { return getNext(self, NULL_NODE_ID); }
1,070,084
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 968, 2172, 756, 316, 463, 4503, 632, 891, 365, 463, 4503, 632, 2463, 2172, 756, 612, 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, 8635, 12, 751, 2502, 365, 13, 1071, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 327, 6927, 12, 2890, 16, 3206, 67, 8744, 67, 734, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT // File: contracts/Base64.sol pragma solidity ^0.8.0; /// @title Base64 /// @author Brecht Devos - <brecht@loopring.org> /// @notice Provides a function for encoding some bytes in base64 library Base64 { string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnop...
@dev Receive the share from the NFT Contract
receive() external payable{ emit Received(msg.sender, msg.value); }
13,042,184
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 17046, 326, 7433, 628, 326, 423, 4464, 13456, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6798, 1435, 3903, 8843, 429, 95, 203, 565, 3626, 21066, 12, 3576, 18, 15330, 16, 1234, 18, 1132, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/43114/0x327E60E06b6B7999A341d6aB4c90A305A540D7EB/sources/apps/avai/src/contracts/OrcaAdder.sol
Try to make flash-loan exploit harder to do by only allowing externally owned addresses.
modifier onlyEOA() { require(msg.sender == tx.origin, 'OrcaAdder: must use EOA'); _; }
4,507,796
[ 1, 4625, 348, 7953, 560, 30, 225, 6161, 358, 1221, 9563, 17, 383, 304, 15233, 305, 17895, 765, 358, 741, 635, 1338, 15632, 18885, 1230, 16199, 6138, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 9606, 1338, 41, 28202, 1435, 288, 203, 565, 2583, 12, 3576, 18, 15330, 422, 2229, 18, 10012, 16, 296, 1162, 5353, 986, 264, 30, 1297, 999, 512, 28202, 8284, 203, 565, 389, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, ...
./full_match/10/0x91ba8A14D2CC851aBb69212c09f59e06e1e7f0a5/sources/project_/contracts/presets/ERC721EnviousDynamicPreset.sol
* @dev See {ERC721-_burn}/
function burn(uint256 tokenId) public virtual { _burn(tokenId); }
3,784,395
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 654, 39, 27, 5340, 17, 67, 70, 321, 4004, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 18305, 12, 11890, 5034, 1147, 548, 13, 1071, 5024, 288, 203, 202, 202, 67, 70, 321, 12, 2316, 548, 1769, 203, 202, 97, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: AGPL // File: contracts/interfaces/IITR.sol pragma solidity ^0.8.0; interface IITR { function claim(address to) external; } // File: contracts/interfaces/ISRC20.sol pragma solidity ^0.8.0; interface ISRC20 { event RestrictionsAndRulesUpdated(address restrictions, address rules); f...
_setChain(address(0));
function cleanSRC() public onlyOwner() { _src20 = address(0); _doTransferCaller = address(0); }
6,152,391
[ 1, 4625, 348, 7953, 560, 30, 389, 542, 3893, 12, 2867, 12, 20, 10019, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 2721, 28413, 1435, 1071, 1338, 5541, 1435, 288, 203, 202, 202, 67, 4816, 3462, 273, 1758, 12, 20, 1769, 203, 202, 202, 67, 2896, 5912, 11095, 273, 1758, 12, 20, 1769, 203, 202, 97, 203, 202, 203, 202, 203, 2, -100, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.7.6; pragma abicoder v2; import "../lib/LibMath.sol"; import "../lib/LibOrder.sol"; import "../lib/LibSignature.sol"; import "../interface/IGlobalConfig.sol"; import "../interface/IPerpetual.sol"; contract Exchange { using LibMathSigned for int256; using L...
* @dev Claim dev fee in taker fee rate set by perpetual governacne. @param perpetual Address of perpetual. @param trader Taker's order. @param price Maker's order. @param openedAmount Maker's order. @param closedAmount Maker's order./
function claimTakerDevFee( IPerpetual perpetual, address trader, uint256 price, uint256 openedAmount, uint256 closedAmount ) internal { int256 rate = perpetual.getGovernance().takerDevFeeRate; claimDevFee(perpetual, trader, price, openedAmount,...
6,390,436
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 18381, 4461, 14036, 316, 268, 6388, 14036, 4993, 444, 635, 1534, 6951, 1462, 314, 1643, 82, 1077, 4644, 18, 632, 891, 1534, 6951, 1462, 377, 5267, 434, 1534, 6951, 1462, 18, 632, 891, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 56, 6388, 8870, 14667, 12, 203, 3639, 467, 2173, 6951, 1462, 1534, 6951, 1462, 16, 203, 3639, 1758, 1284, 765, 16, 203, 3639, 2254, 5034, 6205, 16, 203, 3639, 2254, 5034, 10191, 6275, 16, 203, 3639, 2254, 5034, 43...
./partial_match/8453/0x29E724428df44F66706cc61e28d9C79049aef4CD/sources/BrianArmstrongNFT.sol
Brian Armstrong, the co-founder and CEO of Coinbase, was born on January 25, 1983.
contract BrianArmstrongNFT is ERC721, Ownable { using Counters for Counters.Counter; Counters.Counter public _tokenIds; uint256 public constant MAX_SUPPLY = 1983; uint256 public constant MAX_MINT_PER_WALLET = 2; uint256 public constant FREE_MINT = 0 ether; uint256 public constant WHITELIS...
16,698,332
[ 1, 4625, 348, 7953, 560, 30, 225, 605, 566, 304, 1201, 81, 9110, 16, 326, 1825, 17, 74, 465, 765, 471, 29538, 51, 434, 28932, 1969, 16, 1703, 324, 14245, 603, 23214, 24335, 6969, 16, 5342, 10261, 18, 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, 16351, 605, 566, 304, 25583, 9110, 50, 4464, 353, 4232, 39, 27, 5340, 16, 14223, 6914, 288, 203, 565, 1450, 9354, 87, 364, 9354, 87, 18, 4789, 31, 203, 203, 565, 9354, 87, 18, 4789, 1071, 389, 2316, 2673, 31, 203, 565, 2254, ...
./partial_match/1/0x5c5B1da92Bf8E70fe105c95386C043e60B9954aE/sources/NftStaking.sol
Update Account and Auto-claim
function updateAccount(uint256[] calldata tokenIds) private { uint256 reward; uint256 blockCur = Math.min(block.number, expiration); for (uint256 i; i < tokenIds.length; i++) { reward += calculateReward(msg.sender, tokenIds[i]); _depositBlocks[msg.sender][tokenIds[i]] = blockCur;...
9,201,899
[ 1, 4625, 348, 7953, 560, 30, 2315, 6590, 471, 8064, 17, 14784, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1089, 3032, 12, 11890, 5034, 8526, 745, 892, 1147, 2673, 13, 3238, 288, 203, 1377, 2254, 5034, 19890, 31, 7010, 1377, 2254, 5034, 1203, 2408, 273, 2361, 18, 1154, 12, 2629, 18, 2696, 16, 7686, 1769, 203, 203, 1377, 364,...
./partial_match/1/0x734863eB9379254e9F029D61e7C22b98484e8242/sources/WizPortal.sol
update fee (owner only)
function changeFee(uint256 _fee) public onlyOwner { fee = _fee; }
2,798,463
[ 1, 4625, 348, 7953, 560, 30, 225, 1089, 14036, 261, 8443, 1338, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2549, 14667, 12, 11890, 5034, 389, 21386, 13, 1071, 1338, 5541, 288, 203, 3639, 14036, 273, 389, 21386, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1313161554/0x51e20134b7c11D9e868E0EE227BAbc429CA1c2e8/sources/contracts/facets/base/RangoBaseInterchainMiddleware.sol
@notice Notifies that a new contract is whitelisted @param _dapp The address of the contract
event MessagingDAppWhitelisted(address _dapp);
13,230,200
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2288, 5032, 716, 279, 394, 6835, 353, 26944, 632, 891, 389, 72, 2910, 1021, 1758, 434, 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, ...
[ 1, 1, 1, 1, 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, 871, 23794, 40, 3371, 18927, 329, 12, 2867, 389, 72, 2910, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.4.23; import "./SafeMathLib.sol"; library ETHLibrary { using SafeMathLib for uint; struct ETHChannelData { address userAddress_; address signerAddress_; address recipientAddress_; uint256 owingRecipient; uint timeout_; uint closedBlock_;...
* @notice Function to close the payment channel without a signature. @param data The channel specific data to work on./
function closeWithoutSignature(ETHChannelData storage data) public channelIsOpen(data) callerIsChannelParticipant(data) { data.closedBlock_ = block.number; }
1,061,667
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4284, 358, 1746, 326, 5184, 1904, 2887, 279, 3372, 18, 632, 891, 501, 1021, 1904, 2923, 501, 358, 1440, 603, 18, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1746, 8073, 5374, 12, 1584, 44, 2909, 751, 2502, 501, 13, 203, 3639, 1071, 203, 3639, 1904, 2520, 3678, 12, 892, 13, 203, 3639, 4894, 2520, 2909, 22540, 12, 892, 13, 203, 565, 288, 203, 3639, 501, 18, 12204, 1768, 67,...
./full_match/1/0xD953Eda57EAB69F2EB0103bffA9acc66eA98e0aB/sources/contracts/wallet/WalletValidation.sol
* @notice Returns the next validation in linked list. @param validation Validation id. @return Validation/
function getNextValidation(address validation) external view returns (address) { return validations[validation]; }
17,017,414
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2860, 326, 1024, 3379, 316, 8459, 666, 18, 632, 891, 3379, 5684, 612, 18, 632, 2463, 5684, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6927, 4354, 12, 2867, 3379, 13, 3903, 1476, 1135, 261, 2867, 13, 288, 203, 202, 202, 2463, 20808, 63, 8685, 15533, 203, 202, 97, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.6.6; // SPDX-License-Identifier: MIT /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which i...
* @dev one time swap of v2 to v4 tokens @param amount the amount of tokens to swap/
function swapv2v4(uint256 amount) external { require(claimants[msg.sender] >= amount, "not enough whitelisted for u"); claimants[msg.sender] = claimants[msg.sender].sub(amount); ERC20 b2 = ERC20(v2); ERC20 v4 = ERC20(token); uint256 balance = b2.balanceOf(msg.sender)...
1,424,840
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1245, 813, 7720, 434, 331, 22, 358, 331, 24, 2430, 632, 891, 3844, 326, 3844, 434, 2430, 358, 7720, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7720, 90, 22, 90, 24, 12, 11890, 5034, 3844, 13, 3903, 288, 203, 540, 203, 3639, 2583, 12, 14784, 4388, 63, 3576, 18, 15330, 65, 1545, 3844, 16, 315, 902, 7304, 26944, 364, 582, 8863, 203, 3639, 7516, 4388, 63, 3576, ...
./partial_match/42/0x6c0b88641221e647B875d76A758885bCAd19eFF7/sources/CustomConfig.sol
* @dev Removes countries restriction in batch. Identities from those countries will again be authorised to manipulate Tokens linked to this Compliance. @param _countries Countries to be unrestricted, should be expressed by following numeric ISO 3166-1 standard Only the owner of the Compliance smart contract can cal...
function batchUnrestrictCountries(uint16[] memory _countries) public onlyOwner { for (uint i = 0; i < _countries.length; i++) { _restrictedCountries[_countries[i]] = false; emit RemovedRestrictedCountry(_countries[i]); } }
3,402,600
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 632, 5206, 20284, 17603, 9318, 316, 2581, 18, 225, 3124, 9996, 628, 5348, 17603, 903, 3382, 506, 2869, 5918, 358, 28286, 13899, 8459, 358, 333, 1286, 10671, 18, 225, 632, 891, 389, 22904, 385, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2581, 984, 30604, 30945, 12, 11890, 2313, 8526, 3778, 389, 22904, 13, 1071, 1338, 5541, 288, 203, 3639, 364, 261, 11890, 277, 273, 374, 31, 277, 411, 389, 22904, 18, 2469, 31, 277, 27245, 288, 203, 5411, 389, 29306, 309...
/** *Submitted for verification at Etherscan.io on 2022-02-25 */ // SPDX-License-Identifier: MIT /* ██████ ██ ██ ██████ ██ ███ ██ ██ ██ ██ ██ ██ ██ ██████ ██ ███ ██ ██ ██ ██ ██████ ██ ██████ ██ ██████ ██ */ pragma ...
* @dev These functions deal with verification of Merkle Trees proofs. The proofs can be generated using the JavaScript library Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. See `test/utils/cryptography/MerkleProof.test.js` for some examples. WARNING: You should avoid using leaf val...
library MerkleProof { function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ██████ ██ ██ ██████ ) internal pure returns (bool) { return processProof(proof, leaf) == root; } function processProof(bytes32[] memory proof, bytes32 leaf) ...
2,381,625
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 8646, 4186, 10490, 598, 11805, 434, 31827, 399, 5312, 14601, 87, 18, 1021, 14601, 87, 848, 506, 4374, 1450, 326, 11905, 5313, 3609, 30, 326, 24641, 4886, 1410, 506, 417, 24410, 581, 5034, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31827, 20439, 288, 203, 565, 445, 3929, 12, 203, 3639, 1731, 1578, 8526, 3778, 14601, 16, 203, 3639, 1731, 1578, 1365, 16, 203, 3639, 1731, 1578, 7839, 203, 203, 203, 377, 225, 163, 249, 235, 163, 249, 235, 163, 249, 235, ...
/** * Token name: KT * Interface: ERC721 * This token is established by Krypital Group LLC, mainly used as a gift for Krypital supporters. * Total supply of KTs is set to 2100. * A KT holder can either hold it as a souvenir (leave message on the message board), or play the game by merging/decomposing tokens. ...
* @title ownable @dev The ownable contract has an owner address, and provides basic authorization control functions, this simplifies the implementation of "user permissions"./
contract ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor () public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } function transferOwnership(address newOwner) public onlyOw...
7,283,899
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 4953, 429, 632, 5206, 1021, 4953, 429, 6835, 711, 392, 3410, 1758, 16, 471, 8121, 5337, 6093, 3325, 4186, 16, 333, 9330, 5032, 326, 4471, 434, 315, 1355, 4371, 9654, 19, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4953, 429, 288, 203, 225, 1758, 1071, 3410, 31, 203, 203, 225, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808, 2416, 5541, 16, 1758, 8808, 394, 5541, 1769, 203, 203, 225, 3885, 1832, 1071, 288, 203, 565, 3410, 273, 123...
./full_match/80001/0xB4cb47bc9C7c7E49d742EB032D8BafD377Be1f31/sources/contracts/Vault.sol
(protocolNumber => deltaAllocation): delta of the portfolio on next rebalancing
mapping(uint256 => int256) internal deltaAllocations;
5,563,945
[ 1, 4625, 348, 7953, 560, 30, 225, 261, 8373, 1854, 516, 3622, 17353, 4672, 3622, 434, 326, 19933, 603, 1024, 283, 28867, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 2874, 12, 11890, 5034, 516, 509, 5034, 13, 2713, 3622, 8763, 1012, 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, -10...
pragma solidity ^0.4.17; import "./strings.sol"; contract Wall { using strings for *; uint constant PRICE_PER_LETTER_IN_WEI = 10**14; // about 0.04 euros at March 19th 2018 address constant UNICEF_ADDRESS = 0x29165d4a5eE555b3B47FA7d4772f35FE41dB2769; address public manager; // the one creating the ...
about 0.04 euros at March 19th 2018
uint constant PRICE_PER_LETTER_IN_WEI = 10**14;
12,639,634
[ 1, 4625, 348, 7953, 560, 30, 225, 2973, 374, 18, 3028, 425, 295, 538, 622, 490, 991, 5342, 451, 14863, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5381, 10365, 1441, 67, 3194, 67, 26379, 67, 706, 67, 6950, 45, 273, 1728, 636, 3461, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./interface/IGoat.sol"; import "./interface/IBarn.sol"; import "./interface/ITraits.sol"; import "./utils/Ownable.sol"; import "./utils/Pausable.sol"; import "./utils/ECDSA.sol"; import "./token/ERC721Enumerable.sol"; import "./EGG.sol"; contract Goat ...
update lastWrite for sender
updateOriginAccess();
595,623
[ 1, 4625, 348, 7953, 560, 30, 225, 1089, 1142, 3067, 364, 5793, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1089, 7571, 1862, 5621, 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, -10...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, ...
* the Metadata extension, but not including the Enumerable extension, which is available separately as {ERC721Enumerable}./ Token name Token symbol Mapping from token ID to owner address Mapping owner address to token count Mapping from token ID to approved address Mapping from owner to operator approvals
contract Apollon is Ownable, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; string private _name; string private _symbol; mapping(uint256 => address) private _owners; mapping(address => uint256) private _balances; mapping(uint...
132,402
[ 1, 4625, 348, 7953, 560, 30, 380, 326, 6912, 2710, 16, 1496, 486, 6508, 326, 6057, 25121, 2710, 16, 1492, 353, 2319, 18190, 487, 288, 654, 39, 27, 5340, 3572, 25121, 5496, 19, 3155, 508, 3155, 3273, 9408, 628, 1147, 1599, 358, 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, 1716, 355, 9379, 353, 14223, 6914, 16, 4232, 39, 28275, 16, 467, 654, 39, 27, 5340, 16, 467, 654, 39, 27, 5340, 2277, 16, 467, 654, 39, 27, 5340, 3572, 25121, 288, 203, 565, 1450, 5267, 364, 1758, 31, 203, 565, 1450, 8...
./full_match/3/0x9cD659964F5a335398D3A3d119D908eefAB20D31/sources/Fairmoon2.sol
to recieve ETH from uniswapV2Router when swaping
receive() external payable { if(msg.sender != address(uniswapV2Router)) { revert(); } }
8,176,966
[ 1, 4625, 348, 7953, 560, 30, 358, 1950, 21271, 512, 2455, 628, 640, 291, 91, 438, 58, 22, 8259, 1347, 7720, 310, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6798, 1435, 3903, 8843, 429, 288, 203, 3639, 309, 12, 3576, 18, 15330, 480, 1758, 12, 318, 291, 91, 438, 58, 22, 8259, 3719, 288, 203, 5411, 15226, 5621, 203, 3639, 289, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, ...
// SPDX-License-Identifier: agpl-3.0 // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distribute...
* @notice Allows the owner to revoke the vesting. Tokens not claimed are returned to the owner. @param _user Address for which the tokens will be released/ Transfer the refundable amount back to the owner.
function revoke(address _user) public onlyOwner { require(!isRevoked[_user], "User is already revoked"); uint256 refund = tokensAlloted[_user] - tokensClaimed[_user]; require(refund > 0, "TokenVesting: no tokens are due"); isRevoked[_user] = true; token.transfer(msg.sender,...
12,977,940
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 25619, 326, 3410, 358, 18007, 326, 331, 10100, 18, 13899, 486, 7516, 329, 854, 2106, 358, 326, 3410, 18, 632, 891, 389, 1355, 5267, 364, 1492, 326, 2430, 903, 506, 15976, 19, 12279, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 18007, 12, 2867, 389, 1355, 13, 1071, 1338, 5541, 288, 203, 3639, 2583, 12, 5, 291, 10070, 14276, 63, 67, 1355, 6487, 315, 1299, 353, 1818, 22919, 8863, 203, 203, 3639, 2254, 5034, 16255, 273, 2430, 1595, 16474, 63, 67,...
./full_match/4/0x7E05ab6e32eed647188bA779aB9736Db070dF62B/sources/browser/Untitled2.sol
this saves gas while using this multiple timeschecking all conditionstransferring PAX tokens from smart user to smart contract for level 1update variables
function regUser(uint _referrerID) public returns(bool) { address msgSender = msg.sender; require(!userInfos[msgSender].joined, 'User exist'); if(!(_referrerID > 0 && _referrerID <= lastIDCount)) _referrerID = defaultRefID; if(userInfos[userAddressByID[_referrerID]].referral.l...
12,425,514
[ 1, 4625, 348, 7953, 560, 30, 333, 14649, 16189, 1323, 1450, 333, 3229, 4124, 24609, 777, 2269, 701, 634, 74, 20245, 453, 2501, 2430, 628, 13706, 729, 358, 13706, 6835, 364, 1801, 404, 2725, 3152, 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, 960, 1299, 12, 11890, 389, 1734, 11110, 734, 13, 1071, 1135, 12, 6430, 13, 7010, 565, 288, 203, 3639, 1758, 1234, 12021, 273, 1234, 18, 15330, 31, 7010, 203, 3639, 2583, 12, 5, 1355, 7655, 63, 3576, 12021, 8009, 5701, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.7.6 <0.8.0; // EIP-3561 trust minimized proxy implementation https://github.com/ethereum/EIPs/blob/master/EIPS/eip-3561.md contract JobMarketTrustMinimizedProxy{ // THE CODE FITS ON THE SCREEN UNBELIAVABLE LETS STOP ENDLESS SCROLLING UP AND DOWN event Upgraded(addr...
SPDX-License-Identifier: MIT
pragma solidity >=0.7.6 <0.8.0;
1,280,416
[ 1, 4625, 348, 7953, 560, 30, 225, 11405, 28826, 17, 13211, 17, 3004, 30, 490, 1285, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 683, 9454, 18035, 560, 1545, 20, 18, 27, 18, 26, 411, 20, 18, 28, 18, 20, 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, -10...
./full_match/80001/0x65f249708D45F0138c65d5A60414d015824228B2/sources/contracts/MyERC721DropConditional.sol
@dev Only transfers to or from TRANSFER_ROLE holders are valid, when transfers are restricted. @dev Only MINTER_ROLE holders can sign off on `MintRequest`s and lazy mint tokens. @dev Global max total supply of NFTs. @dev Emitted when the global max supply of tokens is updated.
{ _setupOwner(_defaultAdmin); bytes32 _transferRole = keccak256("TRANSFER_ROLE"); bytes32 _minterRole = keccak256("MINTER_ROLE"); _setupRole(DEFAULT_ADMIN_ROLE, _defaultAdmin); _setupRole(_minterRole, _defaultAdmin); _setupRole(_transferRole, _defaultAdmin); ...
5,702,808
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 5098, 29375, 358, 578, 628, 4235, 17598, 67, 16256, 366, 4665, 854, 923, 16, 1347, 29375, 854, 15693, 18, 632, 5206, 5098, 6989, 2560, 67, 16256, 366, 4665, 848, 1573, 3397, 603, 1375, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3639, 389, 8401, 5541, 24899, 1886, 4446, 1769, 203, 203, 3639, 1731, 1578, 389, 13866, 2996, 273, 417, 24410, 581, 5034, 2932, 16596, 6553, 67, 16256, 8863, 203, 3639, 1731, 1578, 389, 1154, 387, 2996, 273, 417, 244...
./full_match/11155111/0xD025195087DAf64127Fb5E984aF79ec874C7F0Ae/sources/project:/contracts/LotManager.sol
mapping (address => string) companies;
contract LotManager { Item[] public items; Bet[] public bets; event itemCreated( uint256 uid, uint32 auct_type, uint32 start_timestamp, uint32 end_timestamp, uint32 law_type, uint256 price, string company_name, string lot_name, string ...
3,814,998
[ 1, 4625, 348, 7953, 560, 30, 225, 2874, 261, 2867, 516, 533, 13, 1161, 27891, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 511, 352, 1318, 288, 203, 565, 4342, 8526, 1071, 1516, 31, 203, 565, 605, 278, 8526, 1071, 324, 2413, 31, 203, 203, 565, 871, 761, 6119, 12, 203, 3639, 2254, 5034, 4555, 16, 203, 3639, 2254, 1578, 279, 853, 67, 723, 16, ...
./full_match/3/0xa3cAcED8647548d7924700AE878B0Cf5B472E875/sources/ark/TheLaurel.sol
needs to be voted upon
function setLaurelPerConcept (bytes32 conceptid, uint256 amount) public { laurelsPerConceptUnit[conceptid] = amount; }
8,178,845
[ 1, 4625, 348, 7953, 560, 30, 225, 4260, 358, 506, 331, 16474, 12318, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 30745, 594, 80, 2173, 15433, 261, 3890, 1578, 12402, 350, 16, 2254, 5034, 3844, 13, 1071, 288, 203, 3639, 7125, 594, 3251, 2173, 15433, 2802, 63, 25770, 350, 65, 273, 3844, 31, 203, 565, 289, 203, 203, 2, -100, -...
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.6.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "./Lockable.sol"; /** * @title A contract to track a whitelist of addresses. */ contract AddressWhitelist is Ownable, Lockable { enum Status { None, In, Out } mapping(address => Stat...
* @title Interface that voters must use to Vote on price request resolutions./
abstract contract VotingInterface { pragma solidity ^0.6.0; struct PendingRequest { bytes32 identifier; uint256 time; } struct Commitment { bytes32 identifier; uint256 time; bytes32 hash; bytes encryptedVote; } struct Reveal { bytes32 identif...
591,498
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 6682, 716, 331, 352, 414, 1297, 999, 358, 27540, 603, 6205, 590, 1565, 6170, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 776, 17128, 1358, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 26, 18, 20, 31, 203, 565, 1958, 16034, 691, 288, 203, 3639, 1731, 1578, 2756, 31, 203, 3639, 2254, 5034, 813, 31, 203, 565, 289, 203, 203, 565, 1958,...
./partial_match/1/0x409bf77A8E3Fe384497227eA508029B5364933DE/sources/contracts/staking/TokenStaking.sol
@notice Propagates information about stake top-up from the legacy NU staking contract to T staking contract. Can be called only by the owner or the staking provider.
function topUpNu(address stakingProvider) external override onlyOwnerOf(stakingProvider) { StakingProviderInfo storage stakingProviderStruct = stakingProviders[ stakingProvider ]; uint96 tAmount = getNuAmountInT( stakingProviderStruct.owner...
2,586,909
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1186, 9095, 815, 1779, 2973, 384, 911, 1760, 17, 416, 628, 326, 8866, 423, 57, 540, 384, 6159, 6835, 358, 399, 384, 6159, 6835, 18, 4480, 506, 2566, 1338, 635, 540, 326, 3410, 578, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1760, 1211, 50, 89, 12, 2867, 384, 6159, 2249, 13, 203, 3639, 3903, 203, 3639, 3849, 203, 3639, 1338, 5541, 951, 12, 334, 6159, 2249, 13, 203, 565, 288, 203, 3639, 934, 6159, 2249, 966, 2502, 384, 6159, 2249, 3823, 27...
// SPDX-License-Identifier: Apache-2.0 pragma solidity 0.8.11; import "./@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol"; import "./@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "./@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "./@o...
Burn ingredient badges to carv synthetic badges
function carvSynthetic(uint256 id, uint256 amount) external { require(_synthetic[id], "CarvEvents: Badge is not synthetic"); require(_ingredientBadgeAmounts[id].length > 0, "CarvEvents: Ingredient badges are not set"); require(_openToCarv[id], "CarvEvents: Badge is not open to carv"); ...
983,949
[ 1, 4625, 348, 7953, 560, 30, 225, 605, 321, 12152, 1118, 1979, 5570, 2852, 358, 5926, 90, 25535, 5570, 2852, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5926, 90, 10503, 16466, 12, 11890, 5034, 612, 16, 2254, 5034, 3844, 13, 3903, 288, 203, 3639, 2583, 24899, 11982, 16466, 63, 350, 6487, 315, 16321, 90, 3783, 30, 6107, 908, 353, 486, 25535, 8863, 203, 3639, 2583, 24899, ...
pragma solidity ^0.4.18; /* Game Name: WallCryptoStreet Game Link: https://wallcryptostreet.net/ Rules: - Players can purchase companies and sell shares & ads to the other players. - Company owners receive a commission of 80% for the initial sell of their shares and 10% on consecutive sales. - When a company...
/ Calculate the 5% value Calculate the owner commission on this sale & transfer the commission to the owner. Transfer the 5% commission to the developer Update the company owner and set the new price Increment volume generated by company
This function allows players to purchase companies from other players. The price is automatically multiplied by 1.5 after each purchase. function purchaseCompany(uint _companyId) public payable { require(msg.value == companies[_companyId].curPrice); require(isPaused == false); uint...
12,710,036
[ 1, 4625, 348, 7953, 560, 30, 342, 9029, 326, 1381, 9, 460, 9029, 326, 3410, 1543, 19710, 603, 333, 272, 5349, 473, 7412, 326, 1543, 19710, 358, 326, 3410, 18, 12279, 326, 1381, 9, 1543, 19710, 358, 326, 8751, 2315, 326, 9395, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1220, 445, 5360, 18115, 358, 23701, 1161, 27891, 628, 1308, 18115, 18, 7010, 565, 1021, 6205, 353, 6635, 27789, 635, 404, 18, 25, 1839, 1517, 23701, 18, 203, 565, 445, 23701, 12627, 12, 11890, 389, 16840, 548, 13, 1071, 8843, ...
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; pragma experimental ABIEncoderV2; import "./AcceptEverythingPaymaster.sol"; ///A paymaster that requires some calculation from the client before accepting a request. ///This comes to prevent attack by anonymous clients. /// Usage: /// - Create an instance of the ...
solhint-disable-next-line reason-string
function _verifyApprovalData(bytes calldata approvalData) internal virtual override view{ require(approvalData.length == 64, "approvalData: invalid length for hash and nonce"); }
1,037,870
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 3971, 17, 1080, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 8705, 23461, 751, 12, 3890, 745, 892, 23556, 751, 13, 2713, 5024, 3849, 1476, 95, 203, 3639, 2583, 12, 12908, 1125, 751, 18, 2469, 422, 5178, 16, 315, 12908, 1125, 751, 30, 2057, 769, 364, 1651, 471, 7448, 8863, ...
pragma solidity 0.6.12; //---------------------------------------------------------------------------------- // I n s t a n t // // .:mmm. .:mmm:. .ii. .:SSSSSSSSSSSSS. .oOOOOOOOOOOOo. // .mMM'':Mm. .:MM'':Mm:. .II: :SSs.......... .oOO'''''''''''OOo. // .:Mm' ':Mm. ...
* @notice Deposits second Token to the contract. @param amount Number of tokens to deposit./
function depositToken2(uint256 amount) external returns (bool success) { _deposit(amount, address(token2)); }
5,358,078
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4019, 538, 1282, 2205, 3155, 358, 326, 6835, 18, 632, 891, 3844, 3588, 434, 2430, 358, 443, 1724, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 443, 1724, 1345, 22, 12, 11890, 5034, 3844, 13, 3903, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 389, 323, 1724, 12, 8949, 16, 1758, 12, 2316, 22, 10019, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100,...
./partial_match/1/0xC9Df0eD2E9eF4357b51DB171FF08297d10875280/sources/Converter.sol
deposits an nft using the transferFrom action of the NFT contractAddr
function deposit(uint256[] calldata tokenIDs, uint256[] calldata amounts, address contractAddr) external { require(msg.sender == issuer, "Converter: Only issuer can deposit"); require(tokenIDs.length <= 50, "Converter: A maximum of 50 tokens can be deposited in one go"); require(tokenIDs.len...
2,724,153
[ 1, 4625, 348, 7953, 560, 30, 225, 443, 917, 1282, 392, 290, 1222, 1450, 326, 7412, 1265, 1301, 434, 326, 423, 4464, 6835, 3178, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 443, 1724, 12, 11890, 5034, 8526, 745, 892, 1147, 5103, 16, 2254, 5034, 8526, 745, 892, 30980, 16, 1758, 6835, 3178, 13, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 9715, 16, 315, 5072, 30, 5098, 9715, 848, ...
./partial_match/42/0x4FD31e0ECe45f46880D5C59F3Fc4391339b88e88/sources/CategoryFive.sol
Reduce user's balance
account.balance = account.balance.sub(_amount);
3,379,772
[ 1, 4625, 348, 7953, 560, 30, 225, 24614, 729, 1807, 11013, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2236, 18, 12296, 273, 2236, 18, 12296, 18, 1717, 24899, 8949, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.21; import "./zeppelin-solidity/contracts/token/ERC20/BurnableToken.sol"; import "./zeppelin-solidity/contracts/token/ERC20/MintableToken.sol"; import "./zeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol"; import "./LockableWhitelisted.sol"; contract ICOStartToken is BurnableToken, Mintab...
* @dev Transfers a variable amount of tokens to up to 200 specified addresses. If the sender runs out of balance then the entire transaction fails. For each address a value must be specified. @param _to The addresses to transfer to. @param _values The amounts to be transferred to the addresses./
function multiTransfer(address[] _to, uint256[] _values) public whenNotLocked(msg.sender) { require(_to.length <= 200); require(_to.length == _values.length); for (uint i = 0; i < _to.length; i++) { transfer(_to[i], _values[i]); } }
1,029,419
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2604, 18881, 279, 2190, 3844, 434, 2430, 358, 731, 358, 4044, 1269, 6138, 18, 971, 326, 5793, 7597, 596, 434, 11013, 1508, 326, 7278, 2492, 6684, 18, 2457, 1517, 1758, 279, 460, 1297, 506...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 3309, 5912, 12, 2867, 8526, 389, 869, 16, 2254, 5034, 8526, 389, 2372, 13, 1071, 1347, 1248, 8966, 12, 3576, 18, 15330, 13, 203, 225, 288, 203, 565, 2583, 24899, 869, 18, 2469, 1648, 4044, 1769, 203, 565, 2583, 24899, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; pragma abicoder v2; import {CallForFundsStorage} from "./CallForFundsStorage.sol"; import {ISuperfluid} from "@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluid.sol"; import {IConstantFlowAgreementV1} from "@superfluid-finance/ethe...
insecure for now assumes Loudverse will supply correct amounts for refund
function refund(address[] memory addresses, uint256[] memory amounts) external onlyLoudverse requireState(FundingState.OPEN) { for (uint256 i = 1; i < addresses.length; i++) { bool success = ERC20WithTokenInfo(_dai).transfer( addresses[i], ...
1,843,229
[ 1, 4625, 348, 7953, 560, 30, 225, 22785, 364, 2037, 13041, 3176, 1100, 2476, 903, 14467, 3434, 30980, 364, 16255, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 16255, 12, 2867, 8526, 3778, 6138, 16, 2254, 5034, 8526, 3778, 30980, 13, 203, 3639, 3903, 203, 3639, 1338, 1504, 1100, 2476, 203, 3639, 2583, 1119, 12, 42, 14351, 1119, 18, 11437, 13, 203, 565, 288, 203, 3639, 364, 261...
./full_match/137/0x9Bb4627884A2aDAA2578C3BD81Fc3D88c8248271/sources/contracts/FlashloanQuickswap.sol
@TODO: pending release
function BiswapCall(address _sender, uint256 _amount0, uint256 _amount1, bytes calldata _data) external { execute(_sender, _amount0, _amount1, _data); }
3,747,628
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 6241, 30, 4634, 3992, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 605, 291, 91, 438, 1477, 12, 2867, 389, 15330, 16, 2254, 5034, 389, 8949, 20, 16, 2254, 5034, 389, 8949, 21, 16, 1731, 745, 892, 389, 892, 13, 3903, 288, 203, 3639, 1836, 24899, 15330, 16, 389, 8949, 20, 16, 389, 89...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.3; /** * @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 o...
constructor(Governance _governance, uint[] memory initial_value, function(uint[] memory) external _validationCallback, function(uint[] memory) external _commitCallback) VotedValue(_governance) { leader = initial_value; current_value = initial_value; validationCallback = _validationCallback; commitCallback = _commi...
contract VotedValueUintArray is VotedValue { function(uint[] memory) external validationCallback; function(uint[] memory) external commitCallback; uint[] public leader; uint[] public current_value; mapping(address => uint[]) public choices; mapping(bytes32 => uint) public votesByValue; mapping(bytes32 => mapp...
133,967
[ 1, 4625, 348, 7953, 560, 30, 225, 3885, 12, 43, 1643, 82, 1359, 389, 75, 1643, 82, 1359, 16, 2254, 8526, 3778, 2172, 67, 1132, 16, 445, 12, 11890, 8526, 3778, 13, 3903, 389, 8685, 2428, 16, 445, 12, 11890, 8526, 3778, 13, 3903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 776, 16474, 620, 5487, 1076, 353, 776, 16474, 620, 288, 203, 203, 202, 915, 12, 11890, 8526, 3778, 13, 3903, 3379, 2428, 31, 203, 202, 915, 12, 11890, 8526, 3778, 13, 3903, 3294, 2428, 31, 203, 203, 202, 11890, 8526, 1071,...
/** *Submitted for verification at Etherscan.io on 2021-03-29 */ pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance ...
Update total supply (100000 for example)
totalSupply = 21070028119700000000;
8,018,901
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 2078, 14467, 261, 21, 11706, 364, 3454, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2078, 3088, 1283, 273, 576, 23054, 713, 6030, 2499, 10580, 12648, 31, 7682, 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...
/* * This file is part of the contracts written for artèQ Investment Fund (https://github.com/billionbuild/arteq-contracts). * Copyright (c) 2021 BillionBuild (2B) Team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by ...
Sets a new exchange account. Just after deployment, exchange account is set to zero address but once set to a non-zero address, it cannot be changed back to zero address again. @param adminTaskId the task which must have been approved by multiple admins @param newAccount new exchange address
function setExchange4Account(uint256 adminTaskId, address newAccount) external adminApprovalRequired(adminTaskId) { require(newAccount != address(0), "arteQTokens: zero address for exchange account"); _exchange4Account = newAccount; emit Exchange4AccountChanged(newAccount); }
11,994,050
[ 1, 4625, 348, 7953, 560, 30, 225, 11511, 279, 394, 7829, 2236, 18, 12526, 1839, 6314, 16, 7829, 2236, 353, 444, 358, 3634, 1758, 1496, 3647, 444, 358, 279, 1661, 17, 7124, 1758, 16, 518, 2780, 506, 3550, 1473, 358, 3634, 1758, 3382,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 11688, 24, 3032, 12, 11890, 5034, 3981, 30182, 16, 1758, 394, 3032, 13, 3903, 3981, 23461, 3705, 12, 3666, 30182, 13, 288, 203, 3639, 2583, 12, 2704, 3032, 480, 1758, 12, 20, 3631, 315, 485, 73, 53, 5157, 30, 363...
/* ______ __ _ | ____| / _| | | | |__ ___ _ __ ___| |_ _ __ ___ _ __ | |_ | __/ _ \| '__/ _ \ _| '__/ _ \| '_ \| __| | | | (_) | | | __/ | | | | (_) | | | | |_ |_| \___/|_| \___|_| |_| \___/|_| |_|\__| ...
* @dev Collection of functions related to the address type,/
library Address { function isContract(address account) internal view returns (bool) { uint256 size; assembly { size := extcodesize(account) } return size > 0; } function isContract(address account) internal view returns (bool) { uint256 size; assembly { size := extcodesize(ac...
1,288,267
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2200, 434, 4186, 3746, 358, 326, 1758, 618, 16, 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, 12083, 5267, 288, 203, 225, 445, 353, 8924, 12, 2867, 2236, 13, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 203, 565, 2254, 5034, 963, 31, 203, 565, 19931, 288, 203, 1377, 963, 519, 1110, 7000, 554, 12, 4631, 13, 203, 565, 289, ...
// File: @openzeppelin\contracts\token\ERC20\IERC20.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view ret...
* @title DFOSuperSaiyanToken/
contract DFOERC20NFTWrapper is IDFOERC20NFTWrapper, ERC20NFTWrapper { function mint(uint256 amount) public virtual override { IMVDProxy proxy = IMVDProxy(getProxy()); require( IMVDFunctionalitiesManager( proxy.getMVDFunctionalitiesManagerAddress() ) ...
128,103
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 463, 3313, 8051, 55, 10658, 93, 304, 1345, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 463, 3313, 654, 39, 3462, 50, 4464, 3611, 353, 1599, 3313, 654, 39, 3462, 50, 4464, 3611, 16, 4232, 39, 3462, 50, 4464, 3611, 288, 203, 203, 203, 203, 565, 445, 312, 474, 12, 11890, 5034, 3844, 13, 1071, 5024, 3849, 288,...
pragma solidity ^0.5.3; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "./interfaces/IExchange.sol"; import "./interfaces/ISortedOracles.sol"; import "./interfaces/IReserve.sol"; import "./interfaces/IStableToken.sol"; import "../commo...
Fraction of the Reserve that is committed to the gold bucket when updating buckets. Size of the Uniswap gold bucket Size of the Uniswap stable token bucket
{ using SafeMath for uint256; using FixidityLib for FixidityLib.Fraction; event Exchanged(address indexed exchanger, uint256 sellAmount, uint256 buyAmount, bool soldGold); event UpdateFrequencySet(uint256 updateFrequency); event MinimumReportsSet(uint256 minimumReports); event StableTokenSet(address indexe...
2,472,843
[ 1, 4625, 348, 7953, 560, 30, 225, 478, 5738, 434, 326, 1124, 6527, 716, 353, 16015, 358, 326, 20465, 2783, 1347, 9702, 9169, 18, 6321, 434, 326, 1351, 291, 91, 438, 20465, 2783, 6321, 434, 326, 1351, 291, 91, 438, 14114, 1147, 2783,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 225, 1450, 12139, 24237, 5664, 364, 12139, 24237, 5664, 18, 13724, 31, 203, 203, 225, 871, 1312, 6703, 12, 2867, 8808, 431, 343, 11455, 16, 2254, 5034, 357, 80, 6275, 16...
pragma solidity 0.4.23; // Implements the ERC20 standard contract contract ERC20Standard { // #region Fields // The total token supply uint256 internal totalSupply_; // This creates a dictionary with all the balances mapping (address => uint256) internal balances; /...
Sets allowance for another address, i.e. allows _spender to spend _value tokens on behalf of msg.sender. ERC20 standard at https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md recommends not implementing checks for the approval double-spend attack, as this should be implemented in user interfaces. @param _spend...
function approve(address _spender, uint256 _value) public returns (bool) { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
980,681
[ 1, 4625, 348, 7953, 560, 30, 225, 11511, 1699, 1359, 364, 4042, 1758, 16, 277, 18, 73, 18, 5360, 389, 87, 1302, 264, 358, 17571, 389, 1132, 2430, 603, 12433, 6186, 434, 1234, 18, 15330, 18, 4232, 39, 3462, 4529, 622, 2333, 2207, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 6617, 537, 12, 2867, 389, 87, 1302, 264, 16, 2254, 5034, 389, 1132, 13, 1071, 1135, 261, 6430, 13, 7010, 565, 288, 203, 3639, 2935, 63, 3576, 18, 15330, 6362, 67, 87, 1302, 264, 65, 273, 389, 1132, 31, 203, 540, 203...
// SPDX-License-Identifier: MIT pragma solidity =0.8.10; pragma experimental ABIEncoderV2; import "../ActionBase.sol"; import "../../utils/TokenUtils.sol"; import "./helpers/BalancerV2Helper.sol"; /// @title Supply tokens to a Balancer V2 Pool for pool LP tokens in return contract BalancerV2Supply is ActionBase, Bal...
pull tokens to proxy and write how many are pulled approve vault so it can pull tokens
function _prepareTokensForPoolJoin(Params memory _inputData) internal { for (uint256 i = 0; i < _inputData.tokens.length; i++) { _inputData.maxAmountsIn[i] = address(_inputData.tokens[i]).pullTokensIfNeeded( _inputData.from, _inputData.maxAmountsIn[i] ...
5,420,635
[ 1, 4625, 348, 7953, 560, 30, 225, 6892, 2430, 358, 2889, 471, 1045, 3661, 4906, 854, 30741, 6617, 537, 9229, 1427, 518, 848, 6892, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 9366, 5157, 1290, 2864, 4572, 12, 1370, 3778, 389, 2630, 751, 13, 2713, 288, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 389, 2630, 751, 18, 7860, 18, 2469, 31, 277, 27245, 288, 203, 5411, 389,...
// SPDX-License-Identifier: MIT /** * @authors: [@hbarcelos] * @reviewers: [@ferittuncer*, @fnanni-0, @nix1g, @epiqueras*, @clesaege*] * @auditors: [] * @bounties: [] * @deployments: [] */ pragma solidity ^0.7.2; import {IArbitrator} from "@kleros/erc-792/contracts/IArbitrator.sol"; import {IAMB} from "./...
* @notice Receives the cancelation of the arbitration request for the given question and requester. TRUSTED. @param _questionID The ID of the question. @param _requester The address of the arbitration requester./
function receiveArbitrationCancelation(bytes32 _questionID, address _requester) external override onlyHomeProxy { ArbitrationRequest storage arbitration = arbitrationRequests[_questionID][_requester]; require(arbitration.status == Status.Requested, "Invalid arbitration status"); uint256 depo...
5,463,011
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 9797, 3606, 326, 3755, 367, 434, 326, 10056, 7034, 590, 364, 326, 864, 5073, 471, 19961, 18, 4235, 5996, 2056, 18, 632, 891, 389, 4173, 734, 1021, 1599, 434, 326, 5073, 18, 632, 891, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6798, 686, 3682, 7034, 6691, 367, 12, 3890, 1578, 389, 4173, 734, 16, 1758, 389, 26192, 13, 3903, 3849, 1338, 8684, 3886, 288, 203, 3639, 1201, 3682, 7034, 691, 2502, 10056, 7034, 273, 10056, 7034, 6421, 63, 67, 4173, 7...
./partial_match/56/0xa9eB28df890A88077487eBEF47974527656433E6/sources/MasterPepe.sol
The unix timestamp of when the user will begin accumulating experience again
uint256 timeToNextLevel;
11,088,624
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 9753, 2858, 434, 1347, 326, 729, 903, 2376, 8822, 1776, 31207, 3382, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 23813, 2134, 2355, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/80001/0x61292d05eDCC1913C017a77885265Fa7A2790BC1/sources/MarbleNFTCandidate.sol
@notice Marble metatransactions contract
address public marbleMetatransactionsContract;
8,818,429
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 490, 6779, 298, 5100, 270, 28001, 4905, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1758, 1071, 312, 6779, 298, 12244, 270, 28001, 4905, 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, ...
./full_match/5/0x61C13Bd0bFCF27F432e0D07cF4E02c8949E8Cb68/sources/project_/contracts/NFT.sol
Count the number of minted tokens per wallet, so we can limit
function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) override internal virtual { if (from == address(0)) { mintedPerWallet[to] += 1; totalMinted += 1; } }
7,052,186
[ 1, 4625, 348, 7953, 560, 30, 225, 6974, 326, 1300, 434, 312, 474, 329, 2430, 1534, 9230, 16, 1427, 732, 848, 1800, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 389, 5205, 1345, 5912, 12, 203, 1377, 1758, 628, 16, 203, 1377, 1758, 358, 16, 203, 1377, 2254, 5034, 1122, 1345, 548, 16, 203, 1377, 2254, 5034, 16494, 203, 565, 262, 3849, 2713, 5024, 288, 203, 3639, 309, 261, 2080, ...
./partial_match/3/0x2d4646464147E5729346ED76362C47b00a83292F/sources/DEPRToken.sol
@dev Transfer tokens to the owner address.
function reclaimTokens(uint256 _amount) public onlyOwner { require(token.transfer(_msgSender(), _amount), "DEPRPreSale: Transfer failed"); }
5,229,690
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 12279, 2430, 358, 326, 3410, 1758, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 283, 14784, 5157, 12, 11890, 5034, 389, 8949, 13, 1071, 1338, 5541, 288, 203, 3639, 2583, 12, 2316, 18, 13866, 24899, 3576, 12021, 9334, 389, 8949, 3631, 315, 1639, 8025, 1386, 30746, 30, 12279, 2535, 8863, 203, 565, 289,...
/** *Submitted for verification at Etherscan.io on 2020-03-16 */ pragma solidity 0.5.12; // import "lib/dss-interfaces/src/dapp/DSPauseAbstract.sol"; // https://github.com/dapphub/ds-pause contract DSPauseAbstract { function delay() public view returns (uint256); function plot(address, bytes32, bytes memory,...
import "lib/dss-interfaces/src/dss/FlipperMomAbstract.sol"; https:github.com/makerdao/flipper-mom/blob/master/src/FlipperMom.sol
contract FlipperMomAbstract { function deny(address) external; }
12,651,952
[ 1, 4625, 348, 7953, 560, 30, 1930, 315, 2941, 19, 72, 1049, 17, 15898, 19, 4816, 19, 72, 1049, 19, 28535, 457, 49, 362, 7469, 18, 18281, 14432, 2333, 30, 6662, 18, 832, 19, 29261, 2414, 83, 19, 12357, 457, 17, 81, 362, 19, 10721...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 478, 3169, 457, 49, 362, 7469, 288, 203, 565, 445, 17096, 12, 2867, 13, 3903, 31, 203, 97, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.5.0; import "@openzeppelin/contracts/ownership/Ownable.sol"; import "@nomiclabs/buidler/console.sol"; import "./ILBCR.sol"; contract LBCR is Ownable, ILBCR { address[] authorisedContracts; uint256 _decimals; // decimals to calculate collateral factor // Implementation of L = (lower, u...
@notice Set a number between 0 and 100 representing the compatibility score between the current LBCR and the LBCRs of `protocol`. When a new compatibility score is set, the `maintainCompatibilityScoreOnUpdate[protocol]` is automatically set to `true` (such that when `protocol` update their LBCR version, the compatibil...
function setCompatibilityScoreWith(address protocol, uint256 score) external onlyAuthorised { require(score >= 0 && score <= 100, "score must be a number between 0 and 100"); compatibilityScores[protocol] = score; compatibilityScoreVersions[protocol] = _latestVersion; maintainCompati...
14,042,765
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1000, 279, 1300, 3086, 374, 471, 2130, 5123, 326, 8926, 4462, 3086, 326, 783, 511, 38, 5093, 471, 326, 511, 38, 5093, 87, 434, 1375, 8373, 8338, 5203, 279, 394, 8926, 4462, 353, 444, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 21633, 7295, 1190, 12, 2867, 1771, 16, 2254, 5034, 4462, 13, 3903, 1338, 3594, 5918, 288, 203, 3639, 2583, 12, 6355, 1545, 374, 597, 4462, 1648, 2130, 16, 315, 6355, 1297, 506, 279, 1300, 3086, 374, 471, 2130, 8863...
./full_match/1/0x7f4c4DBFd96EB205c7904279CFFc547EB9fF2Be5/sources/contracts/minter_external.sol
mint with merkle treeMerkle treeMapping
function mintPie(uint256 _mintAmount , uint256 _maxMintAmount , bytes32[] calldata _merkleProof , address receiver ) public payable callerIsUser onlyRole(MINTER_ROLE){ require(!paused, "the contract is paused"); require(0 < _mintAmount, "need to mint at least 1 NFT"); require(_mintAmount <= ...
3,039,975
[ 1, 4625, 348, 7953, 560, 30, 312, 474, 598, 30235, 2151, 8478, 15609, 2151, 3233, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 312, 474, 52, 1385, 12, 11890, 5034, 389, 81, 474, 6275, 269, 2254, 5034, 389, 1896, 49, 474, 6275, 269, 1731, 1578, 8526, 745, 892, 389, 6592, 15609, 20439, 269, 1758, 5971, 262, 1071, 8843, 429, 4894, 2520, 1299, 1338...
// SPDX-License-Identifier: BSD-2-Clause pragma solidity ^0.6.0; import "./ENS.sol"; /** * The ENS registry contract. */ contract ENSRegistry is ENS { struct Record { address owner; address resolver; uint64 ttl; } mapping (bytes32 => Record) records; mapping (address => ma...
* @dev Query if an address is an authorized _operator for another address. @param _owner The address that owns the records. @param _operator The address that acts on behalf of the _owner. @return True if `_operator` is an _approved _operator for `_owner`, false otherwise./
function isApprovedForAll(address _owner, address _operator) external view override returns (bool) { return operators[_owner][_operator]; }
5,360,935
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2770, 309, 392, 1758, 353, 392, 10799, 389, 9497, 364, 4042, 1758, 18, 632, 891, 389, 8443, 1021, 1758, 716, 29065, 326, 3853, 18, 632, 891, 389, 9497, 1021, 1758, 716, 22668, 603, 12433,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 31639, 1290, 1595, 12, 2867, 389, 8443, 16, 1758, 389, 9497, 13, 3903, 1476, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 327, 12213, 63, 67, 8443, 6362, 67, 9497, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -10...
pragma solidity ^ 0.4 .24; // Define a contract 'Supplychain' import "../cellphoneaccesscontrol/BrandOwnerRole.sol"; import "../cellphoneaccesscontrol/ConsumerRole.sol"; import "../cellphoneaccesscontrol/ManufacturerRole.sol"; import "../cellphoneaccesscontrol/RetailerRole.sol"; contract SupplyChain is BrandOwnerRole,...
Define a function 'fetchItemBufferTwo' that fetches the data Assign values to the 9 parameters State itemState; Product State as represented in the enum above
function fetchItemBufferTwo(uint _upc) public view returns ( uint itemSKU, uint itemUPC, uint productID, string productNotes, uint productPrice, uint itemState, address brandOwnerID, address retailerID, ...
1,049,574
[ 1, 4625, 348, 7953, 560, 30, 225, 13184, 279, 445, 296, 5754, 1180, 1892, 11710, 11, 716, 17675, 326, 501, 12093, 924, 358, 326, 2468, 1472, 3287, 377, 761, 1119, 31, 377, 8094, 3287, 487, 10584, 316, 326, 2792, 5721, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2158, 1180, 1892, 11710, 12, 11890, 389, 416, 71, 13, 1071, 1476, 1135, 203, 3639, 261, 203, 5411, 2254, 761, 11129, 57, 16, 203, 5411, 2254, 761, 3079, 39, 16, 203, 5411, 2254, 3017, 734, 16, 203, 5411, 533, 3017, 18...
pragma solidity ^0.4.24; import "openzeppelin-eth/contracts/math/SafeMath.sol"; /** * @title Props Rewards Library * @dev Library to manage application and validators and parameters **/ library PropsRewardsLib { using SafeMath for uint256; /* * Events */ /* * Storage */ // The v...
* @dev Get applications or validators list @param _self Data pointer to storage @param _entityType RewardedEntityType either application (0) or validator (1) @param _rewardsDay uint256 the rewards day to determine which list to get/
function getEntities( Data storage _self, RewardedEntityType _entityType, uint256 _rewardsDay ) public view returns (address[]) { if (_entityType == RewardedEntityType.Application) { if (!_usePreviousSelectedRewardsEntityList(_self.selected...
12,700,616
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 968, 12165, 578, 11632, 666, 632, 891, 389, 2890, 1910, 4407, 358, 2502, 632, 891, 389, 1096, 559, 534, 359, 17212, 22562, 3344, 2521, 261, 20, 13, 578, 4213, 261, 21, 13, 632, 891, 389...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 565, 445, 4774, 6678, 12, 203, 3639, 1910, 2502, 389, 2890, 16, 203, 3639, 534, 359, 17212, 22562, 389, 1096, 559, 16, 203, 3639, 2254, 5034, 389, 266, 6397, 4245, 203, 565, 262, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135,...
./full_match/77/0x5bfc4dEE19CcaCBE765C9a36fAe59F590a5a27DB/sources/project_/contracts/BaseToken.sol
* @dev Registers a offer on the token/ make sure the address isn't empty convert the offer to a interface make sure the offer is intiialized gets the index of the last offer, if it exists check if its the first offer get a reference to the last offer make sure the last offer is finished
function startOffer(address _aTokenOffer) public onlyOwner returns (uint256) { require(_aTokenOffer != address(0), "Offer cant be empty"); IOffer objOffer = IOffer(_aTokenOffer); require(!objOffer.getInitialized(), "Offer should not be initialized"); uint2...
5,047,171
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2526, 6045, 279, 10067, 603, 326, 1147, 19, 1221, 3071, 326, 1758, 5177, 1404, 1008, 1765, 326, 10067, 358, 279, 1560, 1221, 3071, 326, 10067, 353, 509, 77, 649, 1235, 5571, 326, 770, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 10513, 12, 2867, 389, 69, 1345, 10513, 13, 203, 3639, 1071, 203, 3639, 1338, 5541, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 2583, 24899, 69, 1345, 10513, 480, 1758, 12, 20, 3631, 315, 10513,...
pragma solidity ^0.4.25; contract Ownable { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() internal { _own...
Second thing: Check if player has blackjack
uint playerPower = card2PowerConverter(playerCards[msg.sender]);
13,126,702
[ 1, 4625, 348, 7953, 560, 30, 7631, 7757, 30, 2073, 309, 7291, 711, 7721, 78, 484, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 2254, 7291, 13788, 273, 5270, 22, 13788, 5072, 12, 14872, 30492, 63, 3576, 18, 15330, 19226, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.8.0; // SPDX-License-Identifier: MIT import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title CubesNFT * @dev The Cubes NFT token contract for Latent L...
THROWN EVERY TIME AN CUBE IS MINTED
event CubeMinted(uint indexed tokenId, address indexed owner);
6,213,865
[ 1, 4625, 348, 7953, 560, 30, 7662, 1457, 5665, 512, 17529, 8721, 8175, 385, 3457, 41, 4437, 6989, 6404, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 385, 4895, 49, 474, 329, 12, 11890, 8808, 1147, 548, 16, 1758, 8808, 3410, 1769, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** * @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`. */ function balanceO...
* @dev Required interface of an ERC721 compliant contract./
interface IERC721 is IERC165 { event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); function ba...
25,234
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10647, 1560, 434, 392, 4232, 39, 27, 5340, 24820, 6835, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 654, 39, 27, 5340, 353, 467, 654, 39, 28275, 288, 203, 565, 871, 12279, 12, 2867, 8808, 628, 16, 1758, 8808, 358, 16, 2254, 5034, 8808, 1147, 548, 1769, 203, 203, 565, 871, 1716, 685, 1125, 12, 2867, 8808, 3410, 16, ...
./partial_match/97/0xF8B8ecbdFB127cB9dd73B6AE07e1357da1F62707/sources/Vault.sol
在同时满足下面两个条件的时候, KUN债券可以1:1兑换为KUN: 1. 当系统的实际质押率高于全局质押率时 && 2. QSD的价格在目标价格以上(>$1)
function exchangeShareBond(uint256 bondAmount) external notLocked nonReentrant { uint256 excessCollateralValue = getExcessCollateralValue(); require(excessCollateralValue > 0, "no-excess-collateral-to-buyback"); uint256 stableTokenPrice = getStableTokenPrice(); require(stableTokenPri...
11,356,448
[ 1, 4625, 348, 7953, 560, 30, 225, 166, 255, 106, 166, 243, 239, 167, 250, 119, 167, 124, 99, 169, 119, 116, 165, 121, 238, 170, 256, 100, 165, 121, 102, 165, 121, 108, 167, 256, 99, 165, 124, 119, 168, 253, 231, 167, 250, 119,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7829, 9535, 9807, 12, 11890, 5034, 8427, 6275, 13, 3903, 486, 8966, 1661, 426, 8230, 970, 288, 203, 3639, 2254, 5034, 23183, 13535, 2045, 287, 620, 273, 26246, 614, 13535, 2045, 287, 620, 5621, 203, 3639, 2583, 12, 338, ...
pragma solidity ^0.4.13; contract IERC20 { function totalSupply() constant returns (uint _totalSupply); function balanceOf(address _owner) constant returns (uint balance); function transfer(address _to, uint _value) returns (bool success); function transferFrom(address _from, address _to, uint _value) ...
* @title Erc20 Token @notice The ERC20 Token for Cove Identity./approved[owner][spender]
contract Erc20 is IERC20, Ownable { using SafeMathLib for uint256; uint256 public constant totalTokenSupply = 100000000 * 10**18; string public name = "Dontoshi Token"; string public symbol = "DTD"; uint8 public constant decimals = 18; mapping (address => uint256) public balances...
6,733,471
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 512, 1310, 3462, 3155, 632, 20392, 1021, 4232, 39, 3462, 3155, 364, 385, 841, 7808, 18, 19, 25990, 63, 8443, 6362, 87, 1302, 264, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 512, 1310, 3462, 353, 467, 654, 39, 3462, 16, 14223, 6914, 288, 203, 377, 203, 565, 1450, 14060, 10477, 5664, 364, 2254, 5034, 31, 203, 377, 203, 565, 2254, 5034, 1071, 5381, 2078, 1345, 3088, 1283, 273, 2130, 9449, 380, 1...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/ac...
* @dev Returns true if user can vest/
function canVest() public view returns(bool) { uint64 timenow = uint64(block.timestamp); return startDate <= timenow && timenow <= endDate; }
14,051,098
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 638, 309, 729, 848, 331, 395, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 848, 58, 395, 1435, 1071, 1476, 1135, 12, 6430, 13, 288, 203, 565, 2254, 1105, 1658, 275, 543, 273, 2254, 1105, 12, 2629, 18, 5508, 1769, 203, 565, 327, 12572, 1648, 1658, 275, 543, 597, 1658, 275, 543, 1648, 13202, 3...