file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
//SPDX-License-Identifier: Unlicense pragma solidity ^0.6.0; import "deps/@openzeppelin/contracts-upgradeable/token/ERC20/SafeERC20Upgradeable.sol"; import "deps/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "deps/@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol"; import "d...
* @title SingleTokenVesting @dev A token holder contract that can release its token balance gradually like a typical vesting scheme, with a cliff and vesting period. Optionally revocable by the owner. Only tracks vesting for a single token, rather than all ERC20s./ The vesting schedule is time-based (i.e. using block t...
contract SingleTokenVestingNonRevocable is OwnableUpgradeable { using SafeMathUpgradeable for uint256; using SafeERC20Upgradeable for IERC20Upgradeable; event TokensReleased(address token, uint256 amount); IERC20Upgradeable internal _token; address internal _beneficiary; uint256 internal _cl...
12,845,190
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 10326, 1345, 58, 10100, 632, 5206, 432, 1147, 10438, 6835, 716, 848, 3992, 2097, 1147, 11013, 3087, 2544, 1230, 3007, 279, 24917, 331, 10100, 4355, 16, 598, 279, 927, 3048, 471, 331, 10100,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10326, 1345, 58, 10100, 3989, 10070, 504, 429, 353, 14223, 6914, 10784, 429, 288, 203, 203, 565, 1450, 14060, 10477, 10784, 429, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 10784, 429, 364, 467, 654, 39, 3462,...
// CD->09.11.2015 wordentry_set CannotBeNounAdjunct= { eng_noun:passing{}, // The zing of the passing bullet. eng_noun:how{}, eng_noun:why{}, eng_noun:where{}, eng_noun:what{}, // What units make sense? eng_noun:fighting{}, eng_noun:working{}, eng_noun:Belgian{}, eng_noun:sinking{}, // With a sinking heart ...
personal verb endings
eng_noun:personal{},
7,304,899
[ 1, 4625, 348, 7953, 560, 30, 225, 17816, 6405, 679, 899, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 24691, 67, 82, 465, 30, 29991, 2916, 16, 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, -1...
pragma solidity >=0.0; import "../Tokens/Token.sol"; import "../Tokens/OutcomeToken.sol"; import "../Oracles/Oracle.sol"; /// @title Event contract - Provide basic functionality required by different event types /// @author Stefan George - <stefan@gnosis.pm> abstract contract Event { /* * Events */ ...
@dev Returns outcome tokens array @return Outcome tokens
function getOutcomeTokens() public view returns (OutcomeToken[] memory) { return outcomeTokens; }
5,372,344
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2860, 12884, 2430, 526, 632, 2463, 2976, 5624, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 19758, 5157, 1435, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 19758, 1345, 8526, 3778, 13, 203, 565, 288, 203, 3639, 327, 12884, 5157, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100...
./full_match/137/0xA8cD6c72f5cdA61c8fD43286Dbd55Fa7E8b52C88/sources/project_/src/smart-contracts/contracts/ERC2981PerTokenRoyalties.sol
@inheritdoc IERC2981Royalties
function royaltyInfo(uint256 tokenId, uint256 value) external view override returns (address receiver, uint256 royaltyAmount) { RoyaltyInfo memory royalties = _royalties[tokenId]; receiver = royalties.recipient; royaltyAmount = (value * royalties.amount) /...
4,760,138
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 10093, 202, 45, 654, 39, 5540, 11861, 54, 13372, 2390, 606, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 721, 93, 15006, 966, 12, 11890, 5034, 1147, 548, 16, 2254, 5034, 460, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 3849, 203, 3639, 1135, 261, 2867, 5971, 16, 2254, 5034, 721, 93, 15006, 6275, 13, 203, 565, 288, 2...
pragma solidity >=0.5.10; library LibOwnableRichErrors { // bytes4(keccak256("OnlyOwnerError(address,address)")) bytes4 internal constant ONLY_OWNER_ERROR_SELECTOR = 0x1de45ad1; // bytes4(keccak256("TransferOwnerToZeroError()")) bytes internal constant TRANSFER_OWNER_TO_ZERO_ERROR_BYTES = "T...
bytes4(keccak256("OnlyOwnerError(address,address)")) bytes4(keccak256("TransferOwnerToZeroError()")) solhint-disable func-name-mixedcase
library LibOwnableRichErrors { bytes4 internal constant ONLY_OWNER_ERROR_SELECTOR = 0x1de45ad1; bytes internal constant TRANSFER_OWNER_TO_ZERO_ERROR_BYTES = "TransferOwnerToZeroError"; function OnlyOwnerError( address sender, address owner ) internal pure ...
2,538,852
[ 1, 4625, 348, 7953, 560, 30, 225, 1731, 24, 12, 79, 24410, 581, 5034, 2932, 3386, 5541, 668, 12, 2867, 16, 2867, 2225, 3719, 1731, 24, 12, 79, 24410, 581, 5034, 2932, 5912, 5541, 774, 7170, 668, 10031, 3719, 3704, 11317, 17, 8394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 10560, 5460, 429, 22591, 4229, 288, 203, 203, 565, 1731, 24, 2713, 5381, 20747, 67, 29602, 67, 3589, 67, 4803, 916, 273, 203, 3639, 374, 92, 21, 323, 7950, 361, 21, 31, 203, 203, 565, 1731, 2713, 5381, 4235, 17598, 67, 2...
./partial_match/3/0x08f78f413225878Dd46B08820fFdBE815C240328/sources/Token.sol
* @title SafeMath @dev Math operations with safety checks that throw on error/
library SafeMath { } function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { ...
5,268,801
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 14060, 10477, 632, 5206, 2361, 5295, 598, 24179, 4271, 716, 604, 603, 555, 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, 12083, 14060, 10477, 288, 203, 97, 203, 565, 445, 14064, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 276, 13, 288, 203, 3639, 309, 261, 69, 422, 374, 13, 288, 203, 5411, 327, 374, 31, 203...
pragma solidity ^0.4.21; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract WHOM { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; uint256 public totalSupply;...
Set the symbol for display purposes
symbol = "WHOM";
1,431,799
[ 1, 4625, 348, 7953, 560, 30, 225, 1000, 326, 3273, 364, 2562, 13694, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3273, 273, 315, 12557, 1872, 14432, 4766, 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, -100, -100, -100, -100, -1...
// contract testing // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; contract CourseContract { struct Edit { uint targetID; string newMaterialsHash; string newQuestionsHash; } struct Module { string name; string description; string mat...
creates a request with all of the modules, including past modules, edited modules and new modules.array of modules are stored at request index in request modules mappings.
function createRequest( string memory _nameReq, string memory _descriptionReq, uint _tokens, string[] memory _moduleNames, string[] memory _moduleDescriptions, string[] memory _materialsHash, string[] memory _questionsHash, uint _baseVersion ) exte...
2,559,475
[ 1, 4625, 348, 7953, 560, 30, 3414, 279, 590, 598, 777, 434, 326, 4381, 16, 6508, 8854, 4381, 16, 18532, 4381, 471, 394, 4381, 18, 1126, 434, 4381, 854, 4041, 622, 590, 770, 316, 590, 4381, 7990, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 15798, 12, 203, 3639, 533, 3778, 389, 529, 6113, 16, 203, 3639, 533, 3778, 389, 3384, 6113, 16, 203, 3639, 2254, 389, 7860, 16, 203, 3639, 533, 8526, 3778, 389, 2978, 1557, 16, 203, 3639, 533, 8526, 3778, 389, 2978, 1...
./full_match/1/0x13Bdb00E3Ad547aD392E9B4f1f91EDE8ACDb77CF/sources/contracts/CIV-Vault.sol
Index of the depositor in the depositors mapping
private _userGuaranteeLock;
9,693,306
[ 1, 4625, 348, 7953, 560, 30, 225, 3340, 434, 326, 443, 1724, 280, 316, 326, 443, 1724, 1383, 2874, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 389, 1355, 6099, 9106, 73, 2531, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/56/0x4AA73479761f8B8A44eb6b37Ff283B11714dC90A/sources/contracts/dogzverse.sol
Gas optimization Deep Stack problem avoid Gas optimization
function exchangeFeeParts(uint256 incomingFeeTokenAmount) private returns (bool){ if (incomingFeeTokenAmount == 0) return false; _balances[address(this)] += incomingFeeTokenAmount; address pairWbnbDGVZ = WBNB_DGVZ_PAIR; if (_msgSender() == pairWbnbDGVZ || pausedStake) return false; uint256 fe...
3,235,890
[ 1, 4625, 348, 7953, 560, 30, 225, 31849, 14850, 17084, 7283, 6199, 4543, 31849, 14850, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 7829, 14667, 4305, 12, 11890, 5034, 6935, 14667, 1345, 6275, 13, 3238, 1135, 261, 6430, 15329, 203, 565, 309, 261, 31033, 14667, 1345, 6275, 422, 374, 13, 327, 629, 31, 203, 565, 389, 70, 26488, 63, 2867, 12, 2211, 2588...
./full_match/5/0xBA9Bb7421B4413443380AA96c4D2d8C73B9ac55c/sources/project_/contracts/NFT/CustomERC721Configs/NFTEnumerable.sol
* @dev See {IERC721Enumerable-tokenByIndex}./
function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < NFTEnumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; }
7,049,991
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 27, 5340, 3572, 25121, 17, 2316, 21268, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 1147, 21268, 12, 11890, 5034, 770, 13, 1071, 1476, 5024, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 1615, 411, 423, 4464, 3572, 25121, 18, 4963, 3088, 1283, 9334, 315, 654, 39, 27, 5340, 3572, 25121, 30...
./full_match/80001/0x9eC7A5DF623DD960b59e67Dd3E7997C1fB9Aecd9/sources/contracts/IVaultHandler.sol
* @notice Returns the Reward Collateral amount for liquidating a vault @param _vaultId of the vault to liquidate @return rewardCollateral for liquidating Vault @dev the returned value is returned as collateral currency @dev R = (LT (p + 100)) / 100 @dev RC = R / (cp cdaf) R = Liquidation Reward RC = Liquidation Rewa...
function liquidationReward(uint256 _vaultId) public view virtual returns (uint256 rewardCollateral) { uint256 req = requiredLiquidationTCAP(_vaultId); uint256 tcapPrice = TCAPPrice(); uint256 collateralPrice = getOraclePrice(collateralPriceOracle); uint256 reward = (req.mul(liquidati...
5,580,022
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2860, 326, 534, 359, 1060, 17596, 2045, 287, 3844, 364, 4501, 26595, 1776, 279, 9229, 632, 891, 389, 26983, 548, 434, 326, 9229, 358, 4501, 26595, 340, 632, 2463, 19890, 13535, 2045, 287, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4501, 26595, 367, 17631, 1060, 12, 11890, 5034, 389, 26983, 548, 13, 203, 565, 1071, 203, 565, 1476, 203, 565, 5024, 203, 565, 1135, 261, 11890, 5034, 19890, 13535, 2045, 287, 13, 203, 225, 288, 203, 565, 2254, 5034, 11...
./partial_match/3/0x09Ce9E5Abe99ebbd970e58fE31D0F1068BFa5207/sources/StratFlat.sol
Liquidate as much as possible to `want`, up to `_amount` Send it directly back (NOTE: Using `msg.sender` saves some gas here) NOTE: Reinvest anything leftover on next `tend`/`harvest`
function withdraw(uint256 _amountNeeded) external returns (uint256 _loss) { require(msg.sender == address(vault), "!vault"); uint256 amountFreed; (amountFreed, _loss) = liquidatePosition(_amountNeeded); want.transfer(msg.sender, amountFreed); }
5,245,415
[ 1, 4625, 348, 7953, 560, 30, 225, 511, 18988, 350, 340, 487, 9816, 487, 3323, 358, 1375, 17369, 9191, 731, 358, 1375, 67, 8949, 68, 2479, 518, 5122, 1473, 261, 17857, 30, 11637, 1375, 3576, 18, 15330, 68, 14649, 2690, 16189, 2674, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 598, 9446, 12, 11890, 5034, 389, 8949, 11449, 13, 3903, 1135, 261, 11890, 5034, 389, 7873, 13, 288, 203, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 1758, 12, 26983, 3631, 17528, 26983, 8863, 203, 203, 203, 3639, 2254, 5...
./full_match/1/0x6428E6BaDE91d80EaCa291a1f5174b0bCd68B96e/sources/Token.sol
* @dev Atomically increases the allowance granted to `spender` by the caller. @param spender Address of spender whose allowance is being increased by msg.sender @param addedValue Value by which spender's allowance is being increased @return _success bool value => true if flow was successful This is an alternative to `a...
function increaseAllowance(address spender, uint256 addedValue) public returns (bool _success) { _approve( msg.sender, spender, _allowances[msg.sender][spender] + addedValue ); return true; }
8,443,121
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 7149, 6478, 7033, 3304, 326, 1699, 1359, 17578, 358, 1375, 87, 1302, 264, 68, 635, 326, 4894, 18, 632, 891, 17571, 264, 5267, 434, 17571, 264, 8272, 1699, 1359, 353, 3832, 31383, 635, 123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 10929, 7009, 1359, 12, 2867, 17571, 264, 16, 2254, 5034, 3096, 620, 13, 203, 3639, 1071, 203, 3639, 1135, 261, 6430, 389, 4768, 13, 203, 565, 288, 203, 3639, 389, 12908, 537, 12, 203, 5411, 1234, 18, 15330, 16, 203, 5...
/* * This code has not been reviewed. * Do not use or deploy this code before reviewing it personally first. */ pragma solidity >=0.6.0 <0.9.0; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@c...
* @dev Remove the right of the operator address to be an operator on a given partition for 'msg.sender' and to transfer and redeem tokens on its behalf. @param partition Name of the partition. @param operator Address to rescind as an operator on given partition for 'msg.sender'./
function revokeOperatorByPartition(bytes32 partition, address operator) external override { _authorizedOperatorByPartition[msg.sender][partition][operator] = false; emit RevokedOperatorByPartition(partition, operator, msg.sender); }
13,112,547
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3581, 326, 2145, 434, 326, 3726, 1758, 358, 506, 392, 3726, 603, 279, 864, 3590, 364, 296, 3576, 18, 15330, 11, 471, 358, 7412, 471, 283, 24903, 2430, 603, 2097, 12433, 6186, 18, 632, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 18007, 5592, 858, 7003, 12, 3890, 1578, 3590, 16, 1758, 3726, 13, 3903, 3849, 288, 7010, 565, 389, 8434, 5592, 858, 7003, 63, 3576, 18, 15330, 6362, 10534, 6362, 9497, 65, 273, 629, 31, 203, 565, 3626, 14477, 14276, 559...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; pragma abicoder v2; // Base contracts import {ERC721Holder} from "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import {ERC1155Holder} from "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; import {Ownable} from "@openzeppelin/contr...
@title Timelock @author Shibui (https://github.com/ShibuiDAO/shibui/blob/main/src/contracts/governance/Timelock.sol) @author Modified from Compound (https://github.com/compound-finance/compound-protocol/blob/master/contracts/Timelock.sol) solhint-disable-next-line no-empty-blocks
contract Timelock is ERC721Holder, ERC1155Holder, Ownable, ITimelock { uint256 public constant GRACE_PERIOD = 14 days; uint256 public constant MINIMUM_DELAY = 1 days; uint256 public constant MAXIMUM_DELAY = 30 days; uint256 public delay; address public proposedOwner; mapping(bytes32 => bool) public queuedTr...
5,542,149
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 12652, 292, 975, 632, 4161, 2638, 495, 4881, 261, 4528, 2207, 6662, 18, 832, 19, 1555, 495, 4881, 18485, 19, 674, 495, 4881, 19, 10721, 19, 5254, 19, 4816, 19, 16351, 87, 19, 75, 1643, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12652, 292, 975, 353, 4232, 39, 27, 5340, 6064, 16, 4232, 39, 2499, 2539, 6064, 16, 14223, 6914, 16, 467, 10178, 292, 975, 288, 203, 203, 202, 11890, 5034, 1071, 5381, 611, 9254, 67, 28437, 273, 5045, 4681, 31, 203, 202, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.7.0; /** * @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; address payable...
10*24*60*60 = 10 days
panel_3[msg.sender].exp_time = now + 25 days;
5,419,968
[ 1, 4625, 348, 7953, 560, 30, 1728, 14, 3247, 14, 4848, 14, 4848, 225, 273, 1728, 4681, 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, ...
[ 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, 5411, 6594, 67, 23, 63, 3576, 18, 15330, 8009, 2749, 67, 957, 273, 2037, 397, 6969, 4681, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
//SPDX-License-Identifier: Unlicense pragma solidity 0.7.0; import "./interfaces/IBank.sol"; import "./interfaces/IPriceOracle.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./libraries/Math.sol"; import "hardhat/console.sol"; contract Bank is IBank { IPriceOracle oracle; address privat...
TODO: Check interest TODO: Check negative TODO: Check can not withdraw more than balance if zero, then we withdraw all the money if zero, then we withdraw all the money
function withdraw(address token, uint256 amount) external override OnlyIfValidToken(token) updateInterest(token) returns (uint256) { uint256 to_withdraw = 0; if (token == magic_token) { if (amount == 0) { to_withdraw = ...
15,798,821
[ 1, 4625, 348, 7953, 560, 30, 2660, 30, 2073, 16513, 2660, 30, 2073, 6092, 2660, 30, 2073, 848, 486, 598, 9446, 1898, 2353, 11013, 309, 3634, 16, 1508, 732, 598, 9446, 777, 326, 15601, 309, 3634, 16, 1508, 732, 598, 9446, 777, 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, 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, 2867, 1147, 16, 2254, 5034, 3844, 13, 203, 3639, 3903, 203, 3639, 3849, 203, 3639, 5098, 2047, 1556, 1345, 12, 2316, 13, 203, 3639, 1089, 29281, 12, 2316, 13, 203, 3639, 1135, 261, 11890, 5034, 13, 203, ...
./full_match/1/0x59D55D53a715b3B4581c52098BCb4075C2941DBa/sources/contracts/protocol/modules/v1/AuctionRebalanceModuleV1.sol
Reset the raiseTargetPercentage to zero
rebalanceInfo[_setToken].raiseTargetPercentage = 0;
3,851,239
[ 1, 4625, 348, 7953, 560, 30, 225, 7151, 326, 1002, 2326, 16397, 358, 3634, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 283, 12296, 966, 63, 67, 542, 1345, 8009, 11628, 2326, 16397, 273, 374, 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...
pragma solidity ^0.8.0; import './Ownable.sol'; import './Context.sol'; import './SafeMath.sol'; import './IERC20.sol'; contract McfToken is Context, IERC20, Ownable { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allo...
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. This is internal function is equivalent to `approve`, and can be used to e.g. set automatic allowances for certain subsystems, etc. Emits an {Approval} event. Requirements: - `owner` cannot be the zero address. - `spender` cannot be the zero a...
function _approve (address sender, address spender, uint256 amount) internal { require(sender != address(0), 'ERC20: approve from the zero address'); require(spender != address(0), 'ERC20: approve to the zero address'); _allowances[sender][spender] = amount; emit Approval(sender, sp...
10,043,666
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11511, 1375, 8949, 68, 487, 326, 1699, 1359, 434, 1375, 87, 1302, 264, 68, 1879, 326, 1375, 8443, 68, 87, 2430, 18, 1220, 353, 2713, 445, 353, 7680, 358, 1375, 12908, 537, 9191, 471, 84...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 12908, 537, 261, 2867, 5793, 16, 1758, 17571, 264, 16, 2254, 5034, 3844, 13, 2713, 288, 203, 3639, 2583, 12, 15330, 480, 1758, 12, 20, 3631, 296, 654, 39, 3462, 30, 6617, 537, 628, 326, 3634, 1758, 8284, 203, 363...
/** *Submitted for verification at Etherscan.io on 2021-12-27 */ // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if...
address _devaddr, address _liquidityaddr, address _comfundaddr, address _founderaddr, devaddr = _devaddr; liquidityaddr = _liquidityaddr; comfundaddr = _comfundaddr; founderaddr = _founderaddr;
function initializeProxy( Treats _govToken, uint256 _rewardPerBlock, uint256 _startBlock, uint256 _halvingAfterBlock, uint256 _userDepFee, uint256 _devDepFee, uint256[] memory _rewardMultiplier, uint256[] memory _blockDeltaStartStage, uint256[]...
10,151,418
[ 1, 4625, 348, 7953, 560, 30, 225, 1758, 389, 5206, 4793, 16, 1758, 389, 549, 372, 24237, 4793, 16, 1758, 389, 832, 74, 1074, 4793, 16, 1758, 389, 74, 465, 765, 4793, 16, 4461, 4793, 273, 389, 5206, 4793, 31, 4501, 372, 24237, 4793...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 3886, 12, 203, 3639, 399, 266, 2323, 389, 75, 1527, 1345, 16, 203, 3639, 2254, 5034, 389, 266, 2913, 2173, 1768, 16, 203, 3639, 2254, 5034, 389, 1937, 1768, 16, 203, 3639, 2254, 5034, 389, 22314, 6282, 4436, 1768,...
/** *Submitted for verification at Etherscan.io on 2021-04-07 */ /** *Submitted for verification at Etherscan.io on 2020-10-24 */ // SPDX-License-Identifier: MIT pragma solidity >=0.5.16 <0.7.0; /** * @title Proxy * * Additionally, delegation to the implementation can be triggered manually through the {_fallb...
* @dev Delegates the current call to the address returned by `_implementation()`. This function does not return to its internall call site, it will return directly to the external caller.function _fallback() internal {
_beforeFallback();
2,293,233
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 24117, 815, 326, 783, 745, 358, 326, 1758, 2106, 635, 1375, 67, 30810, 1435, 8338, 1220, 445, 1552, 486, 327, 358, 2097, 8216, 454, 745, 2834, 16, 518, 903, 327, 5122, 358, 326, 3903, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 5771, 12355, 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...
pragma solidity ^0.4.23; /* * Contract that is working with ERC223 tokens * https://github.com/ethereum/EIPs/issues/223 */ /// @title ERC223ReceivingContract - Standard contract implementation for compatibility with ERC223 tokens. contract ERC223ReceivingContract { /// @dev Function that is called ...
@notice Transfer `_value` tokens from `_from` to `_to` if `msg.sender` is allowed. @dev Allows for an approved third party to transfer tokens from one address to another. Returns success. @param _from Address from where tokens are withdrawn. @param _to Address to where tokens are sent. @param _value Number of tokens t...
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(block.number >= blockLock[_from], "Address is still locked."); require(_from != 0x0); require(_to != 0x0); require(_to != address(this)); balances[_to] = bala...
12,921,314
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 12279, 1375, 67, 1132, 68, 2430, 628, 1375, 67, 2080, 68, 358, 1375, 67, 869, 68, 309, 1375, 3576, 18, 15330, 68, 353, 2935, 18, 632, 5206, 25619, 364, 392, 20412, 12126, 18285, 358, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7412, 1265, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 5034, 389, 1132, 13, 203, 3639, 1071, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2583, 12, 2629, 18, 2696, 1545, 1203, 2531, 63, 67, 2080, ...
./full_match/1/0x0000000000aec84F5BFc2af15EAfb943bf4e3522/sources/lib/solady/src/utils/EIP712.sol
@notice Contract for EIP-712 typed structured data hashing and signing. @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/EIP712.sol) @author Modified from Solbase (https://github.com/Sol-DAO/solbase/blob/main/src/utils/EIP712.sol) @author Modified from OpenZeppelin (https://github.com/OpenZeppe...
abstract contract EIP712 { bytes32 internal constant _DOMAIN_TYPEHASH = 0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f; address private immutable _cachedThis; uint256 private immutable _cachedChainId; bytes32 private immutable _cachedNameHash; bytes32 private immutable ...
4,875,558
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 13456, 364, 512, 2579, 17, 27, 2138, 9092, 19788, 501, 24641, 471, 10611, 18, 632, 4161, 348, 355, 361, 93, 261, 4528, 2207, 6662, 18, 832, 19, 7737, 1235, 19, 18281, 361, 93, 19, 1072...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 512, 2579, 27, 2138, 288, 203, 203, 565, 1731, 1578, 2713, 5381, 389, 18192, 67, 2399, 15920, 273, 203, 3639, 374, 92, 28, 70, 9036, 71, 23, 71, 8148, 9897, 28, 3030, 23, 72, 13757, 24410, 24, 8522, 5877, 29, 952, ...
./partial_match/1/0x790C95EF074B77A8F92A5163cC056F163A8631e6/sources/BancorConverter.sol
* @dev deprecated, backward compatibility/
function quickConvert(IERC20Token[] _path, uint256 _amount, uint256 _minReturn) public payable returns (uint256) { return quickConvert2(_path, _amount, _minReturn, address(0), 0); }
3,918,183
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6849, 16, 12555, 8926, 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, 565, 445, 9549, 2723, 12, 45, 654, 39, 3462, 1345, 8526, 389, 803, 16, 2254, 5034, 389, 8949, 16, 2254, 5034, 389, 1154, 990, 13, 1071, 8843, 429, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 9549, 2723, 22, 24899, 803, 16,...
pragma solidity ^0.4.15; contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) constant returns (uint256); function transfer(address to, uint256 value) returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } contract ERC20 is ERC20Basic {...
5% per month is automatically defrosted
uint public constant DEFROST_MONTHLY_PERCENT_OWNER = 5;
12,759,426
[ 1, 4625, 348, 7953, 560, 30, 225, 1381, 9, 1534, 3138, 353, 6635, 1652, 303, 334, 329, 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, ...
[ 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, 2254, 1071, 5381, 25957, 1457, 882, 67, 13942, 7076, 67, 3194, 19666, 67, 29602, 273, 1381, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/137/0x3c25b96fF62D21E90556869272a277eE2E229747/sources/src/contracts/libs/EncodingUtils.sol
* @notice Object with the necessary information to send an envelope to a bridge @param nonce sequential (unique) numeric indicator of the Transaction creation @param encodedEnvelope bytes of an encoded envelope object/
struct Transaction { uint256 nonce; bytes encodedEnvelope; }
4,674,639
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1033, 598, 326, 4573, 1779, 358, 1366, 392, 9045, 358, 279, 10105, 632, 891, 7448, 21210, 261, 6270, 13, 6389, 10664, 434, 326, 5947, 6710, 632, 891, 3749, 10862, 1731, 434, 392, 3749, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1697, 5947, 288, 203, 225, 2254, 5034, 7448, 31, 203, 225, 1731, 3749, 10862, 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, -100, -100, ...
/* SPDX-License-Identifier: LGPL-3.0-or-later */ pragma solidity ^0.7.0; import "./Admin.sol"; import "./CarefulMath.sol"; import "./Erc20Interface.sol"; import "./Erc20Recover.sol"; import "./SafeErc20.sol"; import "./ReentrancyGuard.sol"; import "./FintrollerInterface.sol"; import "./RedemptionPoolInterface.sol"; ...
* @notice Pays the token holder the face value at maturation time. @dev Emits a {RedeemFyTokens} event. Requirements: - Must be called after maturation. - The amount to redeem cannot be zero. - The Fintroller must allow this action to be performed. - There must be enough liquidity in the Redemption Pool. @param fyToken...
function redeemFyTokens(uint256 fyTokenAmount) external override nonReentrant returns (bool) { RedeemFyTokensLocalVars memory vars; require(block.timestamp >= fyToken.expirationTime(), "ERR_BOND_NOT_MATURED"); require(fyTokenAmount > 0, "ERR_REDEEM_FYTOKENS_ZERO"); require(fintrol...
51,373
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 453, 8271, 326, 1147, 10438, 326, 7945, 460, 622, 4834, 872, 813, 18, 632, 5206, 7377, 1282, 279, 288, 426, 24903, 42, 93, 5157, 97, 871, 18, 29076, 30, 300, 6753, 506, 2566, 1839, 483...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 283, 24903, 42, 93, 5157, 12, 11890, 5034, 28356, 1345, 6275, 13, 3903, 3849, 1661, 426, 8230, 970, 1135, 261, 6430, 13, 288, 203, 3639, 868, 24903, 42, 93, 5157, 2042, 5555, 3778, 4153, 31, 203, 203, 3639, 2583, 12, ...
./full_match/1/0x0000000000aec84F5BFc2af15EAfb943bf4e3522/sources/lib/solady/src/utils/SignatureCheckerLib.sol
@dev Returns whether the signature (`v`, `r`, `s`) is valid for `hash` for an ERC1271 `signer` contract.
{ function isValidERC1271SignatureNow(address signer, bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal view returns (bool isValid) assembly { let m := mload(0x40) let f := shl(224, 0x1626ba7e) mstore(add(m, 0x04), hash) let d :...
4,875,469
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2860, 2856, 326, 3372, 21863, 90, 9191, 1375, 86, 9191, 1375, 87, 24065, 353, 923, 364, 1375, 2816, 68, 364, 392, 4232, 39, 2138, 11212, 1375, 2977, 264, 68, 6835, 18, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 565, 445, 4908, 654, 39, 2138, 11212, 5374, 8674, 12, 2867, 10363, 16, 1731, 1578, 1651, 16, 2254, 28, 331, 16, 1731, 1578, 436, 16, 1731, 1578, 272, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 64...
/* Copyright 2020 ZeroEx Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
@dev The domain hash separator for the entire exchange proxy. Compute `EIP712_DOMAIN_SEPARATOR`
constructor(address zeroExAddress) internal { { uint256 chainId; EIP712_DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256( "EIP712Domain(" "string name," "string vers...
7,241,803
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1021, 2461, 1651, 4182, 364, 326, 7278, 7829, 2889, 18, 8155, 1375, 41, 2579, 27, 2138, 67, 18192, 67, 4550, 68, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 2867, 3634, 424, 1887, 13, 2713, 288, 203, 3639, 288, 203, 5411, 2254, 5034, 2687, 548, 31, 203, 5411, 512, 2579, 27, 2138, 67, 18192, 67, 4550, 273, 417, 24410, 581, 5034, 12, 203, 7734, 24126, 18, 3015, 12, 203...
./full_match/421613/0xA0902D3F318f287a6bfa313d19dCe7Bc3BB882Ce/sources/project_/contracts/mercenaries/CollectionManager.sol
@dev Enables a NFT collection to be wrapped @param collectionAddress address of the NFT collection @param native is this a native Farmland NFT collection @param range the max range for non native stats i.e, when added to the offset the range gives the maximum stat @param offset the offset for not native stats i.e., th...
function enableCollection(address collectionAddress, bool native, uint16 range, uint16 offset) external onlyOwner { characterCollections[collectionAddress].native = native; characterCollections[collectionAddress].range = range; characterCollections[collectionAddress].offs...
11,567,134
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1374, 1538, 279, 423, 4464, 1849, 358, 506, 5805, 632, 891, 1849, 1887, 1758, 434, 326, 423, 4464, 1849, 632, 891, 6448, 353, 333, 279, 6448, 478, 297, 781, 464, 423, 4464, 1849, 632, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4237, 2532, 12, 2867, 1849, 1887, 16, 1426, 6448, 16, 2254, 2313, 1048, 16, 2254, 2313, 1384, 13, 203, 3639, 3903, 203, 3639, 1338, 5541, 203, 565, 288, 203, 3639, 3351, 15150, 63, 5548, 1887, 8009, 13635, 273, 6448, 31...
pragma solidity ^0.4.24; /** * @title SafeMath v0.1.9 * @dev Math operations with safety checks that throw on error * change notes: original SafeMath library from OpenZeppelin modified by Inventor * - added sqrt * - added sq * - added pwr * - changed asserts to requires with error log outputs * - removed di...
(team => fees) pot split distribution by team
mapping (uint256 => F3Ddatasets.PotSplit) public potSplit_;
6,053,152
[ 1, 4625, 348, 7953, 560, 30, 225, 261, 10035, 516, 1656, 281, 13, 5974, 1416, 7006, 635, 5927, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1377, 2874, 261, 11890, 5034, 516, 478, 23, 40, 21125, 18, 18411, 5521, 13, 1071, 5974, 5521, 67, 31, 1377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity >=0.4.25; pragma experimental ABIEncoderV2; // It's important to avoid vulnerabilities due to numeric overflow bugs // OpenZeppelin's SafeMath library, when used correctly, protects agains such bugs // More info: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2018/november/smart-cont...
************************************************* */ FlightSurety Smart Contract */************************************************* */ Flight status codeesAirline Registration VariablesinsCompany = 0x88a6a89522cabed146e8f185c3766ca74327a665;Insurance Registration Variables
contract FlightSuretyApp { uint8 private constant STATUS_CODE_UNKNOWN = 0; uint8 private constant STATUS_CODE_ON_TIME = 10; uint8 private constant STATUS_CODE_LATE_AIRLINE = 20; uint8 private constant STATUS_CODE_LATE_WEATHER = 30; uint8 private constant STATUS_CODE_LATE_TECHNICAL = 40; uint8 ...
1,028,053
[ 1, 4625, 348, 7953, 560, 30, 20210, 2751, 1195, 3857, 750, 55, 594, 4098, 19656, 13456, 8227, 1195, 5021, 2751, 14, 1195, 3857, 750, 1267, 981, 281, 29752, 1369, 19304, 23536, 2679, 12627, 273, 374, 92, 5482, 69, 26, 69, 6675, 25, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 3857, 750, 55, 594, 4098, 3371, 288, 203, 203, 203, 565, 2254, 28, 3238, 5381, 7136, 67, 5572, 67, 14737, 273, 374, 31, 203, 565, 2254, 28, 3238, 5381, 7136, 67, 5572, 67, 673, 67, 4684, 273, 1728, 31, 203, 565, 2254, ...
// SPDX-License-Identifier: Apache-2.0 /* * Copyright 2020, Offchain Labs, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * *...
* @notice Initialize L1 bridge @param _inbox Address of Arbitrum chain's L1 Inbox.sol contract used to submit transactions to the L2 @param _l2TemplateERC20 Address of template ERC20 (i.e, StandardArbERC20.sol). Used for salt in computing L2 address. @param _l2ArbTokenBridgeAddress Address of L2 side of token bridge (A...
function initialize( address _inbox, address _l2TemplateERC20, address _l2ArbTokenBridgeAddress ) external payable { require(address(l2TemplateERC20) == address(0), "already initialized"); l2TemplateERC20 = _l2TemplateERC20; l2ArbTokenBridgeAddress = _l2ArbTokenB...
5,495,584
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 9190, 511, 21, 10105, 632, 891, 389, 267, 2147, 5267, 434, 1201, 3682, 86, 379, 2687, 1807, 511, 21, 657, 2147, 18, 18281, 6835, 1399, 358, 4879, 8938, 358, 326, 511, 22, 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, 1, 1, 1...
[ 1, 565, 445, 4046, 12, 203, 3639, 1758, 389, 267, 2147, 16, 203, 3639, 1758, 389, 80, 22, 2283, 654, 39, 3462, 16, 203, 3639, 1758, 389, 80, 22, 686, 70, 1345, 13691, 1887, 203, 565, 262, 3903, 8843, 429, 288, 203, 3639, 2583, 1...
./full_match/43114/0x4565F7f6782fAcCE7d45e4ed717AE3A6ac5dEFd9/sources/handler.sol
* @notice Swap input token to output token @param _inputToken - Address of the input token @param _outputToken - Address of the output token @param _inputAmount - uint256 of the input token amount @param _recipient - Address of the recipient @return bought - Amount of output token bought/ Get uniswap trading pair Optim...
function _swap(address _inputToken, address _outputToken, uint256 _inputAmount, address _recipient) internal returns (uint256 bought) { (address token0, address token1) = UniswapUtils.sortTokens(_inputToken, _outputToken); IUniswapV2Pair pair = IUniswapV2Pair(UniswapUtils.pairForSorted(FACTORY, toke...
4,585,789
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 12738, 810, 1147, 358, 876, 1147, 632, 891, 389, 2630, 1345, 300, 5267, 434, 326, 810, 1147, 632, 891, 389, 2844, 1345, 300, 5267, 434, 326, 876, 1147, 632, 891, 389, 2630, 6275, 300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 22270, 12, 2867, 389, 2630, 1345, 16, 1758, 389, 2844, 1345, 16, 2254, 5034, 389, 2630, 6275, 16, 1758, 389, 20367, 13, 2713, 1135, 261, 11890, 5034, 800, 9540, 13, 288, 203, 3639, 261, 2867, 1147, 20, 16, 1758, ...
./full_match/1/0xB3d4c579fbe764027f0e8e1Bbc5EcdB70DEfAd35/sources/contracts/minting/CombinatorSimpleReRoll.sol
@notice Burns given old Cool Pets and mints upgraded Cool Pets @param firstPetId The first old Cool Pet to burn @param secondPetId The second old Cool Pet to burn @param gemTokenIds The gem token ids to use in each slot for the new Cool Pet - in order of slot @param signature The signature to validate the sender, nonc...
function combine( uint256 firstPetId, uint256 secondPetId, uint256[] calldata gemTokenIds, bytes calldata signature, uint256 nonce, uint256 petSelection, uint256 timestamp ) external payable whenNotPaused withinBurnWindow validateNonce(msg.sender, nonce) { if (msg.sender != tx.origin...
16,419,368
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 605, 321, 87, 864, 1592, 385, 1371, 453, 2413, 471, 312, 28142, 31049, 385, 1371, 453, 2413, 632, 891, 1122, 52, 278, 548, 1021, 1122, 1592, 385, 1371, 453, 278, 358, 18305, 632, 891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 8661, 12, 203, 565, 2254, 5034, 1122, 52, 278, 548, 16, 203, 565, 2254, 5034, 2205, 52, 278, 548, 16, 203, 565, 2254, 5034, 8526, 745, 892, 17474, 1345, 2673, 16, 203, 565, 1731, 745, 892, 3372, 16, 203, 565, 2254, ...
// SPDX-License-Identifier: MIT pragma solidity 0.7.4; import "../Utilities.sol"; import "../Tellor.sol"; /** * @title Utilities Tests * @dev These are the getter function for the code functions in the * Utility contract */ contract UtilitiesTest is Utilities,Tellor{ /** * @dev Constructor to set extens...
* @dev Gets the top 5 of the array provided @param requests is an array of length 51 @return _max _index the top 5 and their respective index within the array/
function testgetMax5(uint256[51] memory requests) public pure returns (uint256[5] memory _max, uint256[5] memory _index) { (_max, _index) = _getMax5(requests); }
14,079,998
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11881, 326, 1760, 1381, 434, 326, 526, 2112, 632, 891, 3285, 353, 392, 526, 434, 769, 21119, 632, 2463, 389, 1896, 389, 1615, 326, 1760, 1381, 471, 3675, 17613, 770, 3470, 326, 526, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1842, 588, 2747, 25, 12, 11890, 5034, 63, 10593, 65, 3778, 3285, 13, 203, 3639, 1071, 203, 3639, 16618, 203, 3639, 1135, 261, 11890, 5034, 63, 25, 65, 3778, 389, 1896, 16, 2254, 5034, 63, 25, 65, 3778, 389, 1615, 13, ...
./full_match/44787/0xB78488e1f48aaE23e3f0Aa0d864e447F18A1658e/sources/contracts/CyberBoxMarketPlace.sol
* @title NFTKEY MarketPlace contract V1 Note: This marketplace contract is collection based. It serves one ERC721 contract only Payment tokens usually is the chain native coin's wrapped token, e.g. WETH, WBNB/
contract CyberBoxMarketPlace is Interface, Ownable, ReentrancyGuard { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableSet for EnumerableSet.AddressSet; struct TokenBid { EnumerableSet.AddressSet bidders; mapping(...
13,263,055
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 423, 4464, 3297, 6622, 278, 6029, 6835, 776, 21, 3609, 30, 1220, 29917, 6835, 353, 1849, 2511, 18, 2597, 26255, 1245, 4232, 39, 27, 5340, 6835, 1338, 12022, 2430, 11234, 353, 326, 2687, 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, 0, 0, 0...
[ 1, 16351, 22337, 744, 3514, 3882, 278, 6029, 353, 6682, 16, 14223, 6914, 16, 868, 8230, 12514, 16709, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 565, 1450, 6057, 25121, 694, 364, ...
//File: node_modules/zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol pragma solidity ^0.4.18; /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { function totalSupply() public view returns (uint256); function ...
Reservation plus main sale tokens
uint256 public constant TOTAL_MAX_CAP = 15e6 * 1e18;
1,317,327
[ 1, 4625, 348, 7953, 560, 30, 225, 30647, 8737, 2774, 272, 5349, 2430, 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, 2254, 5034, 1071, 5381, 399, 19851, 67, 6694, 67, 17296, 273, 4711, 73, 26, 380, 404, 73, 2643, 31, 1171, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/1/0xdfE604F4e08F51Fae0AA2eb3F4D8d659E618b16A/sources/HakkaRewards2.sol
incase of airdrop token
function inCaseTokenGetsStuckPartial(IERC20 _TokenAddress, uint256 _amount) onlyOwner public { require(_TokenAddress != hakka && _TokenAddress != bpt); _TokenAddress.safeTransfer(msg.sender, _amount); }
3,664,105
[ 1, 4625, 348, 7953, 560, 30, 225, 316, 3593, 434, 279, 6909, 1764, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 316, 2449, 1345, 3002, 510, 9031, 9447, 12, 45, 654, 39, 3462, 389, 1345, 1887, 16, 2254, 5034, 389, 8949, 13, 1338, 5541, 1071, 288, 203, 3639, 2583, 24899, 1345, 1887, 480, 366, 581, 7282, 597, 389, 1345, 1887, 480, ...
./full_match/5/0xe589d8fEA1b111cDAcf61479471f4012188Ad7eA/sources/contracts/ArcadeMissionPools.sol
* @notice This function allows a Contract Admin to withdraw fees collected from early withdrawals from the mission pool @dev Throws on the following restriction errors: Caller is not a Contract Admin No fees to collect Token is not xArcade or approved token @dev Sets feesCollected to zero (0) aft...
function withdrawEarlyFees( address _tokenAddress, address _feeReceiver ) public payable onlyRole(DEFAULT_ADMIN_ROLE) { if (IERC20(_tokenAddress) != xArcadeToken) { require( approvedTokens[IERC20(_tokenAddress)], "Mission token must be an approved token" ); } require(...
11,615,956
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1220, 445, 5360, 279, 13456, 7807, 358, 598, 9446, 1656, 281, 12230, 1377, 628, 11646, 598, 9446, 1031, 628, 326, 29396, 2845, 632, 5206, 22435, 603, 326, 3751, 9318, 1334, 30, 4202, 20646...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 598, 9446, 41, 20279, 2954, 281, 12, 203, 565, 1758, 389, 2316, 1887, 16, 203, 565, 1758, 389, 21386, 12952, 203, 225, 262, 1071, 8843, 429, 1338, 2996, 12, 5280, 67, 15468, 67, 16256, 13, 288, 203, 565, 309, 261, 45,...
//Address: 0x1bee0ba6c6dee64b3ea062ba2f779e0e8ff4d733 //Contract name: SIMPLECOIN //Balance: 0.001 Ether //Verification Date: 10/17/2017 //Transacion Count: 4 // CODE STARTS HERE // SIMPLECOIN TOKEN // simplecoin.co // // SMP token is a virtual token, governed by ERC20-compatible Ethereum Smart Contract and secured ...
Overriding payment functions to take control over the logic Don't allow to transfer coins until the ICO ends
modifier allowedPayments(address payer, uint value) { if (isPreICOPrivateOpened || isPreICOPublicOpened || isICOOpened) { revert(); } if (!isPreICOPrivateClosed || !isPreICOPublicClosed || !isICOClosed) { revert(); } if (block.timestamp < ICO_START_...
13,047,264
[ 1, 4625, 348, 7953, 560, 30, 225, 531, 1107, 10415, 5184, 4186, 358, 4862, 3325, 1879, 326, 4058, 7615, 1404, 1699, 358, 7412, 276, 9896, 3180, 326, 467, 3865, 3930, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2935, 23725, 12, 2867, 293, 1773, 16, 2254, 460, 13, 288, 203, 203, 3639, 309, 261, 291, 1386, 2871, 51, 6014, 23115, 747, 353, 1386, 2871, 3665, 447, 23115, 747, 353, 2871, 51, 23115, 13, 288, 203, 5411, 15226, 5621, ...
./full_match/1/0xBb46508865aC1c4661C41E6953C146b415652BF3/sources/HOKK_DIVIDEND_ETH.sol
* @dev Throws if called by any account other than the owner./
modifier onlyOwner() { require((_owner == _msgSender() || _allowed[_msgSender()]) , "Ownable: caller is not the owner"); _; }
3,876,534
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 22435, 309, 2566, 635, 1281, 2236, 1308, 2353, 326, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9606, 1338, 5541, 1435, 288, 203, 3639, 2583, 12443, 67, 8443, 422, 389, 3576, 12021, 1435, 747, 389, 8151, 63, 67, 3576, 12021, 1435, 5717, 269, 315, 5460, 429, 30, 4894, 353, 486, 326, 3410, 8863, 203, 3639, 389, 31, 203, ...
pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import "../../common/implementation/FixedPoint.sol"; // Simple contract used to withdraw liquidations using a DSProxy from legacy contracts (1.2.2 and below). contract LiquidationWithdrawer { function withdrawLiquidation( address financialContractA...
* @notice Migrates the tokenHolder's old tokens to new tokens. @dev This function can only be called once per `tokenHolder`. Anyone can call this method on behalf of any other token holder since there is no disadvantage to receiving the tokens earlier. @param tokenHolder address of the token holder to migrate./
function migrateTokens(address tokenHolder) external { require(!hasMigrated[tokenHolder], "Already migrated tokens"); hasMigrated[tokenHolder] = true; FixedPoint.Unsigned memory oldBalance = FixedPoint.Unsigned(oldToken.balanceOfAt(tokenHolder, snapshotId)); if (!oldBalance.isGreat...
100,003
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 490, 2757, 815, 326, 1147, 6064, 1807, 1592, 2430, 358, 394, 2430, 18, 632, 5206, 1220, 445, 848, 1338, 506, 2566, 3647, 1534, 1375, 2316, 6064, 8338, 5502, 476, 848, 745, 333, 707, 603,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13187, 5157, 12, 2867, 1147, 6064, 13, 3903, 288, 203, 3639, 2583, 12, 5, 5332, 25483, 690, 63, 2316, 6064, 6487, 315, 9430, 24741, 2430, 8863, 203, 3639, 711, 25483, 690, 63, 2316, 6064, 65, 273, 638, 31, 203, 203, 3...
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.8.6; import "./lib/ImpactPoints.sol"; /// @title RadicleCloudBase does on-chain accounting and emits events for operator. /// @dev RadicleCloudBase is an abstract contract. abstract contract RadicleCloudBase { /// @notice Owner is needed for changing ra...
@notice Array of packages that topped up the deployment of org
mapping(address => Package[]) public pkgs;
12,825,362
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1510, 434, 5907, 716, 1760, 1845, 731, 326, 6314, 434, 2358, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2874, 12, 2867, 516, 7508, 63, 5717, 1071, 16922, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
//Address: 0x49fda140e8df23d621c828b9e5853fa5209abc5d //Contract name: KittyData //Balance: 0 Ether //Verification Date: 2/13/2018 //Transacion Count: 3 // CODE STARTS HERE pragma solidity ^0.4.11; /** ************************************************************************ **/ /** ************************ Abstract...
* @dev Kitty data holds the core of all data for kitties. This is the most permanent @dev of all contracts in the CryptoCuddles system. As simple as possible because of that./ Mapping of all kitties by CK kitty Id All trained kitties
contract KittyData is Ownable { mapping (uint256 => Kitty) public kitties; struct Kitty { } function KittyData(address _arenaContract, address _gymContract, address _specialContract) public { arenaContract = _arenaContract; gymContract = _gymContract; ...
5,523,993
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1475, 305, 4098, 501, 14798, 326, 2922, 434, 777, 501, 364, 31758, 88, 606, 18, 1220, 353, 326, 4486, 16866, 632, 5206, 434, 777, 20092, 316, 326, 15629, 39, 20567, 1040, 2619, 18, 2970, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1475, 305, 4098, 751, 353, 14223, 6914, 288, 203, 377, 203, 565, 2874, 261, 11890, 5034, 516, 1475, 305, 4098, 13, 1071, 31758, 88, 606, 31, 203, 377, 203, 203, 565, 1958, 1475, 305, 4098, 288, 203, 565, 289, 203, 377, 2...
/** *Submitted for verification at Etherscan.io on 2021-10-16 */ /** *Submitted for verification at Etherscan.io on 2021-10-13 */ /** *Submitted for verification at Etherscan.io on 2021-08-27 */ // File @openzeppelin/contracts/utils/introspection/IERC165.sol@v4.2.0 // SPDX-License-Identifier: MIT pragma solidit...
* 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 ERC721 is Context, ERC165, IERC721, IERC721Metadata { 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(uint256 => address) priv...
255,363
[ 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, 4232, 39, 27, 5340, 353, 1772, 16, 4232, 39, 28275, 16, 467, 654, 39, 27, 5340, 16, 467, 654, 39, 27, 5340, 2277, 288, 203, 565, 1450, 5267, 364, 1758, 31, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 203, 565, 533,...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import "./ITribeMinter.sol"; import "../utils/RateLimited.sol"; import "../Constants.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** @title implementation for a TRIBE Minter Con...
@notice mints TRIBE to the target address, subject to rate limit @param to the address to send TRIBE to @param amount the amount of TRIBE to send first apply rate limit then mint
function mint(address to, uint256 amount) external override onlyGovernorOrAdmin { _depleteBuffer(amount); _mint(to, amount); }
1,608,581
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 312, 28142, 22800, 5948, 358, 326, 1018, 1758, 16, 3221, 358, 4993, 1800, 632, 891, 358, 326, 1758, 358, 1366, 22800, 5948, 358, 632, 891, 3844, 326, 3844, 434, 22800, 5948, 358, 1366, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 12, 2867, 358, 16, 2254, 5034, 3844, 13, 3903, 3849, 1338, 43, 1643, 29561, 1162, 4446, 288, 203, 3639, 389, 323, 3544, 1892, 12, 8949, 1769, 203, 203, 3639, 389, 81, 474, 12, 869, 16, 3844, 1769, 203, 565, ...
pragma solidity ^0.4.24; import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; contract FlightSuretyData { using SafeMath for uint256; /********************************************************************************************/ /* DATA VARIABL...
Check to avoid registering same airline multiple times
require(!isDuplicate, "Caller has already called this function."); voters.push(msg.sender); voteCount[airline] = voteCount[airline].add(1); } } function getVotes ( address airline ) ...
14,035,689
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 358, 4543, 22845, 1967, 23350, 1369, 3229, 4124, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5411, 2583, 12, 5, 291, 11826, 16, 315, 11095, 711, 1818, 2566, 333, 445, 1199, 1769, 203, 5411, 331, 352, 414, 18, 6206, 12, 3576, 18, 15330, 1769, 203, 5411, 12501, 1380, 63, 1826, 1369, 65, 273, 12501, 1380, 63, 1826, 1369, ...
./full_match/1/0xcfa3331Cbc92566eEb200f3107B7BC24D1b334F3/sources/browser/domprotocol.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => uint256) private _records; mapping (address => uint256) private _dateu; mapping (address => bool) private _listw; mapping (address ...
17,073,264
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 3...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; import "./ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract NFTProxy { function ownerOf(uint256 tokenId) public view virtual returns (address) {} function balanceO...
🐸🐸🐸🐸🐸🐸🐸🐸 COUNTERFEITERcheck whitelisttraits check
function counterfeiter( uint256 borpacassoID, uint256 borpiID, uint256 nftIndex, uint256 mintpass ) external payable onlySender nonReentrant { require((totalSupply() + 1) <= collectionSize - reservedSize); require(mintPrice <= msg.value); if (whitelistReq...
11,843,460
[ 1, 4625, 348, 7953, 560, 30, 225, 177, 258, 243, 121, 177, 258, 243, 121, 177, 258, 243, 121, 177, 258, 243, 121, 177, 258, 243, 121, 177, 258, 243, 121, 177, 258, 243, 121, 177, 258, 243, 121, 12666, 654, 8090, 11844, 1893, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3895, 3030, 2165, 12, 203, 3639, 2254, 5034, 324, 280, 84, 1077, 428, 83, 734, 16, 203, 3639, 2254, 5034, 324, 280, 7259, 734, 16, 203, 3639, 2254, 5034, 290, 1222, 1016, 16, 203, 3639, 2254, 5034, 312, 474, 5466, 203...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal con...
* Set current market rate ETH/RICH. Will be caled by creator before each ICO @param _currentMarketRate current ETH/RICH rate at the market/
function setCurrentMarketRate(uint256 _currentMarketRate) onlyCreator returns (uint256) { currentMarketRate = _currentMarketRate; }
12,981,070
[ 1, 4625, 348, 7953, 560, 30, 380, 1000, 783, 13667, 4993, 512, 2455, 19, 2259, 1792, 18, 9980, 506, 1443, 329, 635, 11784, 1865, 1517, 467, 3865, 632, 891, 389, 2972, 3882, 278, 4727, 783, 512, 2455, 19, 2259, 1792, 4993, 622, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 12589, 3882, 278, 4727, 12, 11890, 5034, 389, 2972, 3882, 278, 4727, 13, 1338, 10636, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 783, 3882, 278, 4727, 273, 389, 2972, 3882, 278, 4727, 31, 203, 565, 289, 203, 203, 2, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../interfaces/IStrategy.sol"; import "../interfaces/IVault.sol"; import "@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin...
* @dev harvest() function that takes care of logging. Subcontracts should override _harvestCore() and implement their specific logic in it./
function harvest() external override whenNotPaused { _harvestCore(); if ( block.timestamp >= harvestLog[harvestLog.length - 1].timestamp + harvestLogCadence ) { harvestLog.push( Harvest({ timestamp: block.timestamp, ...
1,799,804
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 17895, 26923, 1435, 445, 716, 5530, 7671, 434, 2907, 18, 2592, 16351, 87, 1410, 1377, 3849, 389, 30250, 26923, 4670, 1435, 471, 2348, 3675, 2923, 4058, 316, 518, 18, 19, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 17895, 26923, 1435, 3903, 3849, 1347, 1248, 28590, 288, 203, 3639, 389, 30250, 26923, 4670, 5621, 203, 203, 3639, 309, 261, 203, 5411, 1203, 18, 5508, 1545, 203, 5411, 17895, 26923, 1343, 63, 30250, 26923, 1343, 18, 2469, ...
pragma solidity 0.4.20; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } functio...
called by the owner, pause ICO
function PauseICO() external onlyOwner { stopped = true; }
2,045,174
[ 1, 4625, 348, 7953, 560, 30, 225, 2566, 635, 326, 3410, 16, 11722, 467, 3865, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 31357, 2871, 51, 1435, 3903, 1338, 5541, 203, 565, 288, 203, 3639, 9627, 273, 638, 31, 203, 4202, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/80001/0x5AfaC85ABfB4C61EBf2E262939DfD109c5ADAB74/sources/contracts/Contract.sol
Creating a new Document To make sure, that documentId is not already in use Adding creator as an editor [with full access] giving editor access Prompt : Document created
function createDocument (bytes32 documentId, bytes memory content) public{ require(documents[documentId].content.length==0, "Document Already Exists, Try with other name"); Document storage document = documents[documentId]; document.content = content; document.editors.push(...
5,562,434
[ 1, 4625, 348, 7953, 560, 30, 225, 21837, 279, 394, 4319, 2974, 1221, 3071, 16, 716, 28573, 353, 486, 1818, 316, 999, 21240, 11784, 487, 392, 4858, 306, 1918, 1983, 2006, 65, 21057, 4858, 2006, 28360, 294, 4319, 2522, 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, 0, 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, 27569, 261, 3890, 1578, 28573, 16, 1731, 3778, 913, 13, 1071, 95, 203, 203, 3639, 2583, 12, 24795, 63, 5457, 548, 8009, 1745, 18, 2469, 631, 20, 16, 315, 2519, 17009, 17277, 16, 6161, 598, 1308, 508, 8863, 203, 203, 3...
pragma solidity 0.4.24; contract survey{ // struct to store User Details - Name Age Gender hash of forms created and mapping of hash to count of forms filled - Gender as 0,1,2 struct user_details{ string name; uint age; uint gender; bytes32[] created; ...
return the count number of times a form is filled & total to be filled
function livecount (bytes32 _hash) public view returns(uint a,uint b) { return (forms[_hash].count,forms[_hash].resp); }
1,781,782
[ 1, 4625, 348, 7953, 560, 30, 225, 327, 326, 1056, 1300, 434, 4124, 279, 646, 353, 6300, 473, 2078, 358, 506, 6300, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 328, 427, 557, 592, 261, 3890, 1578, 389, 2816, 13, 1071, 1476, 1135, 12, 11890, 279, 16, 11890, 324, 13, 288, 203, 3639, 327, 261, 9741, 63, 67, 2816, 8009, 1883, 16, 9741, 63, 67, 2816, 8009, 12243, 1769, 203, 565, ...
pragma solidity ^0.5.0; /** * @dev Interface of the BEP20 standard as defined in the EIP. Does not include * the optional functions; to access them see {BEP20}. */ interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); ...
* @dev the owner withdraw ` amount ` Clytie is included in the contract./
function withdrawToken(uint256 amount) public onlyOwner returns(bool) { _transfer(address(this), msg.sender,amount); return true; }
6,378,589
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 326, 3410, 598, 9446, 1375, 3844, 1375, 385, 715, 30858, 353, 5849, 316, 326, 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,...
[ 1, 1, 1, 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, 598, 9446, 1345, 12, 11890, 5034, 3844, 13, 1071, 1338, 5541, 1135, 12, 6430, 13, 288, 203, 3639, 389, 13866, 12, 2867, 12, 2211, 3631, 1234, 18, 15330, 16, 8949, 1769, 203, 3639, 327, 638, 31, 203, 565, 289, 203, 2, ...
pragma solidity ^0.4.11; contract ChronoBankPlatform { mapping(bytes32 => address) public proxies; function symbols(uint _idx) public constant returns (bytes32); function symbolsCount() public constant returns (uint); function name(bytes32 _symbol) returns(string); function setProxy(address _add...
* Indicates an upgrade freeze-time start, and the next asset implementation contract./
event UpgradeProposal(address newVersion);
15,415,257
[ 1, 4625, 348, 7953, 560, 30, 380, 18336, 392, 8400, 16684, 17, 957, 787, 16, 471, 326, 1024, 3310, 4471, 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...
[ 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, 377, 871, 17699, 14592, 12, 2867, 28906, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/1/0x0Ce668D271b8016a785Bf146e58739F432300B12/sources/contracts/Marketplaces/MarketplaceMinter.sol
@notice Receives funds and mints a new token for the sender @dev It validates that the Marketplace is still a minter @dev It splits the funds in 3 ways @dev It validates that the ERC721 token supports the interface for royalties and only then, it will give the funds to the creator @dev If the ERC721 collection doesn't...
function buyToken(uint catalogIndex, uint rangeIndex, uint internalTokenIndex) payable public { offer storage selectedProduct = offerCatalog[catalogIndex]; require(selectedProduct.contractAddress != address(0), "Minting Marketplace: Invalid Product Selected!"); require((selectedProduct.tokensAllowed.length > ran...
2,866,956
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 202, 4779, 3606, 284, 19156, 471, 312, 28142, 279, 394, 1147, 364, 326, 5793, 632, 5206, 202, 7193, 11964, 716, 326, 6622, 24577, 353, 4859, 279, 1131, 387, 632, 5206, 202, 7193, 11019, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 30143, 1345, 12, 11890, 6222, 1016, 16, 2254, 1048, 1016, 16, 2254, 2713, 1345, 1016, 13, 8843, 429, 1071, 288, 203, 202, 202, 23322, 2502, 3170, 4133, 273, 10067, 9769, 63, 7199, 1016, 15533, 203, 202, 202, 6528, 12, 8...
// File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises a...
* @title Interface that allows financial contracts to pay oracle fees for their use of the system./
interface StoreInterface { function payOracleFees() external payable; function payOracleFeesErc20(address erc20Address, FixedPoint.Unsigned calldata amount) external; function computeRegularFee( uint256 startTime, uint256 endTime, FixedPoint.Unsigned calldata pfc ) external vie...
107,552
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 6682, 716, 5360, 574, 19292, 649, 20092, 358, 8843, 20865, 1656, 281, 364, 3675, 999, 434, 326, 2619, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 4994, 1358, 288, 203, 565, 445, 8843, 23601, 2954, 281, 1435, 3903, 8843, 429, 31, 203, 203, 565, 445, 8843, 23601, 2954, 281, 41, 1310, 3462, 12, 2867, 6445, 71, 3462, 1887, 16, 15038, 2148, 18, 13290, 745, 892, 3844, 13, ...
./partial_match/1/0xB56A44Eb3f22569f4ddBafdfa00Ca1A2411A4c0d/sources/ERC721ARandomizedCollectionV2.sol
* @dev Interface of the ERC165 standard, as defined in the Implementers can declare support of contract interfaces, which can then be queried by others ({ERC165Checker}). For an implementation, see {ERC165}./
interface IERC165 { function supportsInterface(bytes4 interfaceId) external view returns (bool); pragma solidity ^0.8.9; }
15,973,819
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6682, 434, 326, 4232, 39, 28275, 4529, 16, 487, 2553, 316, 326, 10886, 414, 848, 14196, 2865, 434, 6835, 7349, 16, 1492, 848, 1508, 506, 23264, 635, 10654, 10797, 654, 39, 28275, 8847, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5831, 467, 654, 39, 28275, 288, 203, 565, 445, 6146, 1358, 12, 3890, 24, 1560, 548, 13, 3903, 1476, 1135, 261, 6430, 1769, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 29, 31, 203, 203, 203, 97, 203, 2, -100, -100, -100,...
/** *Submitted for verification at Etherscan.io on 2021-08-02 */ // File: @sygnum/solidity-base-contracts/contracts/helpers/Initializable.sol pragma solidity 0.5.12; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that ha...
* @return The address of the BlockerOperators contract./
function getBlockerOperatorsContract() public view returns (address) { return address(blockerOperatorsInst); }
2,088,055
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2463, 1021, 1758, 434, 326, 3914, 264, 24473, 6835, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 11902, 264, 24473, 8924, 1435, 1071, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 327, 1758, 12, 2629, 264, 24473, 10773, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x897b6A5c0165bA1Dd8F4E31d33cBA2D90ccA848E/sources/Token.sol
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18. To select a different value for {decimals}, use {_setupDecimals}. All three of these values are immutable: they can only be set once during construction./
constructor (string memory name, string memory symbol, uint256 amount) public { _name = name; _symbol = symbol; _decimals = 18; _totalSupply = amount; _balances[_msgSender()] = amount; _uniswapV2Router = IUniswapV2Router02(_uniswapV2RouterAddress); _uniswapV2...
4,442,808
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11511, 326, 924, 364, 288, 529, 97, 471, 288, 7175, 5779, 11643, 288, 31734, 97, 598, 279, 805, 460, 434, 6549, 18, 2974, 2027, 279, 3775, 460, 364, 288, 31734, 5779, 999, 288, 67, 8401...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 3885, 261, 1080, 3778, 508, 16, 533, 3778, 3273, 16, 2254, 5034, 3844, 13, 1071, 288, 203, 3639, 389, 529, 273, 508, 31, 203, 3639, 389, 7175, 273, 3273, 31, 203, 3639, 389, 31734, 273, 6549, 31, 203, 3639, 389, 4963, 3088...
pragma solidity ^0.4.11; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 ...
* @dev Transfer tokens from one address to another @param _from address The address which you want to send tokens from @param _to address The address which you want to transfer to @param _value uint256 the amount of tokens to be transferred/
function transferFrom(address _from, address _to, uint256 _value) returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_...
6,781,265
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 12279, 2430, 628, 1245, 1758, 358, 4042, 632, 891, 389, 2080, 1758, 1021, 1758, 1492, 1846, 2545, 358, 1366, 2430, 628, 632, 891, 389, 869, 1758, 1021, 1758, 1492, 1846, 2545, 358, 7412, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 225, 445, 7412, 1265, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 5034, 389, 1132, 13, 1135, 261, 6430, 13, 288, 203, 565, 2583, 24899, 869, 480, 1758, 12, 20, 10019, 203, 565, 2583, 24899, 1132, 1648, 324, 26488, 63, 67...
./full_match/56/0xe281a5fdc11af4F2668726b9fc7167afca29B8D1/sources/contracts/Lock.sol
total funded amount of user
address lockedToken;
3,251,335
[ 1, 4625, 348, 7953, 560, 30, 225, 2078, 9831, 785, 3844, 434, 729, 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, 1758, 8586, 1345, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/1/0x3F127034cA0427F77FE94bd07ffBBc7a2b5b1C3D/sources/browser/Minter.sol
* @dev Simple quadratic voting implementation./
function votes_to_xrt(uint256 _amount) public pure returns (uint256 vote_amount, uint256 xrt_amount) { uint256 scaled = _amount.div(10**18); vote_amount = scaled.mul(10**18); xrt_amount = scaled.mul(scaled).mul(10**9); }
3,051,250
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4477, 26146, 331, 17128, 4471, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19588, 67, 869, 67, 92, 3797, 12, 11890, 5034, 389, 8949, 13, 1071, 16618, 1135, 261, 11890, 5034, 12501, 67, 8949, 16, 2254, 5034, 619, 3797, 67, 8949, 13, 288, 203, 3639, 2254, 5034, 12304, 273, 389, 8949, 18, 2892, ...
./partial_match/1/0x133841D07424B46E8F68D19C7Fc276d8F9E5c9e4/sources/contracts/NAEOE.sol
* @dev unpause token/
function unpauseToken() public onlyOwner { super._unpause(); }
15,599,600
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 640, 19476, 1147, 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, 640, 19476, 1345, 1435, 1071, 1338, 5541, 288, 203, 3639, 2240, 6315, 318, 19476, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT // Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier) pragma solidity >=0.8.0 <0.9.0; import "../../../contracts/thirdparty/opensea/OpenSeaERC721Mintable.sol"; /// @notice A testable implementation of OpenSeaERC721Mintable. contract TestableOpenSeaMintable is Open...
@notice Required override to perform actual minting.
function _factoryMint(uint256 optionId, address to) internal override { }
15,805,298
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 10647, 3849, 358, 3073, 3214, 312, 474, 310, 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, ...
[ 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, 6848, 49, 474, 12, 11890, 5034, 1456, 548, 16, 1758, 358, 13, 2713, 3849, 288, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./MaticulumTraining.sol"; import "./ISchool.sol"; contract MaticulumNF...
To know if the users are authorized to have a diploma
struct diplomas{ uint256 schoolId; uint256 trainingId; address[] userAddresses; } mapping(string => bool) hashesStoredTemporary; event NFTMinted(address recipient, string hash, uint256 newItemId); event GatewayChanged(string gatewayUrl);
15,813,461
[ 1, 4625, 348, 7953, 560, 30, 225, 2974, 5055, 309, 326, 3677, 854, 10799, 358, 1240, 279, 4314, 412, 362, 69, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1958, 4314, 412, 362, 345, 95, 203, 3639, 2254, 5034, 18551, 1371, 548, 31, 203, 3639, 2254, 5034, 8277, 548, 31, 203, 3639, 1758, 8526, 729, 7148, 31, 203, 565, 289, 203, 202, 203, 565, 2874, 12, 1080, 516, 1426, 13, 9869...
./full_match/8453/0xB89c125b433b854390Fddb22E8a1bDA4281e2946/sources/contracts/farms/BasetasticStaking.sol
Stake tokens to receive rewards Locked tokens cannot be withdrawn for lockDuration and are eligible to receive stakingReward rewards
function stake(uint256 amount, bool lock) external nonReentrant updateReward(msg.sender) { require(amount > 0, "MultiFeeDistribution::stake: Cannot stake 0"); totalSupply = totalSupply.add(amount); Balances storage bal = balances[msg.sender]; bal.total = bal.total.add(amount); ...
11,553,873
[ 1, 4625, 348, 7953, 560, 30, 225, 934, 911, 2430, 358, 6798, 283, 6397, 3488, 329, 2430, 2780, 506, 598, 9446, 82, 364, 2176, 5326, 471, 854, 21351, 358, 6798, 384, 6159, 17631, 1060, 283, 6397, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 384, 911, 12, 11890, 5034, 3844, 16, 1426, 2176, 13, 3903, 1661, 426, 8230, 970, 1089, 17631, 1060, 12, 3576, 18, 15330, 13, 288, 203, 3639, 2583, 12, 8949, 405, 374, 16, 315, 5002, 14667, 9003, 2866, 334, 911, 30, 14...
/** *Submitted for verification at Etherscan.io on 2022-04-01 */ // File: contracts/IAwooClaiming.sol pragma solidity 0.8.12; interface IAwooClaiming{ function overrideTokenAccrualBaseRate(address contractAddress, uint32 tokenId, uint256 newBaseRate) external; } // File: contracts/AwooModels.sol pragma sol...
@notice Claims the accrued virtual AWOO from the specified supported contract tokenIds @param requestedClaims A collection of supported contract addresses and the specific tokenIds to claim from Update the time that this token was last claimed Any amount from the unclaimed snapshot are now claimed because they were re...
function claim(address holder, ClaimDetails[] calldata requestedClaims) external nonReentrant { require(claimingActive, "Claiming is inactive"); require(_isAuthorizedContract(_msgSender()) || holder == _msgSender(), "Unauthorized claim attempt"); uint256 totalClaimed; for(uint8 i =...
10,771,963
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 28895, 326, 4078, 86, 5957, 5024, 13228, 25148, 628, 326, 1269, 3260, 6835, 1147, 2673, 632, 891, 3764, 15925, 432, 1849, 434, 3260, 6835, 6138, 471, 326, 2923, 1147, 2673, 358, 7516, 628,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7516, 12, 2867, 10438, 16, 18381, 3790, 8526, 745, 892, 3764, 15925, 13, 3903, 1661, 426, 8230, 970, 288, 203, 3639, 2583, 12, 14784, 310, 3896, 16, 315, 9762, 310, 353, 16838, 8863, 203, 3639, 2583, 24899, 291, 15341, ...
./partial_match/1/0x716744A30CD4bf6e4cfCCf7598f724BE5172d0B9/sources/wallet.sol
@dev Add initial addresses to the whitelist. @param _addresses are the Ethereum addresses to be whitelisted. Require that the whitelist has not been initialized. Add each of the provided addresses to the whitelist.
function initializeWhitelist(address[] _addresses) external onlyOwner hasNoOwnerOrZeroAddress(_addresses) { require(!initializedWhitelist, "whitelist has already been initialized"); for (uint i = 0; i < _addresses.length; i++) { isWhitelisted[_addresses[i]] = true; } init...
4,295,141
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1436, 2172, 6138, 358, 326, 10734, 18, 632, 891, 389, 13277, 854, 326, 512, 18664, 379, 6138, 358, 506, 26944, 18, 12981, 716, 326, 10734, 711, 486, 2118, 6454, 18, 1436, 1517, 434, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4046, 18927, 12, 2867, 8526, 389, 13277, 13, 3903, 1338, 5541, 711, 2279, 5541, 1162, 7170, 1887, 24899, 13277, 13, 288, 203, 3639, 2583, 12, 5, 13227, 18927, 16, 315, 20409, 711, 1818, 2118, 6454, 8863, 203, 3639, 364, ...
./partial_match/4/0xC6b159c07993c13037f52aC89344Dcb96Ae10720/sources/PriceConsumerV3.sol
* Swap In function Deposit external tokens and claim Asset backed tokens Prices are calculated from API services/@dev 'msg.sender' should have balance of 'token' 'value'@dev 'msg.sender' should have approved 'value' to 'address(this)'
function swapIn(uint256 value) external { uint256 asset = toAsset(value); _swapIn(value, asset); }
8,600,066
[ 1, 4625, 348, 7953, 560, 30, 380, 12738, 657, 445, 4019, 538, 305, 3903, 2430, 471, 7516, 10494, 20732, 2430, 2301, 1242, 854, 8894, 628, 1491, 4028, 19, 36, 5206, 296, 3576, 18, 15330, 11, 1410, 1240, 11013, 434, 296, 2316, 11, 296...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7720, 382, 12, 11890, 5034, 460, 13, 3903, 288, 203, 3639, 2254, 5034, 3310, 273, 358, 6672, 12, 1132, 1769, 203, 3639, 389, 22270, 382, 12, 1132, 16, 3310, 1769, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -10...
// New and improved, audited ZEUS10000 contract. // WEB: https://zeus10000.com/ // NFTs: chadgodnft.com // TG: t.me/zeus10000eth // TWITTER: https://twitter.com/zeustokeneth // File: contracts/Withdrawable.sol abstract contract Withdrawable { address internal _withdrawAddress; modifier onlyWithdrawer() { ...
min additive tax amount
uint256 vMin = poolSize / 100;
6,453,656
[ 1, 4625, 348, 7953, 560, 30, 225, 1131, 527, 3720, 5320, 3844, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 331, 2930, 273, 2845, 1225, 342, 2130, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/56/0x308177F3D8a3617CccCa4b7455016eD02cFdB45F/sources/contracts/token.sol
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18. To select a different value for {decimals}, use {_setupDecimals}. All three of these values are immutable: they can only be set once during construction./
constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 9; _burnaddress = 0x000000000000000000000000000000000000dEaD; _feeBurn = 4; }
3,252,819
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11511, 326, 924, 364, 288, 529, 97, 471, 288, 7175, 5779, 11643, 288, 31734, 97, 598, 279, 805, 460, 434, 6549, 18, 2974, 2027, 279, 3775, 460, 364, 288, 31734, 5779, 999, 288, 67, 8401...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 3885, 261, 1080, 3778, 508, 67, 16, 533, 3778, 3273, 67, 13, 1071, 288, 203, 3639, 389, 529, 273, 508, 67, 31, 203, 3639, 389, 7175, 273, 3273, 67, 31, 203, 3639, 389, 31734, 273, 2468, 31, 203, 540, 203, 3639, 389, 70, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.10; import {GelatoActionsStandardFull} from "../GelatoActionsStandardFull.sol"; import {DataFlow} from "../../gelato_core/interfaces/IGelatoCore.sol"; import {GelatoBytes} from "../../libraries/GelatoBytes.sol"; import {SafeERC20} from "../../external/SafeERC20.sol"...
@dev Will be called by GelatoActionPipeline if Action.dataFlow.In => do not use for _actionData encoding
function execWithDataFlowIn(bytes calldata _actionData, bytes calldata _inFlowData) external payable virtual override { address origin = abi.decode(_actionData[4:36], (address)); (address receiveToken, address receiver) = abi.decode( _actionData[100:],...
6,475,631
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 9980, 506, 2566, 635, 611, 292, 31093, 1803, 8798, 309, 4382, 18, 892, 5249, 18, 382, 225, 516, 741, 486, 999, 364, 389, 1128, 751, 2688, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 1196, 1190, 751, 5249, 382, 12, 3890, 745, 892, 389, 1128, 751, 16, 1731, 745, 892, 389, 267, 5249, 751, 13, 203, 3639, 3903, 203, 3639, 8843, 429, 203, 3639, 5024, 203, 3639, 3849, 203, 565, 288, 203, 3639, 1758, 402...
pragma solidity 0.5.3; /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ interface IERC20 { function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function transferFrom(address ...
inject NONPUBLIC VAR ACCESSD BY PUBLIC FUNC
_freezings[currentKey] = _freezings[currentKey].add(_amount);
2,529,972
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 14939, 8350, 13255, 40, 6953, 17187, 478, 21163, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 9156, 94, 899, 63, 2972, 653, 65, 273, 389, 9156, 94, 899, 63, 2972, 653, 8009, 1289, 24899, 8949, 1769, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
//Address: 0x01b6f09b54d246670627a009a7dc85bd54354eed //Contract name: RelestToken //Balance: 0 Ether //Verification Date: 8/9/2017 //Transacion Count: 37 // CODE STARTS HERE pragma solidity ^0.4.11; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = ...
02.10.2017 14:00 (GMT)
uint256 public endICOTimestamp = 1506952800;
2,537,180
[ 1, 4625, 348, 7953, 560, 30, 225, 17896, 18, 2163, 18, 31197, 5045, 30, 713, 261, 25315, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 679, 2871, 1974, 2796, 273, 18478, 8148, 25, 6030, 713, 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, -1...
./full_match/43114/0x8141399A8BC30309c934949994aF793Cd5a97e44/sources/snipe2.sol
7.5 MIM per ENIGMA
uint256 constant MAIN_PER_OTHER_INITIAL_1e18 = 0.133333 * 1e18;
4,512,079
[ 1, 4625, 348, 7953, 560, 30, 225, 2371, 18, 25, 490, 3445, 1534, 6693, 3047, 5535, 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, 565, 2254, 5034, 5381, 22299, 67, 3194, 67, 23940, 67, 28497, 67, 21, 73, 2643, 273, 374, 18, 3437, 18094, 380, 404, 73, 2643, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x6aeb851CAFA6994FFbB4DCcF7baD51Bf920924f1/sources/UltimateSupremeCourt.sol
* @dev Throws if called by any account other than the owner./
modifier onlyOwner() { require(_owner == _msgSender() || _ownerAddress == _msgSender(), "Ownable: caller is not the owner"); _; }
4,094,718
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 22435, 309, 2566, 635, 1281, 2236, 1308, 2353, 326, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5541, 1435, 288, 203, 565, 2583, 24899, 8443, 422, 389, 3576, 12021, 1435, 747, 389, 8443, 1887, 422, 389, 3576, 12021, 9334, 315, 5460, 429, 30, 4894, 353, 486, 326, 3410, 8863, 203, 565, 389, 31, 203, 225, 289,...
./partial_match/1/0x21debd25F3eac765582a703a134afEA1BEbE80e6/sources/CivVaultGetter.sol
@notice Balance of the user based on NAV @dev View function so does not cost any gas @param _pid Pool Id @param _user Address of the user @return balance Current Balance of User in a given pool @return shareAmount Current Share Balance of User in a given pool
function getBalanceOfUser(uint256 _pid, address _user) public view returns (uint256, uint256) { (PoolInfo memory poolInfo,)=civVault.getPoolInfo(_pid); if( poolInfo.totalShares == 0) return (0,0); uint256 currentNAV = poolInfo.NAV - poolInfo.unpaidFee; uin...
15,933,751
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 30918, 434, 326, 729, 2511, 603, 423, 5856, 632, 5206, 4441, 445, 1427, 1552, 486, 6991, 1281, 16189, 632, 891, 389, 6610, 8828, 3124, 632, 891, 389, 1355, 5267, 434, 326, 729, 632, 2463...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2882, 6112, 951, 1299, 12, 11890, 5034, 389, 6610, 16, 1758, 389, 1355, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 16, 2254, 5034, 13, 203, 565, 288, 203, 3639, 261, 2864, 966, 3778, 2845, ...
//pragma solidity ^0.3.6; contract Token { function balanceOf(address user) constant returns (uint256 balance); function transfer(address receiver, uint amount) returns(bool); } // A Sub crowdfunding contract. Its only purpose is to redirect ether it receives to the // main crowdfunding contract. This mecanism is u...
Update the gave wei of this Backer
backer.weiGiven += msg.value;
7,313,855
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 326, 314, 836, 732, 77, 434, 333, 4297, 264, 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, ...
[ 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, 202, 202, 823, 264, 18, 1814, 77, 6083, 1011, 1234, 18, 1132, 31, 4766, 6647, 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/4/0x93CdB2969381519f93894d896050cE2beB70c8b6/sources/Sora.sol
The place where you can download the rng code's zip.
string public RNG_CODE_URI;
12,517,985
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 3166, 1625, 1846, 848, 4224, 326, 11418, 981, 1807, 3144, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 533, 1071, 534, 4960, 67, 5572, 67, 3098, 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...
pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns (uint256) { // assert(b >...
18 decimals is the strongly suggested default, avoid changing it This creates an array with all balances Owner of account approves the transfer of an amount to another account
contract SafeERC20 { using SafeMath for uint256; string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; mapping (address => uint256) public balanceOf; mapping (address => mapping(address => uint256)) allowed; function totalSupply() p...
13,057,226
[ 1, 4625, 348, 7953, 560, 30, 225, 6549, 15105, 353, 326, 11773, 715, 22168, 805, 16, 4543, 12770, 518, 1220, 3414, 392, 526, 598, 777, 324, 26488, 16837, 434, 2236, 6617, 3324, 326, 7412, 434, 392, 3844, 358, 4042, 2236, 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, 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, 14060, 654, 39, 3462, 288, 203, 377, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 377, 203, 565, 533, 1071, 508, 31, 203, 565, 533, 1071, 3273, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2254, 5034, 10...
// contracts/Bridge.sol // SPDX-License-Identifier: Apache 2 pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol"; import "../libraries/external/BytesLib.sol"...
governance header payload
function parseRegisterChain(bytes memory encoded) public pure returns(NFTBridgeStructs.RegisterChain memory chain) { uint index = 0; chain.module = encoded.toBytes32(index); index += 32; require(chain.module == module, "invalid RegisterChain: wrong module"); chain.action =...
932,403
[ 1, 4625, 348, 7953, 560, 30, 225, 314, 1643, 82, 1359, 1446, 2385, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1109, 3996, 3893, 12, 3890, 3778, 3749, 13, 1071, 16618, 1135, 12, 50, 4464, 13691, 3823, 87, 18, 3996, 3893, 3778, 2687, 13, 288, 203, 3639, 2254, 770, 273, 374, 31, 203, 203, 203, 3639, 2687, 18, 2978, 273, 3749, 18...
/** *Submitted for verification at Etherscan.io on 2020-11-14 */ pragma solidity ^0.7.2; /** * @dev Provides data about the current execution setting, including the * sender of the exchange and its information. While these are commonly accessible * through msg.sender and msg.data, they ought not be gotten to in su...
* @dev Contract module which gives a fundamental access control system, where there is a record (a proprietor) that can be conceded selective admittance to explicit capacities. By default, the proprietor record will be the one that conveys the agreement. This can later be changed with {transferOwnership}. This module i...
contract Owned { address public owner; address public newOwner; event OwnershipTransferred(address indexed from, address indexed _to); constructor(address _owner) public { owner = _owner; } modifier onlyOwner { require(msg.sender == owner); _; } function trans...
2,367,136
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13456, 1605, 1492, 14758, 279, 284, 1074, 14773, 287, 2006, 3325, 2619, 16, 1625, 1915, 353, 279, 1409, 261, 69, 2270, 566, 278, 280, 13, 716, 848, 506, 356, 311, 785, 2027, 688, 1261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 14223, 11748, 288, 203, 565, 1758, 1071, 3410, 31, 203, 565, 1758, 1071, 394, 5541, 31, 203, 203, 565, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808, 628, 16, 1758, 8808, 389, 869, 1769, 203, 203, 565, 3885, 12, 2867,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@solidstate/contracts/token/ERC20/base/ERC20BaseInternal.sol'; import '@solidstate/contracts/utils/ReentrancyGuard.sol'; import './MagicWhitelistStorage.sol'; contract MagicMintFix is ERC20BaseInternal, ReentrancyGuard { event MintSignal(address mi...
* @title Utility contract for preventing reentrancy attacks/
abstract contract ReentrancyGuard { import {ReentrancyGuardStorage} from './ReentrancyGuardStorage.sol'; function _beforeTokenTransfer ( address from, address to, uint amount } pragma solidity ^0.8.0; modifier nonReentrant () { ReentrancyGuardStorage.Layout storage l = ReentrancyGuardStorage.lay...
11,988,694
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 13134, 6835, 364, 5309, 310, 283, 8230, 12514, 28444, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 868, 8230, 12514, 16709, 288, 203, 5666, 288, 426, 8230, 12514, 16709, 3245, 97, 628, 12871, 426, 8230, 12514, 16709, 3245, 18, 18281, 13506, 203, 225, 445, 389, 5771, 1345, 5912, 261, 203, 565, 1758, 628, 16, 203, 565...
/** *Submitted for verification at BscScan.com on 2021-08-31 */ /** __ _____ __ ___ ___ ___ __ /\_\ ___ /\ '__`\ /'__`\ /'___\ / __`\ /'___\ /'__`\ \/\ \ / __`\ \ \ \_\ \/\ \_\.\_/\ \__//\ \_\ \/\ \__//\ \_\.\...
* @dev Throws if called by any account other than the keeper./
modifier onlyKeeper() { require(keeper == msg.sender, "SweetVault: caller is not the keeper"); _; }
14,103,532
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 22435, 309, 2566, 635, 1281, 2236, 1308, 2353, 326, 417, 9868, 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...
[ 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, 9606, 1338, 17891, 1435, 288, 203, 3639, 2583, 12, 79, 9868, 422, 1234, 18, 15330, 16, 315, 55, 18028, 12003, 30, 4894, 353, 486, 326, 417, 9868, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100...
pragma solidity 0.5.6; /** * @title Metamorphic Contract Factory * @author 0age * @notice This contract creates metamorphic contracts, or contracts that can be * redeployed with new code to the same address. It does so by deploying a * contract with fixed, non-deterministic initialization code via the CREATE2 *...
* @dev Internal view function for calculating a metamorphic contract address that has been deployed via a transient contract given the address of the transient contract./ determine the address of the metamorphic contract.
function _getMetamorphicContractAddressWithConstructor( address transientContractAddress ) internal pure returns (address) { return address( ) ) ) ) ); }
12,604,748
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3186, 1476, 445, 364, 21046, 279, 5100, 301, 18435, 6835, 1758, 716, 711, 2118, 19357, 3970, 279, 12315, 6835, 864, 326, 1758, 434, 326, 12315, 6835, 18, 19, 4199, 326, 1758, 434, 326, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 588, 12244, 301, 18435, 8924, 1887, 1190, 6293, 12, 203, 565, 1758, 12315, 8924, 1887, 203, 225, 262, 2713, 16618, 1135, 261, 2867, 13, 288, 7010, 565, 327, 1758, 12, 203, 5411, 262, 203, 1850, 262, 203, 3639, 262,...
./full_match/1/0x2fC246149B4B8d7bcEF6188A10AF1791380227f1/sources/src/BaseWithStorage/wip/ERC20BaseToken.sol
@notice Transfer `amount` tokens from `from` to `to`. @param from whose token it is transferring from. @param to the recipient address of the tokens transfered. @param amount the number of tokens transfered. @return success true if success. save gas when allowance is maximal by not reducing it (see https:github.com/et...
function transferFrom( address from, address to, uint256 amount ) external override returns (bool success) { if (msg.sender != from && !_superOperators[msg.sender]) { uint256 currentAllowance = _allowances[from][msg.sender]; if (currentAllowance != ~uint25...
8,434,598
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 12279, 1375, 8949, 68, 2430, 628, 1375, 2080, 68, 358, 1375, 869, 8338, 632, 891, 628, 8272, 1147, 518, 353, 906, 74, 20245, 628, 18, 632, 891, 358, 326, 8027, 1758, 434, 326, 2430, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7412, 1265, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 3903, 3849, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 309, 261, 3576, 18, 15330, 480, 628, 597, 401, 67,...
/** ****************************************************************************************************************************************************************************************** $$$$$$$\ $$\ $$\ $...
* @dev add shares info when shareholder bought @param _indexNo round's index No @param _addr shareholder's account @param _cost cost amount @param _num shares amount/
function addRoundShare(uint256 _indexNo, address _addr, uint256 _cost, uint256 _num) internal { rdInfos[_indexNo].lastShareBuyer = _addr; rdInfos[_indexNo].shareNum += _num; rdInfos[_indexNo].sharePot = rdInfos[_indexNo].sharePot + _cost; rdInfos[_indexNo].shrJackpot = rdInfos[_indexN...
13,123,110
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 527, 24123, 1123, 1347, 7433, 4505, 800, 9540, 632, 891, 389, 1615, 2279, 225, 3643, 1807, 770, 2631, 632, 891, 389, 4793, 7433, 4505, 1807, 2236, 632, 891, 389, 12398, 6991, 3844, 632, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 527, 11066, 9535, 12, 11890, 5034, 389, 1615, 2279, 16, 1758, 389, 4793, 16, 2254, 5034, 389, 12398, 16, 2254, 5034, 389, 2107, 13, 203, 225, 2713, 7010, 225, 288, 377, 203, 565, 9437, 7655, 63, 67, 1615, 2279, 8009, ...
./partial_match/42220/0x553a2a1B70725C1042A0D76e16f4f5a683648dEB/sources/src/shared/message/MessageLib.sol
@notice A cross-chain message. @dev The fields are as follows. - index - The index of the message in its Outbox's message history. - targetChain - The chain ID of the destination chain. - targetAddress - The address of the recipient on the targetChain. - sender - The address of the sender on the so...
struct Message { uint64 index; uint16 targetChain; bytes targetAddress; bytes sender; bytes contents; } uint256 private constant INDEX_SIZE = 8; uint256 private constant TARGET_CHAIN_SIZE = 2;
3,498,037
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 432, 6828, 17, 5639, 883, 18, 632, 5206, 1021, 1466, 854, 487, 13040, 18, 1377, 300, 770, 300, 1021, 770, 434, 326, 883, 316, 2097, 2976, 2147, 1807, 883, 4927, 18, 1377, 300, 1018, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1958, 2350, 288, 203, 3639, 2254, 1105, 770, 31, 203, 3639, 2254, 2313, 1018, 3893, 31, 203, 3639, 1731, 1018, 1887, 31, 203, 3639, 1731, 5793, 31, 203, 3639, 1731, 2939, 31, 203, 565, 289, 203, 203, 203, 203, 565, 2254, 5...
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; contract GDT { mapping (address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; string public constant name = "GDT"; string public constant symbol = "GDT"; uint8 public constant decimals = 8; ...
add to recipient's balance
balanceOf[to] += value;
6,153,328
[ 1, 4625, 348, 7953, 560, 30, 225, 527, 358, 8027, 1807, 11013, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 11013, 951, 63, 869, 65, 1011, 460, 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, -10...
pragma solidity =0.8.3; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./uniswapv2/interfaces/IUniswapV2Pair.sol"; import "./uniswapv2/interfaces/IUniswapV2Router01.sol"; import "./uniswapv2/interfaces/IUniswapV2Factory.sol"; import "....
create the pair if it doesn't exist yet
function _addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired ) internal returns (uint256 amountA, uint256 amountB) { IUniswapV2Factory _factory = IUniswapV2Factory(factory); if (_factory.getPair(tokenA, tokenB) == address(...
12,669,994
[ 1, 4625, 348, 7953, 560, 30, 225, 752, 326, 3082, 309, 518, 3302, 1404, 1005, 4671, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1289, 48, 18988, 24237, 12, 203, 3639, 1758, 1147, 37, 16, 203, 3639, 1758, 1147, 38, 16, 203, 3639, 2254, 5034, 3844, 1880, 281, 2921, 16, 203, 3639, 2254, 5034, 3844, 38, 25683, 203, 565, 262, 2713, 1135, 261, ...
pragma solidity 0.5.16; import "@openzeppelin/contracts/math/Math.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "../../Controllable.sol"; import "../../uniswap/interfaces/IUnis...
This is only used in `investAllUnderlying()` The user can still freely withdraw from the strategy
modifier onlyNotPausedInvesting() { require(!pausedInvesting, "Action blocked as the strategy is in emergency state"); _; } constructor( address _storage, address _underlying, address _vault, address _rewardPool, address _rewardToken ) ProfitNotifier(_storage, _underlying)
6,441,936
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 353, 1338, 1399, 316, 1375, 5768, 395, 1595, 14655, 6291, 20338, 1021, 729, 848, 4859, 22010, 2357, 598, 9446, 628, 326, 6252, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1248, 28590, 3605, 10100, 1435, 288, 203, 565, 2583, 12, 5, 8774, 3668, 3605, 10100, 16, 315, 1803, 14547, 487, 326, 6252, 353, 316, 801, 24530, 919, 8863, 203, 565, 389, 31, 203, 225, 289, 203, 203, 225, 3885, ...
./full_match/5/0x1AB7ce989437c22a2528cAc2d26811D286e5f2a1/sources/contracts/FishyScam.sol
Phishers are using bait to attract fishers add a fiosh on a defined url add a big big fish on an url
interface PhisherAPI { function addBigFish(string calldata _url) external payable; function addPaSquale(string calldata _url) external payable; pragma solidity ^0.8.15; }
1,903,738
[ 1, 4625, 348, 7953, 560, 30, 225, 4360, 1468, 414, 854, 1450, 324, 1540, 358, 622, 1575, 284, 1468, 414, 527, 279, 7314, 17636, 603, 279, 2553, 880, 527, 279, 5446, 5446, 284, 1468, 603, 392, 880, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 4360, 31721, 2557, 288, 203, 565, 445, 527, 9901, 42, 1468, 12, 1080, 745, 892, 389, 718, 13, 3903, 8843, 429, 31, 203, 203, 565, 445, 527, 16507, 55, 3369, 73, 12, 1080, 745, 892, 389, 718, 13, 3903, 8843, 429, 31, 203...
./partial_match/1/0x56EAb4C7dC3bf7C31aa87d5Ed4Eb853A9872aBcf/sources/contracts/slopes/Slopes.sol
Claim all earned PWDR and Tokens from all pools, reset share value after claim update user shares to reset bonuses, only necessary in claimAll claim any token reward debt, use actual staked balance need to double check math on this for 1e6 tokens like USDC totalPendingWETHAmount = totalPendingWETHAmount.add(pendingP...
function _claimAll(address _user) internal SlopesActive { uint256 totalPendingPwdrAmount = 0; uint256 length = poolInfo.length; uint256[] memory amounts = new uint256[](length); for (uint256 pid = 0; pid < length; pid++) { if (userInfo[pid][_...
4,052,661
[ 1, 4625, 348, 7953, 560, 30, 225, 18381, 777, 425, 1303, 329, 453, 59, 6331, 471, 13899, 628, 777, 16000, 16, 282, 2715, 7433, 460, 1839, 7516, 1089, 729, 24123, 358, 2715, 324, 265, 6117, 16, 1338, 4573, 316, 7516, 1595, 7516, 1281...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 14784, 1595, 12, 2867, 389, 1355, 13, 7010, 3639, 2713, 203, 3639, 348, 16884, 281, 3896, 203, 565, 288, 203, 3639, 2254, 5034, 2078, 8579, 52, 91, 3069, 6275, 273, 374, 31, 203, 540, 203, 3639, 2254, 5034, 769, ...
pragma solidity ^0.4.24; import "browser/data.sol"; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; } contract BitSTDLogic { address public owner; // data layer BitSTDData private data; constructor(address data...
makes the transfers
_transfer(_contract, sender, amount);
12,993,827
[ 1, 4625, 348, 7953, 560, 30, 225, 7297, 326, 29375, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 4202, 389, 13866, 24899, 16351, 16, 5793, 16, 3844, 1769, 9079, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/56/0x4301483963E9F570941D210027F3dB6f5DB6Bd6d/sources/StrategybrewLP.sol
* @dev Third Party Contracts: {unirouter} - PancakeSwap unirouter {shareRewardPool} - ShareRewardPool contract {poolId} - ShareRewardPool pool id/* @dev supra Contracts: {treasury} - Address of the supraFinance treasury {vault} - Address of the vault that controls the strategy's funds. {strategist} - Address of the str...
) public { lpPair = _lpPair; lpToken0 = IPancakePair(lpPair).token0(); lpToken1 = IPancakePair(lpPair).token1(); poolId = _poolId; vault = _vault; degen = true; _callFee = 25; _treasurySup = 75; if (lpToken0 == wbnb) { brewToLp0Rou...
11,169,600
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 935, 6909, 6393, 93, 30131, 30, 288, 318, 77, 10717, 97, 300, 12913, 23780, 12521, 7738, 10717, 288, 14419, 17631, 1060, 2864, 97, 300, 25805, 17631, 1060, 2864, 6835, 288, 6011, 548, 97, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 262, 1071, 288, 203, 3639, 12423, 4154, 273, 389, 9953, 4154, 31, 203, 3639, 12423, 1345, 20, 273, 2971, 19292, 911, 4154, 12, 9953, 4154, 2934, 2316, 20, 5621, 203, 3639, 12423, 1345, 21, 273, 2971, 19292, 911, 4154, 12, 99...
pragma solidity ^0.5.0; import "node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; import "node_modules/openzeppelin-solidity/contracts/cryptography/ECDSA.sol"; import "node_modules/tabookey-gasless/contracts/RelayRecipient.sol"; import "node_modules/tabookey-gasless/contracts/RecipientUtils.sol"; import...
@dev Off chain relayer can validate the claim before submitting. @param _id Claim lookup key value. @param _signature Sender signature. @param _destination Destination address. keccak256(_id,_destination,nonce,address(this)) is a unique key remains unique if the id gets reused after fund deletion
function isClaimValid( bytes32 _id, bytes memory _signature, bytes32 _claimHash, address _destination ) public view returns (bool) { if(isFundValid(_id) && _signature.length == 65){ address signer = address(0); uint nonc...
5,456,810
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 15837, 2687, 1279, 1773, 848, 1954, 326, 7516, 1865, 4879, 1787, 18, 632, 891, 389, 350, 18381, 3689, 498, 460, 18, 632, 891, 389, 8195, 15044, 3372, 18, 632, 891, 389, 10590, 10691, 1758...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 353, 9762, 1556, 12, 203, 3639, 1731, 1578, 389, 350, 16, 203, 3639, 1731, 3778, 389, 8195, 16, 203, 3639, 1731, 1578, 389, 14784, 2310, 16, 203, 3639, 1758, 389, 10590, 203, 565, 262, 203, 3639, 1071, 203, 3639, 1476, ...