file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
// SPDX-License-Identifier: MIT /** * ____ ____ _ ___ ____ _ * |_ \ / _| / \ |_ ||_ _| / \ * | \/ | / _ \ | |_/ / / _ \ * | |\ /| | / ___ \ | __'. / ___ \ * _| |_\/_| |_ _/ / \ \_ _| | \ \_ _/ / \ \_ * |_____||__...
Allows users to optionally use a % of the reward pool to buy Maka automatically
mapping(address => uint256) private _claimRewardAsMakaPercentage;
5,411,724
[ 1, 4625, 348, 7953, 560, 30, 25619, 3677, 358, 8771, 999, 279, 738, 434, 326, 19890, 2845, 358, 30143, 490, 581, 69, 6635, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 6770, 12, 2867, 516, 2254, 5034, 13, 3238, 389, 14784, 17631, 1060, 1463, 49, 581, 69, 16397, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/3/0x4A3E2FB22cc795B1E0BF89ab9D5111Cae3d13B6e/sources/BaseToken.sol
* @title BASE ERC20 token @dev This is part of an implementation of the BASE Index Fund protocol. BASE is a normal ERC20 token, but its supply can be adjusted by splitting and combining tokens proportionally across all wallets. BASE balances are internally represented with a hidden denomination, 'shares'...
contract BaseToken is ERC20UpgradeSafe, ERC677Token, OwnableUpgradeSafe { using SafeMath for uint256; using SafeMathInt for int256; event LogRebase(uint256 indexed epoch, uint256 totalSupply); event LogMonetaryPolicyUpdated(address monetaryPolicy); event LogUserBanStatusUpdated(address user, bool b...
5,306,354
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 10250, 4232, 39, 3462, 1147, 632, 5206, 1220, 353, 1087, 434, 392, 4471, 434, 326, 10250, 3340, 478, 1074, 1771, 18, 1377, 10250, 353, 279, 2212, 4232, 39, 3462, 1147, 16, 1496, 2097, 144...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3360, 1345, 353, 4232, 39, 3462, 10784, 9890, 16, 4232, 39, 26, 4700, 1345, 16, 14223, 6914, 10784, 9890, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 10477, 1702, 364, 509, 5034, 31, 203, ...
./full_match/11155111/0x79173518CDc6f5a65a106253898A04BA70d9a242/sources/project_/contracts/ERC721A.sol
* @dev Transfers `tokenId` from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event./ Th...
function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 appro...
3,803,570
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2604, 18881, 1375, 2316, 548, 68, 628, 1375, 2080, 68, 358, 1375, 869, 8338, 29076, 30, 300, 1375, 2080, 68, 2780, 506, 326, 3634, 1758, 18, 300, 1375, 869, 68, 2780, 506, 326, 3634, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1147, 548, 203, 565, 262, 1071, 8843, 429, 5024, 3849, 288, 203, 3639, 2254, 5034, 2807, 5460, 12565, 4420, 329, 273, 389, 2920,...
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import "./DNTfixedPointMath.sol"; // Interface for IERC20. interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint25...
Calculate burn and mint. Add to totalWalelts if balance is 0.
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { uint256 toBeBurned = calculateBurn(amount); uint256 toBeMinted = calculateMint(amount); uint256 currentSupplyAfterBurn = SafeMath.sub(currentSupply,toBeBurned); uint256 currentSupplyAfterMin...
7,021,257
[ 1, 4625, 348, 7953, 560, 30, 225, 9029, 18305, 471, 312, 474, 18, 1436, 358, 2078, 59, 287, 292, 3428, 309, 11013, 353, 374, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 12, 2867, 8027, 16, 2254, 5034, 3844, 13, 1071, 5024, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 5034, 21333, 38, 321, 329, 273, 4604, 38, 321, 12, 8949, 1769, 203, 3639, 2254, 5034, 21333, 49, 474, 329, 2...
./full_match/8453/0x29d3646Af367dBa96E1b09A196c60FA20A3dAfF4/sources/contracts/wETHBondDepository.sol
* @notice deposit bond @param _amount uint @param _maxPrice uint @param _depositor address @return uint/ total debt is increased depositor info is stored
) external returns ( uint ) { require( _depositor != address(0), "Invalid address" ); decayDebt(); require( totalDebt <= terms.maxDebt, "Max capacity reached" ); uint nativePrice = _bondPrice(); uint value = ITreasury( treasury ).valueOf( principle, _amount ); ...
11,552,434
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 632, 20392, 443, 1724, 8427, 225, 632, 891, 389, 8949, 2254, 225, 632, 891, 389, 1896, 5147, 2254, 225, 632, 891, 389, 323, 1724, 280, 1758, 225, 632, 2463, 2254, 19, 2078, 18202, 88, 353, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 3903, 1135, 261, 2254, 262, 288, 203, 3639, 2583, 12, 389, 323, 1724, 280, 480, 1758, 12, 20, 3631, 315, 1941, 1758, 6, 11272, 203, 203, 3639, 22286, 758, 23602, 5621, 203, 3639, 2583, 12, 2078, 758, 23602, 1648, 6548, ...
./full_match/42/0x590E6Da5d35450ffc3Eed3BC5a25A302f5E584FD/sources/contracts/survey.sol
* @dev Moves tokens `amount` from `sender` to `recipient`. This is internal function is equivalent to {transfer}, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a {Transfer} event. Requirements: - `sender` cannot be the zero address. - `recipient` cannot be the zero address. - `...
function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount, "ERC20: trans...
9,566,669
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 490, 10829, 2430, 1375, 8949, 68, 628, 1375, 15330, 68, 358, 1375, 20367, 8338, 1220, 353, 2713, 445, 353, 7680, 358, 288, 13866, 5779, 471, 848, 506, 1399, 358, 425, 18, 75, 18, 2348, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 2867, 5793, 16, 1758, 8027, 16, 2254, 5034, 3844, 13, 2713, 225, 288, 203, 3639, 2583, 12, 15330, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628, 326, 3634, 1758, 8863, 203, 3639, 2583, 12,...
./partial_match/1/0xa94b887e15f30db3831AcdDDCd2008a0fFDDe0E3/sources/SchemeRegistrar.sol
Return the final result.
return uint216(realResult / REAL_ONE);
9,165,868
[ 1, 4625, 348, 7953, 560, 30, 225, 2000, 326, 727, 563, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 327, 2254, 22, 2313, 12, 7688, 1253, 342, 2438, 1013, 67, 5998, 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, -10...
/** *Submitted for verification at Etherscan.io on 2021-10-23 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/Context.sol pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are ge...
@dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with GSN meta-transactions the account sending and paying for exe...
abstract contract Context { pragma solidity ^0.8.0; function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { return msg.data; } }
7,928,028
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 28805, 1779, 2973, 326, 783, 4588, 819, 16, 6508, 326, 5793, 434, 326, 2492, 471, 2097, 501, 18, 21572, 4259, 854, 19190, 2319, 3970, 1234, 18, 15330, 471, 1234, 18, 892, 16, 2898, 1410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 1772, 288, 203, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 20, 31, 203, 565, 445, 389, 3576, 12021, 1435, 2713, 1476, 5024, 1135, 261, 2867, 13, 288, 203, 3639, 327, 1234, 18, 15330, 31, 203, 565, 289, ...
/** *Submitted for verification at Etherscan.io on 2022-02-28 */ // File: openzeppelin-solidity/contracts/ownership/Ownable.sol pragma solidity ^0.4.23; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation...
* @dev Function update whitelist able status in public sale @param _flag bool whitelist status @return A bool that indicates if the operation was successful./
function updatePublicSaleWhitelistStatus(bool _flag) onlyOwner public returns(bool){ publicsale_need_whitelist = _flag; emit UpdatePublicSaleWhitelistStatus(msg.sender, _flag); return true; }
15,445,030
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4284, 1089, 10734, 7752, 1267, 316, 1071, 272, 5349, 632, 891, 389, 6420, 1426, 10734, 1267, 632, 2463, 432, 1426, 716, 8527, 309, 326, 1674, 1703, 6873, 18, 19, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 1089, 4782, 30746, 18927, 1482, 12, 6430, 389, 6420, 13, 1338, 5541, 1071, 1135, 12, 6430, 15329, 203, 202, 202, 482, 87, 5349, 67, 14891, 67, 20409, 273, 389, 6420, 31, 203, 203, 202, 202, 18356, 2315, 4782, 30746, 189...
// ▓▓▌ ▓▓ ▐▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▄ // ▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ // ▓▓▓▓▓▓ ▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓ ▐▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓ ▐▓▓▓▓▓▌ ▐▓▓▓▓▓▓ // ▓▓▓▓▓▓▄▄▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓▄▄▄▄ ▓▓▓▓▓▓▄▄▄▄ ▐▓▓...
@notice Checks the price impact of buying a given amount of tokens against the maximum allowed price impact limit. @param amount Amount of tokens. @return True if the price impact is allowed, false otherwise. Get reserve of the collateral token. Same as: priceImpact <= priceImpactLimit
function isAllowedPriceImpact(uint256 amount) public view returns (bool) { address WETH = uniswapRouter.WETH(); address token0 = WETH < collateralToken ? WETH : collateralToken; (uint256 reserve0, uint256 reserve1, ) = uniswapPair.getReserves(); uint256 collateralTokenReserve = WETH ...
919,700
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 13074, 326, 6205, 15800, 434, 30143, 310, 279, 864, 3844, 434, 2430, 540, 5314, 326, 4207, 2935, 6205, 15800, 1800, 18, 632, 891, 3844, 16811, 434, 2430, 18, 632, 2463, 1053, 309, 326, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 21956, 5147, 22683, 621, 12, 11890, 5034, 3844, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 1758, 678, 1584, 44, 273, 640, 291, 91, 438, 8259, 18, 59, 1584, 44, 5621, 203, 3639, 1758, 1147, 20, 273, 678, 1584...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error,...
@notice Parses the expected assets in a particular action @param _selector The function selector for the callOnIntegration @param _actionData Data specific to this action @return spendAssetsHandleType_ A type that dictates how to handle granting the adapter access to spend assets (`None` by default) @return spendAsset...
function parseAssetsForAction( address, bytes4 _selector, bytes calldata _actionData ) external view override returns ( IIntegrationManager.SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uin...
9,955,484
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2280, 2420, 326, 2665, 7176, 316, 279, 6826, 1301, 632, 891, 389, 9663, 1021, 445, 3451, 364, 326, 745, 1398, 15372, 632, 891, 389, 1128, 751, 1910, 2923, 358, 333, 1301, 632, 2463, 1757...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 10726, 1290, 1803, 12, 203, 3639, 1758, 16, 203, 3639, 1731, 24, 389, 9663, 16, 203, 3639, 1731, 745, 892, 389, 1128, 751, 203, 565, 262, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 3849, 203, 3639, 1135, 261, ...
./full_match/97/0x8696ea38686dDb96122512901D99352633A25184/sources/project_/contracts/diamond/libraries/LibTimeLock.sol
todo: 后面改回 apollox.time.lock.storage
library LibTimeLock { using Address for address; bytes32 constant TIME_LOCK_POSITION = keccak256("apollox.time.lock.storage.20230503"); pragma solidity ^0.8.19; struct Transaction { string functionSignature; bytes data; uint40 executeTime; uint40 expiryTime; } str...
3,284,418
[ 1, 4625, 348, 7953, 560, 30, 225, 10621, 30, 225, 166, 243, 241, 170, 256, 100, 167, 247, 122, 166, 254, 257, 513, 355, 383, 92, 18, 957, 18, 739, 18, 5697, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10560, 950, 2531, 288, 203, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 1731, 1578, 5381, 8721, 67, 6589, 67, 15258, 273, 417, 24410, 581, 5034, 2932, 438, 355, 383, 92, 18, 957, 18, 739, 18, 5697, 18, 18212, 508...
// SPDX-License-Identifier: Apache-2.0 // WARNING: This has been validated for yearn vaults up to version 0.2.11. // Using this code with any later version can be unsafe. pragma solidity ^0.8.0; import "./interfaces/IERC20.sol"; import "./interfaces/IYearnVault.sol"; import "./WrappedPosition.sol"; /// @author Elemen...
We load the reserves
(uint256 localUnderlying, uint256 localShares) = _getReserves();
376,646
[ 1, 4625, 348, 7953, 560, 30, 225, 1660, 1262, 326, 400, 264, 3324, 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, 261, 11890, 5034, 1191, 14655, 6291, 16, 2254, 5034, 1191, 24051, 13, 273, 389, 588, 607, 264, 3324, 5621, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; interface IERC20 { function balanceOf(address account) external view returns (uint256); function mint(address account, uint256 amount) external; function burn(address accoun...
** Function to Swap the 5 different tokens in Fake Ethers, just need to insert the address Creating an array of the balance of all fake tokens Since we cannot creat a dynamic map, the order fo the array must be the same of the tokens_crypto Calculate the crypto value in 18 decimals Crypto to usd then usd to Ether Burn ...
function swapTokensToEther(address _address) public{ int[] memory balanceToken = new int[](tokens_crypto.length); for (uint i = 0; i < tokens_crypto.length; i++) { balanceToken[i] = int(IERC20(tokens_crypto[i]).balanceOf(_address)); } for (uint i = 1; i < tokens_crypto...
7,328,393
[ 1, 4625, 348, 7953, 560, 30, 2826, 4284, 358, 12738, 326, 1381, 3775, 2430, 316, 11551, 512, 29540, 16, 2537, 1608, 358, 2243, 326, 1758, 21837, 392, 526, 434, 326, 11013, 434, 777, 10517, 2430, 7897, 732, 2780, 1519, 270, 279, 5976, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5157, 774, 41, 1136, 12, 2867, 389, 2867, 13, 1071, 95, 203, 3639, 509, 8526, 3778, 11013, 1345, 273, 394, 509, 8526, 12, 7860, 67, 18489, 18, 2469, 1769, 203, 203, 3639, 364, 261, 11890, 277, 273, 374, 31, 277,...
/** *Submitted for verification at Etherscan.io on 2021-06-01 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/GSN/Context.sol pragma solidity ^0.6.10; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are ge...
File: @openzeppelin/contracts/utils/EnumerableSet.sol* @dev Library for managing types. Sets have the following properties: - Elements are added, removed, and checked for existence in constant time (O(1)). - Elements are enumerated in O(n). No guarantees are made on the ordering. ``` contract Example { using Enume...
library EnumerableSet { function _beforeTokenTransfer( address from, address to, uint256 amount } pragma solidity ^0.6.10; struct Set { bytes32[] _values; mapping(bytes32 => uint256) _indexes; } function _add(Set storage set, bytes32 value) private returns (b...
15,065,504
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 30, 632, 3190, 94, 881, 84, 292, 267, 19, 16351, 87, 19, 5471, 19, 3572, 25121, 694, 18, 18281, 14, 632, 5206, 18694, 364, 30632, 1953, 18, 11511, 1240, 326, 3751, 1790, 30, 300, 17219, 854,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 6057, 25121, 694, 288, 203, 203, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 97, 203, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 26, 18, ...
./partial_match/42/0xaB527d446689865557447729569E9FfEC11540bA/sources/Lottery.sol
0x628796a2d192b3c595cacf03ecaf1f51a78198e3
ERC20 dai;
3,488,766
[ 1, 4625, 348, 7953, 560, 30, 225, 374, 92, 26, 6030, 7235, 26, 69, 22, 72, 15561, 70, 23, 71, 6162, 25, 71, 21441, 4630, 557, 1727, 21, 74, 10593, 69, 8285, 30234, 73, 23, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 4232, 39, 3462, 5248, 77, 31, 4202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master...
Cannot underflow because a user's balance will never be larger than the total supply.
function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); }
12,703,400
[ 1, 4625, 348, 7953, 560, 30, 225, 14143, 3613, 2426, 2724, 279, 729, 1807, 11013, 903, 5903, 506, 10974, 2353, 326, 2078, 14467, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 70, 321, 12, 2867, 628, 16, 2254, 5034, 3844, 13, 2713, 5024, 288, 203, 565, 11013, 951, 63, 2080, 65, 3947, 3844, 31, 203, 203, 565, 22893, 288, 203, 1377, 2078, 3088, 1283, 3947, 3844, 31, 203, 565, 289, 203, ...
./full_match/97/0x8a0C9A61d59c3A9135267C57fE2b64f21E6E1Fd9/sources/contracts/LeonicornPairV2.sol
contract LeonicornPair is ILeonicornPair, LeonicornERC20 {
contract LeonicornPair is LeonicornERC20 { using SafeMath for uint; using UQ112x112 for uint224; uint public constant MINIMUM_LIQUIDITY = 10**3; bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)'))); address public factory; address public token0; add...
3,271,947
[ 1, 4625, 348, 7953, 560, 30, 6835, 3519, 15506, 14245, 4154, 353, 467, 1682, 15506, 14245, 4154, 16, 3519, 15506, 14245, 654, 39, 3462, 288, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3519, 15506, 14245, 4154, 353, 3519, 15506, 14245, 654, 39, 3462, 288, 203, 203, 565, 1450, 14060, 10477, 225, 364, 2254, 31, 203, 565, 1450, 587, 53, 17666, 92, 17666, 364, 2254, 23622, 31, 203, 203, 565, 2254, 1071, 225, ...
./full_match/1/0xe45F73DaD6af24273B361f02c3749f13c2231080/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 DomProtocol is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symb...
3,058,066
[ 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, 12965, 5752, 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, 31, ...
/** *Submitted for verification at Etherscan.io on 2021-08-28 */ // SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; // File: contracts/lib/AddressUtil.sol // Copyright 2017 Loopring Technology Limited. /// @title Utility Functions for addresses /// @author Daniel Wang ...
the `to` or `from` account's ID.
uint32 accountID;
10,597,195
[ 1, 4625, 348, 7953, 560, 30, 225, 326, 1375, 869, 68, 578, 1375, 2080, 68, 2236, 1807, 1599, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 1578, 9079, 26643, 31, 1850, 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, -10...
./full_match/1/0x114d647B099D53237be9E03A540DFFaa24351E87/sources/contracts/strategies/balancer/BalancerStrategyBase.sol
* @dev Performs a single swap using Balancer Vault. @param tokenOut The address of the output ERC20 token. @param tokenIn The address of the input ERC20 token. @param amountIn The amount of input token to swap. @param minAmountOut The minimum acceptable amount of the output token. @param poolId The PoolId of the Balanc...
function _balancerSwapSingle( address tokenOut, address tokenIn, uint256 amountIn, uint256 minAmountOut, bytes32 poolId ) internal returns (uint256) { return IBalancerWrapper(BAL_WRAPPER).swapSingle( tokenOut, tokenIn, ...
3,107,603
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 27391, 279, 2202, 7720, 1450, 605, 5191, 17329, 18, 632, 891, 1147, 1182, 1021, 1758, 434, 326, 876, 4232, 39, 3462, 1147, 18, 632, 891, 1147, 382, 1021, 1758, 434, 326, 810, 4232, 39, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18770, 12521, 5281, 12, 203, 3639, 1758, 1147, 1182, 16, 203, 3639, 1758, 1147, 382, 16, 203, 3639, 2254, 5034, 3844, 382, 16, 203, 3639, 2254, 5034, 1131, 6275, 1182, 16, 203, 3639, 1731, 1578, 2845, 548, 203, 565...
pragma solidity ^0.4.18; contract CryptoCatsMarket { /* You can use this hash to verify the image file containing all cats */ string public imageHash = "e055fe5eb1d95ea4e42b24d1038db13c24667c494ce721375bdd827d34c59059"; /* Struct object for storing cat details */ struct Cat { uint256 idNum; ...
Get address of contract owner who performed contract creation and initialisation */
function getContractOwner() public returns (address) { }
6,085,639
[ 1, 4625, 348, 7953, 560, 30, 225, 968, 1758, 434, 6835, 3410, 10354, 9591, 6835, 6710, 471, 2172, 10742, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 8924, 5541, 1435, 1071, 1135, 261, 2867, 13, 288, 203, 565, 289, 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,...
./partial_match/42/0x8806587D0668A152953ed99aFC81800D9E7b32f1/sources/PingPong.sol
Dependency file: @openzeppelin/contracts/GSN/Context.sol pragma solidity ^0.6.0; @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, sin...
abstract contract Context { function setMaintainer(address _maintainer) external virtual; } function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { return msg.data; } }
3,454,012
[ 1, 4625, 348, 7953, 560, 30, 225, 11993, 585, 30, 632, 3190, 94, 881, 84, 292, 267, 19, 16351, 87, 19, 43, 13653, 19, 1042, 18, 18281, 10878, 18035, 560, 3602, 20, 18, 26, 18, 20, 31, 632, 5206, 28805, 1779, 2973, 326, 783, 4588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 1772, 288, 203, 565, 445, 15430, 1598, 1521, 12, 2867, 389, 81, 1598, 1521, 13, 3903, 5024, 31, 203, 97, 203, 203, 203, 203, 203, 203, 565, 445, 389, 3576, 12021, 1435, 2713, 1476, 5024, 1135, 261, 2867, 8843, 429, ...
./full_match/42220/0x12620e1E2909a4ACc9B8Cfc83D53d9CAf8f06ae1/sources/marketplace.sol
* @notice Calculate price and associated fees for a collection @param collection: address of the collection @param price: listed price/
function calculatePriceAndFeesForCollection(address collection, uint256 price) external view returns ( uint256 netPrice, uint256 tradingFee, uint256 creatorFee ) { if (_collections[collection].status != CollectionStatus.Open) { ...
16,340,755
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 9029, 6205, 471, 3627, 1656, 281, 364, 279, 1849, 632, 891, 1849, 30, 1758, 434, 326, 1849, 632, 891, 6205, 30, 12889, 6205, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4604, 5147, 1876, 2954, 281, 1290, 2532, 12, 2867, 1849, 16, 2254, 5034, 6205, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 203, 5411, 2254, 5034, 2901, 5147, 16, 203, 5411, 2254, 5034, 1284, 7459, 14667, ...
/** *Submitted for verification at Etherscan.io on 02/08/2021 *https://t.me/RagnarInu */ // SPDX-License-Identifier: Unlicensed pragma solidity ^0.6.12; abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } f...
Contract implementation Tax and team fees will start at 0 so we don't have a big impact when deploying to Uniswap Team wallet address is null but the method to set the address is exposed We will set a minimum amount of tokens to be swaped => 5M
contract ASTROPUP is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; ...
611,922
[ 1, 4625, 348, 7953, 560, 30, 225, 13456, 4471, 18240, 471, 5927, 1656, 281, 903, 787, 622, 374, 1427, 732, 2727, 1404, 1240, 279, 5446, 15800, 1347, 7286, 310, 358, 1351, 291, 91, 438, 10434, 9230, 1758, 353, 446, 1496, 326, 707, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 6835, 9183, 12578, 3079, 353, 1772, 16, 467, 654, 39, 3462, 16, 14223, 6914, 288, 203, 3639, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 3639, 1450, 5267, 364, 1758, 31, 203, 203, 3639, 2874, 261, 2867, 516, 2254, 5034, 13...
./full_match/5/0xed6b2Ad30E38111272417239731e869470D5D900/sources/contracts/WorldPassNFT.sol
* Override to limit roles./
function _canMint() internal view virtual override returns (bool) { return hasRole(MINTER_ROLE, msg.sender); }
1,888,462
[ 1, 4625, 348, 7953, 560, 30, 380, 1439, 358, 1800, 4900, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 4169, 49, 474, 1435, 2713, 1476, 5024, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 327, 28335, 12, 6236, 2560, 67, 16256, 16, 1234, 18, 15330, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x5625E1Bbe09AB07a0E2a73f2bB5D169838Fd5CCb/sources/home/liam/EtherProjects/YFN/core/contracts/YFNOEngine.sol
Return reward multiplier over the given _from to _to block, yield halved when reach point.
function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) { if( yfno.totalSupply() >= halvingYfnooSupply){ return _to.sub(_from).div(2); } if (_to <= bonusEndBlock) { return _to.sub(_from).mul(BONUS_MULTIPLIER); return _to.sub(_from)...
15,734,130
[ 1, 4625, 348, 7953, 560, 30, 225, 2000, 19890, 15027, 1879, 326, 864, 389, 2080, 358, 389, 869, 1203, 16, 2824, 19514, 2155, 1347, 9287, 1634, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 31863, 5742, 12, 11890, 5034, 389, 2080, 16, 2254, 5034, 389, 869, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 309, 12, 677, 74, 2135, 18, 4963, 3088, 1283, 1435, 1545, 19514, 6282, 61, 74, 2135, 83, 3...
pragma solidity 0.4.24; /** * @dev A library for working with mutable byte buffers in Solidity. * * Byte buffers are mutable and expandable, and provide a variety of primitives * for writing to them. At any time you can fetch a bytes object containing the * current contents of the buffer. The bytes object should not b...
* @dev Writes a bytes20 to the buffer. Resizes if doing so would exceed the capacity of the buffer. @param buf The buffer to append to. @param off The offset to write at. @param data The data to append. @return The original buffer, for chaining./
function writeBytes20(buffer memory buf, uint off, bytes20 data) internal pure returns (buffer memory) { return write(buf, off, bytes32(data), 20); }
464,590
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 30053, 279, 1731, 3462, 358, 326, 1613, 18, 1124, 3128, 309, 9957, 1427, 4102, 9943, 326, 1377, 7519, 434, 326, 1613, 18, 632, 891, 1681, 1021, 1613, 358, 714, 358, 18, 632, 891, 3397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29579, 3462, 12, 4106, 3778, 1681, 16, 2254, 3397, 16, 1731, 3462, 501, 13, 2713, 16618, 1135, 261, 4106, 3778, 13, 288, 203, 565, 327, 1045, 12, 4385, 16, 3397, 16, 1731, 1578, 12, 892, 3631, 4200, 1769, 203, 225, 28...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721URISto...
* @title Auction sale contract that provides external functions @dev Implements the external and public functions of the auction implementation/ sanity check for the nft contract ERC721 interface id
contract AuctionSale is AuctionBase { bool public isFarbeSaleAuction = true; bytes4 constant InterfaceSignature_ERC721 = bytes4(0x80ac58cd); constructor(address _nftAddress, address _platformAddress) { FarbeArtSale candidateContract = FarbeArtSale(_nftAddress); require(candidateContract.su...
60,821
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 432, 4062, 272, 5349, 6835, 716, 8121, 3903, 4186, 632, 5206, 29704, 326, 3903, 471, 1071, 4186, 434, 326, 279, 4062, 4471, 19, 16267, 866, 364, 326, 290, 1222, 6835, 4232, 39, 27, 5340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 432, 4062, 30746, 353, 432, 4062, 2171, 288, 203, 565, 1426, 1071, 353, 17393, 2196, 30746, 37, 4062, 273, 638, 31, 203, 203, 565, 1731, 24, 5381, 6682, 5374, 67, 654, 39, 27, 5340, 273, 1731, 24, 12, 20, 92, 3672, 1077,...
// SPDX-License-Identifier: Unlicense pragma solidity ^0.7.0; //Order struct struct Order { bytes32 id; address token_address; uint256 block_nr; bool order_type; address from; uint256 eth_sent; uint256 eth_left; uint256 token_amount; uint256 token_left; uint256 limit; bool ...
lowest of last paid price or lowest limit sell orderused to execute market orders
function getBestPrice(Exchange storage self, address _token) public view returns (uint256 price) { bytes32 position = self.first_sell_order_id[_token]; uint256 best_price = getLastPrice(self, _token); while (self.orders[_token][position].id != 0) { if (self.orders[_token][positi...
1,761,579
[ 1, 4625, 348, 7953, 560, 30, 11981, 434, 1142, 30591, 6205, 578, 11981, 1800, 357, 80, 1353, 3668, 358, 1836, 13667, 11077, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 28782, 5147, 12, 11688, 2502, 365, 16, 1758, 389, 2316, 13, 1071, 1476, 1135, 261, 11890, 5034, 6205, 13, 288, 203, 3639, 1731, 1578, 1754, 273, 365, 18, 3645, 67, 87, 1165, 67, 1019, 67, 350, 63, 67, 2316, 15533, 203...
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.6.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "./FeeOwner.sol"; import "./Fee1155.sol"; /** @title A basic smart contract for tracking the ownership of SuperFarm Items. @author Ti...
A version number for this record contract's interface. A mapping for an array of all Tokens deployed by a particular address. An event for tracking the creation of a new Token.*/ Create the token and optionally mint any specified addresses.
function createToken(string calldata _name, string calldata _ticker, uint256 _cap, address[] calldata _directMintAddresses, uint256[] calldata _directMintAmounts) external nonReentrant returns (Token) { require(_directMintAddresses.length == _directMintAmounts.length, "Direct mint addresses length cannot be...
1,272,632
[ 1, 4625, 348, 7953, 560, 30, 225, 432, 1177, 1300, 364, 333, 1409, 6835, 1807, 1560, 18, 432, 2874, 364, 392, 526, 434, 777, 13899, 19357, 635, 279, 6826, 1758, 18, 1922, 871, 364, 11093, 326, 6710, 434, 279, 394, 3155, 4509, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 752, 1345, 12, 1080, 745, 892, 389, 529, 16, 533, 745, 892, 389, 88, 5448, 16, 2254, 5034, 389, 5909, 16, 1758, 8526, 745, 892, 389, 7205, 49, 474, 7148, 16, 2254, 5034, 8526, 745, 892, 389, 7205, 49, 474, 6275, 87,...
// <ORACLIZE_API> /* Copyright (c) 2015-2016 Oraclize srl, Thomas Bertani Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to...
* The actual predator attack. The predator kills up to 10 animals, but in case there are less than 100 animals in the game up to 10% get eaten. /
function __callback(bytes32 myid, string result) { uint16[] memory ranges = new uint16[](costs.length+1); ranges[0] = 0; for(uint8 animalType = 0; animalType < costs.length; animalType ++){ ranges[animalType+1] = ranges[animalType]+uint16(probabilityFactors[animalType]*n...
12,738,241
[ 1, 4625, 348, 7953, 560, 30, 380, 1021, 3214, 3479, 639, 13843, 18, 1021, 3479, 639, 8673, 87, 731, 358, 1728, 10536, 1031, 16, 1496, 316, 648, 1915, 854, 5242, 2353, 2130, 10536, 1031, 316, 326, 7920, 731, 358, 1728, 9, 336, 20729,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1001, 3394, 12, 3890, 1578, 3399, 350, 16, 533, 563, 13, 288, 203, 540, 203, 3639, 2254, 2313, 8526, 3778, 7322, 273, 394, 2254, 2313, 8526, 12, 12398, 87, 18, 2469, 15, 21, 1769, 203, 3639, 7322, 63, 20, 65, 273, 3...
// SPDX-License-Identifier: GPL-3.0-or-later // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is dis...
Ensure each normalized weight is above them minimum and find the token index of the maximum weight
{ uint256 numTokens = tokens.length; InputHelpers.ensureInputLengthMatch(numTokens, normalizedWeights.length); _totalTokens = numTokens; uint256 normalizedSum = 0; uint256 maxWeightTokenIndex = 0; uint256 maxNormalizedWeight = 0; for (uint8 i = 0; i < numTok...
15,870,290
[ 1, 4625, 348, 7953, 560, 30, 225, 7693, 225, 1517, 5640, 3119, 353, 5721, 2182, 5224, 471, 1104, 326, 1147, 770, 434, 326, 4207, 3119, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 3639, 2254, 5034, 818, 5157, 273, 2430, 18, 2469, 31, 203, 3639, 2741, 13375, 18, 15735, 1210, 1782, 2060, 12, 2107, 5157, 16, 5640, 16595, 18, 2469, 1769, 203, 203, 3639, 389, 4963, 5157, 273, 818, 5157, 31, 203, ...
pragma solidity ^0.4.19; /// @title Version contract Version { string public semanticVersion; /// @notice Constructor saves a public version of the deployed Contract. /// @param _version Semantic version of the contract. function Version(string _version) internal { semanticVersion = _version;...
index of created contracts deploy a new contract
contract PaymentAddressFactory is Factory { mapping (bytes4 => address) public paymentAddresses; function newPaymentAddress(address _collector, bytes4 _identifier) public returns(address newContract) function PaymentAddressFactory() public Factory("1.0.0") {} { require(paymentA...
7,930,165
[ 1, 4625, 348, 7953, 560, 30, 225, 770, 434, 2522, 20092, 7286, 279, 394, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12022, 1887, 1733, 353, 7822, 288, 203, 565, 2874, 261, 3890, 24, 516, 1758, 13, 1071, 5184, 7148, 31, 203, 203, 203, 565, 445, 394, 6032, 1887, 12, 2867, 389, 21356, 16, 1731, 24, 389, 5644, 13, 203, 3639, 1071, 203, 36...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./Ownable.sol"; import "./SafeMath.sol"; import "./Address.sol"; interface ISwapAndLiquify{ function inSwapAndLiquify() external returns(bool); function swapAndLiquify(uint256 tokenAmount) external; } contract ALDN is IER...
* @notice Delegates votes from signatory to `delegatee` @param delegatee The address to delegate votes to @param nonce The contract state required to match the signature @param expiry The time at which to expire the signature @param v The recovery byte of the signature @param r Half of the ECDSA signature pair @param s...
function delegateBySig(address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s) public { bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(_name)), _getChainId(), address(this))); bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee...
1,414,416
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 24117, 815, 19588, 628, 1573, 8452, 358, 1375, 22216, 73, 68, 632, 891, 7152, 73, 1021, 1758, 358, 7152, 19588, 358, 632, 891, 7448, 1021, 6835, 919, 1931, 358, 845, 326, 3372, 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, 565, 445, 7152, 858, 8267, 12, 2867, 7152, 73, 16, 2254, 7448, 16, 2254, 10839, 16, 2254, 28, 331, 16, 1731, 1578, 436, 16, 1731, 1578, 272, 13, 1071, 288, 203, 3639, 1731, 1578, 2461, 6581, 273, 417, 24410, 581, 5034, 12, 2145...
./partial_match/3/0xBcc008d20736433605c6b61f185d3B605440Eb5f/sources/pool.sol
settle preimum share
uint premiumShare;
5,123,035
[ 1, 4625, 348, 7953, 560, 30, 225, 444, 5929, 675, 2422, 7433, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 23020, 5077, 9535, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.8.4; library BytesUtils { /* * @dev Returns the keccak-256 hash of a byte range. * @param self The byte string to hash. * @param offset The position to start hashing at. * @param len The number of bytes to hash. * @return The hash of the byte range. */ function keccak...
* @dev Check if a point in affine coordinates is on the curve./
function isOnCurve(uint x, uint y) internal pure returns (bool) { if (0 == x || x == p || 0 == y || y == p) { return false; } if (a != 0) { } if (b != 0) { } return LHS == RHS; }
10,120,968
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2073, 309, 279, 1634, 316, 28381, 5513, 353, 603, 326, 8882, 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, 445, 28181, 9423, 12, 11890, 619, 16, 2254, 677, 13, 2713, 16618, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 309, 261, 20, 422, 619, 747, 619, 422, 293, 747, 374, 422, 677, 747, 677, 422, 293, 13, 288, 203...
./full_match/4/0xE32A88aAc056507F2E40a261ACd99742c377B6b3/sources/contracts/PriceDiscovery.sol
@notice Planned initial total supply of the sYSL token.
uint public initialTotalSupply;
12,470,905
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3008, 10041, 2172, 2078, 14467, 434, 326, 272, 61, 4559, 1147, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1071, 2172, 5269, 3088, 1283, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0xcC128DE52b8E4068Ba176B6391B38682C6180707/sources/browser/sovi/PioneerOreFlattened.sol
Update reward variables of the given pool to be up-to-date.
function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.number <= pool.lastRewardBlock) { return; } uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (lpSupply == 0) { pool.lastRewardBlock = block.number;...
4,878,526
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 19890, 3152, 434, 326, 864, 2845, 358, 506, 731, 17, 869, 17, 712, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 2864, 12, 11890, 5034, 389, 6610, 13, 1071, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 309, 261, 2629, 18, 2696, 1648, 2845, 18, 2722, 17631, 1060, 1768, 13, 288, 203, ...
/* @AUTHOR - Raj Jha & Harish Jaggi */ pragma solidity ^0.5.1; // !!!!!! No exception handling has done here. It is just for demonstration purpose. //Insurer company contract that calculate premium amount based on age,time_period,alcohol state and smoke state. contract InsurerCompany { //this method has define...
define mapping to store key-value pairs.
mapping(string => userRecord) userRecordMapping;
12,864,960
[ 1, 4625, 348, 7953, 560, 30, 4426, 2874, 358, 1707, 498, 17, 1132, 5574, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 1080, 516, 729, 2115, 13, 729, 2115, 3233, 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,...
/** *Submitted for verification at Etherscan.io on 2021-03-31 */ /** Copyright 2020 PoolTogether Inc. This file is part of PoolTogether. PoolTogether is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation under versio...
* Withdraws from the user's committed deposits @param _amount The amount to withdraw/
function withdrawCommittedDeposit(uint256 _amount) public nonReentrant notLocked returns (bool) { _withdrawCommittedDeposit(msg.sender, _amount); return true; }
8,015,419
[ 1, 4625, 348, 7953, 560, 30, 380, 3423, 9446, 87, 628, 326, 729, 1807, 16015, 443, 917, 1282, 632, 891, 389, 8949, 1021, 3844, 358, 598, 9446, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 598, 9446, 27813, 758, 1724, 12, 11890, 5034, 389, 8949, 13, 1071, 1661, 426, 8230, 970, 486, 8966, 1135, 261, 6430, 13, 225, 288, 203, 565, 389, 1918, 9446, 27813, 758, 1724, 12, 3576, 18, 15330, 16, 389, 8949, 1769, ...
./partial_match/1/0xDf0dbc66f85979a1d54671c4D9e439F306Be27EE/sources/_mean-finance/dca-v2-periphery/contracts/libraries/InputBuilding.sol
Load sorted into new array
_tokens = new address[](_uniqueTokens);
9,345,551
[ 1, 4625, 348, 7953, 560, 30, 225, 4444, 3115, 1368, 394, 526, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 389, 7860, 273, 394, 1758, 8526, 24899, 6270, 5157, 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, ...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; /** * Contract for administering the Airdrop of RIP. * 500,000 RIP will be made available via the Airdrop. */ contract Airdrop { // token addresses address public rip; address public owner; address public remainderDestination; ...
* Initializes the contract. Sets token addresses, owner, and leftover token destination. Claiming period is not enabled. @param rip_ the rip token contract address @param owner_ the privileged contract owner @param remainderDestination_ address to transfer remaining rip to when claiming ends. Should be community tr...
address remainderDestination_) { rip = rip_; owner = owner_; remainderDestination = remainderDestination_; claimingAllowed = false; totalAllocated = 0; }
1,009,748
[ 1, 4625, 348, 7953, 560, 30, 380, 10188, 3128, 326, 6835, 18, 11511, 1147, 6138, 16, 3410, 16, 471, 29709, 1147, 2929, 18, 18381, 310, 3879, 353, 486, 3696, 18, 632, 891, 436, 625, 67, 326, 436, 625, 1147, 6835, 1758, 632, 891, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 7734, 1758, 10022, 5683, 67, 13, 288, 203, 3639, 436, 625, 273, 436, 625, 67, 31, 203, 3639, 3410, 273, 3410, 67, 31, 203, 3639, 10022, 5683, 273, 10022, 5683, 67, 31, 203, 3639, 7516, 310, 5042, 273, 629, 31, 203, 3639, 2078, ...
//SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import './MadMouseTroupe.sol'; import './MadMouseStaking.sol'; import './lib/Ownable.sol'; contract MadMouseTroupeMetadata is Ownable { using Strings for uint256; MadMouseTroupe public madmouseTroupe; MadMouseTroupeMetadata public metadataGenesis; ...
simulates a token update and only returns ids != 0 if the user gets a bonus increase upon updating staked data
function shouldUpdateStakedIds(address user) external view returns (uint256[] memory) { if (!revealed) return new uint256[](0); uint256[] memory stakedIds = this.tokenIdsOf(user, 1); uint256 userData = _userData[user]; uint256 oldTotalBonus = totalBonus(user, userData); ui...
393,019
[ 1, 4625, 348, 7953, 560, 30, 225, 3142, 17099, 279, 1147, 1089, 471, 1338, 1135, 3258, 480, 374, 309, 326, 729, 5571, 279, 324, 22889, 10929, 12318, 9702, 384, 9477, 501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1410, 1891, 510, 9477, 2673, 12, 2867, 729, 13, 3903, 1476, 1135, 261, 11890, 5034, 8526, 3778, 13, 288, 203, 3639, 309, 16051, 266, 537, 18931, 13, 327, 394, 2254, 5034, 8526, 12, 20, 1769, 203, 203, 3639, 2254, 5034, ...
//SPDX-License-Identifier: UNLICENSED // Solidity files have to start with this pragma. // It will be used by the Solidity compiler to validate its version. pragma solidity ^0.8.0; // We import this library to be able to use console.log import "hardhat/console.sol"; // This is the main building block for smart contr...
@notice User can deposit ether and specify their weight goal @dev Once all the deposits are made, `freezeFunds()` is called to lock the funds and start off the challenge
function deposit(string memory ipfsHash, uint256 weightGoal) public payable canDeposit { uint256 valueLocked = msg.value; require(valueLocked > 0, "You must submit an amount"); UserAttributes storage user = tvlByUser[msg.sender]; require(user.valueLocked ...
12,592,221
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2177, 848, 443, 1724, 225, 2437, 471, 4800, 3675, 3119, 17683, 632, 5206, 565, 12419, 777, 326, 443, 917, 1282, 854, 7165, 16, 1375, 29631, 42, 19156, 20338, 540, 353, 2566, 358, 2176, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 443, 1724, 12, 1080, 3778, 2359, 2556, 2310, 16, 2254, 5034, 3119, 27716, 13, 203, 3639, 1071, 203, 3639, 8843, 429, 203, 3639, 848, 758, 1724, 203, 565, 288, 203, 3639, 2254, 5034, 460, 8966, 273, 1234, 18, 1132, 31, ...
./partial_match/1/0xd5be7b469B99a612A8c01084616a70f0d30d462D/sources/MikuruAsakura.sol
* 设置预售期间每个地址的最大 Mint 数量/
function setOnPreSalesMintCountForAddress( uint256 _onPreSalesMintCountForAddress ) external onlyOwner { onPreSalesMintCountForAddress = _onPreSalesMintCountForAddress; }
16,086,045
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 169, 111, 127, 168, 126, 111, 170, 100, 231, 166, 247, 111, 167, 255, 258, 170, 250, 117, 167, 112, 242, 165, 121, 108, 166, 255, 113, 166, 256, 227, 168, 253, 231, 167, 255, 227, 166, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 22131, 1386, 23729, 49, 474, 1380, 1290, 1887, 12, 203, 3639, 2254, 5034, 389, 265, 1386, 23729, 49, 474, 1380, 1290, 1887, 203, 565, 262, 3903, 1338, 5541, 288, 203, 3639, 603, 1386, 23729, 49, 474, 1380, 1290, 1887, 2...
// SPDX-License-Identifier: Apache-2.0 pragma solidity 0.7.6; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; contract ReignToken is IERC20 { using SafeMath for uint256; string public constant name = "Sovreign Governance Token"; string public c...
after the initial mint the owner will be set to 0 address
function setOwner(address _owner) public { require(msg.sender == owner, "Only Owner can do this"); owner = _owner; }
1,269,954
[ 1, 4625, 348, 7953, 560, 30, 225, 1839, 326, 2172, 312, 474, 326, 3410, 903, 506, 444, 358, 374, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 31309, 12, 2867, 389, 8443, 13, 1071, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 3410, 16, 315, 3386, 16837, 848, 741, 333, 8863, 203, 3639, 3410, 273, 389, 8443, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100,...
pragma solidity ^0.4.18; import "zeppelin-solidity/contracts/token/ERC721/ERC721Token.sol"; import "zeppelin-solidity/contracts/math/SafeMath.sol"; import "./lib/strings.sol"; // References: https://github.com/OpenZeppelin/openzeppelin-solidity/blob/v1.8.0/contracts/token/ERC721/ERC721Token.sol contract PeonyCertific...
Check if the certificate has been revoked or not
function isCertificateRevokable(uint256 tokenId) public view returns(bool revokable){ return revokableCertificates[tokenId]; }
947,645
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 309, 326, 4944, 711, 2118, 22919, 578, 486, 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, 353, 4719, 10070, 601, 429, 12, 11890, 5034, 1147, 548, 13, 1071, 1476, 1135, 12, 6430, 5588, 601, 429, 15329, 203, 3639, 327, 5588, 601, 429, 14133, 63, 2316, 548, 15533, 203, 565, 289, 203, 2, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.8.0; import "../FraxLiquidityBridger.sol"; contract FraxLiquidityBridger_BSC_AnySwap is FraxLiquidityBridger { constructor ( address _owner, address _timelock_address, address _amo_minter_address, address[3] memory _b...
[BSC] L1 FRAX -> anyFRAX Simple dump in / CREATE2 AnySwap Bridge L1 FXS -> anyFXS Simple dump in / CREATE2 AnySwap Bridge Binance Bridge
function _bridgingLogic(uint256 token_type, address address_to_send_to, uint256 token_amount) internal override { if (token_type == 0){ TransferHelper.safeTransfer(address(FRAX), bridge_addresses[token_type], token_amount); } else if (token_type == 1) { TransferHelper...
14,022,693
[ 1, 4625, 348, 7953, 560, 30, 225, 306, 38, 2312, 65, 511, 21, 14583, 2501, 317, 1281, 9981, 2501, 4477, 4657, 316, 342, 13278, 22, 5502, 12521, 24219, 511, 21, 478, 60, 55, 317, 1281, 25172, 55, 4477, 4657, 316, 342, 13278, 22, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 14400, 1998, 20556, 12, 11890, 5034, 1147, 67, 723, 16, 1758, 1758, 67, 869, 67, 4661, 67, 869, 16, 2254, 5034, 1147, 67, 8949, 13, 2713, 3849, 288, 203, 3639, 309, 261, 2316, 67, 723, 422, 374, 15329, 203, 5411,...
pragma solidity ^0.5.9; /** * @title Math * @dev Assorted math operations */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two n...
* @title ERC20 token with snapshots. @dev Inspired by Jordi Baylina's MiniMeToken to record historical balances: When a snapshot is made, the balances and totalSupply at the time of the snapshot are recorded for later access. To make a snapshot, call the `snapshot` function, which will emit the `Snapshot` event and ret...
contract ERC20Snapshot is ERC20 { using SafeMath for uint256; using Arrays for uint256[]; using Counters for Counters.Counter; struct Snapshots { uint256[] ids; uint256[] values; } mapping (address => Snapshots) private _accountBalanceSnapshots; Snapshots private _totalSupp...
2,562,482
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 4232, 39, 3462, 1147, 598, 12808, 18, 632, 5206, 657, 1752, 2921, 635, 804, 517, 77, 605, 528, 7511, 69, 1807, 27987, 4667, 1345, 358, 1409, 23922, 324, 26488, 30, 5203, 279, 4439, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4568, 353, 4232, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5647, 364, 2254, 5034, 8526, 31, 203, 565, 1450, 9354, 87, 364, 9354, 87, 18, 4789, 31, 203, 203, 565, 19...
pragma solidity ^0.4.18; // ---------------------------------------------------------------------------- // &#39;Tcoin&#39; token contract // // Deployed to : 0xd6b72d0e2D99565f67a18e2235a8Ac595cbcE55A // Symbol : EMC // Name : EduMetrix // Total supply: 1000000000000000000000000000 // Decimals : 18 // ...
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract EduMetrix is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function EduMetrix() public { symbol = "EMC"...
7,805,824
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 512, 2544, 12244, 1932, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 16, 14060, 10477, 288, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2254, 1071, 389, ...
pragma solidity ^0.4.16; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; } contract TicketCoin { // Public variables of the token string public name; string public symbol; uint8 public decimals = 8; // 18 decimals is th...
Public variables of the token 18 decimals is the strongly suggested default, avoid changing it This creates an array with all balances This generates a public event on the blockchain that will notify clients This notifies clients about the amount burnt
contract TicketCoin { string public name; string public symbol; uint8 public decimals = 8; uint256 public totalSupply; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; event Transfer(address indexed from, address indexed to,...
13,514,192
[ 1, 4625, 348, 7953, 560, 30, 225, 7224, 3152, 434, 326, 1147, 6549, 15105, 353, 326, 11773, 715, 22168, 805, 16, 4543, 12770, 518, 1220, 3414, 392, 526, 598, 777, 324, 26488, 1220, 6026, 279, 1071, 871, 603, 326, 16766, 716, 903, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 22023, 27055, 288, 203, 565, 533, 1071, 508, 31, 203, 565, 533, 1071, 3273, 31, 203, 565, 2254, 28, 1071, 15105, 273, 1725, 31, 203, 565, 2254, 5034, 1071, 2078, 3088, 1283, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, ...
./full_match/43113/0x91e19430f29369e314835D4Eeb3a7c4C27B47c0f/sources/JoeHatContract.sol
Traderjoe's contract for $HAT
contract JoeHatContract is Ownable { uint256 public _a = 95; uint256 public _b = 100; uint256 public k; uint256 public reserveAvax; uint256 public reserveHat; uint256 public reserveLowestAvax; uint256 public lastHatPriceInAvax; uint256 public maxSupply; address[] public redeemer...
13,194,393
[ 1, 4625, 348, 7953, 560, 30, 225, 2197, 765, 78, 15548, 1807, 6835, 364, 271, 44, 789, 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, 16351, 804, 15548, 44, 270, 8924, 353, 14223, 6914, 288, 203, 565, 2254, 5034, 1071, 389, 69, 273, 16848, 31, 203, 565, 2254, 5034, 1071, 389, 70, 273, 2130, 31, 203, 203, 565, 2254, 5034, 1071, 417, 31, 203, 565, 2254, 5034, 1...
pragma solidity ^0.4.24; // ---------------------------------------------------------------------------- // Owned contract // ---------------------------------------------------------------------------- contract Owned { address public owner; address public newOwner; event OwnershipTransferred(address inde...
------------------------------------------------------------------------ Constructor ------------------------------------------------------------------------
contract Aeroneum is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint _totalSupply; uint8 mintx; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; address wallet; uint _to...
93,352
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 432, 264, 476, 379, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 56...
./partial_match/42/0x8184F061269e358f690Ee59a21d6735081B20220/sources/DEFOWhaleClub.sol
The Uniswap v2 Router The Uniswap v2 Router The WETH Token The USDT Token The DefholdPools Info of pool.
contract DEFOWhaleClub is DEFOERC20, Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; IUniswapV2Router02 internal uniswapRouter = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); IUniswapV2Pair internal uniswapPair; IERC20 internal weth; IERC20 inte...
9,004,424
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 1351, 291, 91, 438, 331, 22, 9703, 1021, 1351, 291, 91, 438, 331, 22, 9703, 1021, 678, 1584, 44, 3155, 1021, 11836, 9081, 3155, 1021, 10922, 21056, 16639, 3807, 434, 2845, 18, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 2030, 3313, 2888, 5349, 2009, 373, 353, 2030, 3313, 654, 39, 3462, 16, 14223, 6914, 16, 868, 8230, 12514, 16709, 288, 203, 202, 9940, 14060, 10477, 364, 2254, 5034, 31, 203, 202, 9940, 14060, 654, 39, 3462, 364, 467, 654, ...
./full_match/80001/0x232e027441C46A79eFE1BcFA72dd2dc19dB210a9/sources/project:/contracts/Proxy/V1/NftMarketplaceERC1155ProxyV3.sol
Check for duplicates and calculate total percentage
function setupPayoutGroup(address nftAddress, PayoutScenario scenario, PayoutMember[] memory members) internal { uint256 totalPercentage = 0; function setOrgFeesPercentage( address nftAddress, uint16 primaryPercentage, uint16 secondaryPercentage } function setPrimaryF...
9,510,683
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 364, 11211, 471, 4604, 2078, 11622, 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, 3875, 52, 2012, 1114, 12, 2867, 290, 1222, 1887, 16, 453, 2012, 21390, 10766, 16, 453, 2012, 4419, 8526, 3778, 4833, 13, 2713, 288, 203, 3639, 2254, 5034, 2078, 16397, 273, 374, 31, 203, 203, 203, 565, 445, 444, 6001, ...
./full_match/137/0x5dE8baA77325EC8B6f0682cC1DC0f799596d8Cbc/sources/Pool/AdvancePool.sol
* @dev update Harvest Fee amount @param _harvestFee harvest fee in BUSD/
function updateHarvestFeeAmount( uint256 _harvestFee ) external onlyOwner { HARVEST_FEE = _harvestFee; }
4,765,476
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1089, 670, 297, 26923, 30174, 3844, 632, 891, 389, 30250, 26923, 14667, 17895, 26923, 14036, 316, 605, 3378, 40, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 44, 297, 26923, 14667, 6275, 12, 203, 3639, 2254, 5034, 389, 30250, 26923, 14667, 203, 565, 262, 203, 3639, 3903, 203, 3639, 1338, 5541, 203, 565, 288, 203, 3639, 670, 985, 3412, 882, 67, 8090, 41, 273, 389, 30250...
/* Copyright 2018 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 Transfers feePercentage of WETH spent on primary orders to feeRecipient. Refunds any excess ETH to msg.sender. @param wethSoldExcludingFeeOrders Amount of WETH sold when filling primary orders. @param wethSoldForZrx Amount of WETH sold when purchasing ZRX required for primary order fees. @param feePercentage...
function transferEthFeeAndRefund( uint256 wethSoldExcludingFeeOrders, uint256 wethSoldForZrx, uint256 feePercentage, address payable feeRecipient ) internal { require( feePercentage <= MAX_FEE_PERCENTAGE, "FEE_PERCENTAGE_TOO_LARGE" ...
6,428,719
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2604, 18881, 14036, 16397, 434, 678, 1584, 44, 26515, 603, 3354, 11077, 358, 14036, 18241, 18, 1377, 3941, 19156, 1281, 23183, 512, 2455, 358, 1234, 18, 15330, 18, 632, 891, 341, 546, 55, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 41, 451, 14667, 1876, 21537, 12, 203, 3639, 2254, 5034, 341, 546, 55, 1673, 424, 18596, 14667, 16528, 16, 203, 3639, 2254, 5034, 341, 546, 55, 1673, 1290, 62, 20122, 16, 203, 3639, 2254, 5034, 14036, 16397, 16, 20...
./full_match/1/0x6f9140097Ab6278B41Cf9597a597030207b8D75d/sources/lib/seaport-core/src/lib/ConsiderationDecoder.sol
Check that returndatasize is at least four words: offerOffset, considerationOffset, offerLength, & considerationLength Proceed if enough returndata is present to continue evaluation. Copy first two words of returndata (the offsets to offer and consideration array lengths) to scratch space. If valid length, check that ...
function _decodeOrderComponentsAsOrderParameters(CalldataPointer cdPtr) internal pure returns (MemoryPointer mPtr) } function _decodeGenerateOrderReturndata() internal pure returns (uint256 invalidEncoding, MemoryPointer offer, MemoryPointer consideration) ...
9,676,142
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 716, 327, 13178, 554, 353, 622, 4520, 12792, 4511, 30, 10067, 2335, 16, 5260, 367, 2335, 16, 10067, 1782, 16, 473, 5260, 367, 1782, 1186, 5288, 309, 7304, 327, 892, 353, 3430, 358, 1324, 9873,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3922, 2448, 7171, 1463, 2448, 2402, 12, 1477, 892, 4926, 7976, 5263, 13, 203, 3639, 2713, 203, 3639, 16618, 203, 3639, 1135, 261, 6031, 4926, 312, 5263, 13, 203, 565, 289, 203, 203, 565, 445, 389, 3922, 4625, 2448,...
./partial_match/1/0x595f279DE4b5DF1e47Ca55b65175D8a9A935A0fA/sources/ERC721Metadata.sol
Token name Token symbol Optional mapping for token URIs Optional mapping for token URL
contract ERC721Metadata is ERC165, ERC721, IERC721Metadata { string private _name; string private _symbol; mapping(uint256 => string) private _tokenURIs; mapping(uint256 => string) private _tokenURLSomnium; bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f; constructor ...
15,893,769
[ 1, 4625, 348, 7953, 560, 30, 225, 3155, 508, 3155, 3273, 4055, 2874, 364, 1147, 24565, 4055, 2874, 364, 1147, 1976, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 27, 5340, 2277, 353, 4232, 39, 28275, 16, 4232, 39, 27, 5340, 16, 467, 654, 39, 27, 5340, 2277, 288, 203, 565, 533, 3238, 389, 529, 31, 203, 203, 565, 533, 3238, 389, 7175, 31, 203, 203, 565, 2874, 12, 11890,...
// SPDX-License-Identifier: MIT pragma solidity 0.8.12; interface ib { function acceptGov() external; function balanceOf(address) external view returns (uint); function burn(uint amount) external; function deposit() external; function mint(uint amount) external; function profit() external; ...
used to accept gov on underlying ib tokens for this contract
function accept_gov(address token) is_msig external { ib(token).acceptGov(); tokens.push(token); }
12,120,550
[ 1, 4625, 348, 7953, 560, 30, 225, 1399, 358, 2791, 31841, 603, 6808, 9834, 2430, 364, 333, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 2791, 67, 75, 1527, 12, 2867, 1147, 13, 353, 67, 959, 360, 3903, 288, 203, 3639, 9834, 12, 2316, 2934, 9436, 43, 1527, 5621, 203, 3639, 2430, 18, 6206, 12, 2316, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -...
./full_match/28/0xf94BF3984A8E0cd3abcd7C3A5CD352AA97424694/sources/project_/contracts/Dating.sol
Initial owners of the contract to make this easier Some default users
constructor() { owner = msg.sender; users.push(alice); users.push(bob); users.push(charlie); people[address(1)] = alice; people[address(2)] = bob; people[address(3)] = charlie; numberOfUsers = 3; }
16,365,784
[ 1, 4625, 348, 7953, 560, 30, 225, 10188, 25937, 434, 326, 6835, 358, 1221, 333, 15857, 10548, 805, 3677, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 288, 203, 3639, 3410, 273, 1234, 18, 15330, 31, 203, 3639, 3677, 18, 6206, 12, 287, 1812, 1769, 203, 3639, 3677, 18, 6206, 12, 70, 947, 1769, 203, 3639, 3677, 18, 6206, 12, 3001, 549, 73, 1769, 203, 3639, 16951...
pragma solidity ^0.8.0; // SPDX-License-Identifier: MIT import "OpenZeppelin/openzeppelin-contracts@4.1.0/contracts/access/Ownable.sol"; import "../interfaces/IERC2981.sol"; import "./Token.sol"; /** * @title NFT Marketplace with ERC-2981 support * @notice Defines a marketplace to bid on and sell NFTs. * S...
Broadcast the buy offer
emit NewBuyOffer(tokenId, msg.sender, msg.value);
13,042,327
[ 1, 4625, 348, 7953, 560, 30, 225, 19687, 326, 30143, 10067, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3626, 1166, 38, 9835, 10513, 12, 2316, 548, 16, 1234, 18, 15330, 16, 1234, 18, 1132, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.21; // File: contracts/ISimpleCrowdsale.sol interface ISimpleCrowdsale { function getSoftCap() external view returns(uint256); function isContributorInLists(address contributorAddress) external view returns(bool); function processReservationFundContribution( address contributo...
* @dev Complete contribution after if user is whitelisted/
function completeContribution(address contributor) external { require(!crowdsaleFinished); require(crowdsale.isContributorInLists(contributor)); require(contributions[contributor] > 0); uint256 etherAmount = contributions[contributor]; uint256 tokenAmount = tokensToIssue[con...
7,678,838
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 14575, 24880, 1839, 309, 729, 353, 26944, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3912, 442, 4027, 12, 2867, 31123, 13, 3903, 288, 203, 3639, 2583, 12, 5, 71, 492, 2377, 5349, 10577, 1769, 203, 3639, 2583, 12, 71, 492, 2377, 5349, 18, 291, 442, 19293, 382, 7432, 12, 591, 19293, 10019, 203, 3639, 25...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; //////////////////// // good morning ☀️ // //////////////////// contract GenerativeMorning is ERC7...
www.w3.org/2000/svg'><path style='fill:#040348' d='M0 0h400v280H0z'/><path style='fill:#1b1e23' d='M0 280h400v120H0z'/><path d='M300 20a30 30 1 0 1 0 60 40 40 1 0 0 0-60z' fill='#fff' style='transform:rotate(-30deg);transform-origin:350px 40px'/></svg>";
return "data:image/svg+xml;utf8,<svg viewBox='0 0 400 400' width='400' height='400' fill='none' xmlns='http:
10,124,949
[ 1, 4625, 348, 7953, 560, 30, 8765, 18, 91, 23, 18, 3341, 19, 17172, 19, 11451, 11, 4438, 803, 2154, 2218, 5935, 27363, 3028, 4630, 8875, 11, 302, 2218, 49, 20, 374, 76, 16010, 90, 22, 3672, 44, 20, 94, 11, 19, 4438, 803, 2154, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 3639, 327, 315, 892, 30, 2730, 19, 11451, 15, 2902, 31, 3158, 28, 16, 32, 11451, 1476, 3514, 2218, 20, 374, 7409, 7409, 11, 1835, 2218, 16010, 11, 2072, 2218, 16010, 11, 3636, 2218, 6102, 11, 12302, 2218, 2505, 30, 2, -100, -10...
// contracts/mocks/Rewards.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard...
Withdraw LP tokens from MasterChef.
function withdraw(uint256 _pid, uint256 _amount) public { require(_pid != 0, "withdraw CAKE by unstaking"); PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); ...
12,683,992
[ 1, 4625, 348, 7953, 560, 30, 225, 3423, 9446, 511, 52, 2430, 628, 13453, 39, 580, 74, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 12, 11890, 5034, 389, 6610, 16, 2254, 5034, 389, 8949, 13, 1071, 288, 203, 3639, 2583, 24899, 6610, 480, 374, 16, 315, 1918, 9446, 6425, 6859, 635, 640, 334, 6159, 8863, 203, 203, 3639, 8828, 966, 2502, 2845,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract BearIsland...
Update the base URI for tokens. @param baseURI_ the new base URI
function setURI(string memory baseURI_) external onlyOwner { baseURI = baseURI_; }
12,634,574
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 326, 1026, 3699, 364, 2430, 18, 632, 891, 1026, 3098, 67, 326, 394, 1026, 3699, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 3098, 12, 1080, 3778, 1026, 3098, 67, 13, 3903, 1338, 5541, 288, 203, 3639, 1026, 3098, 273, 1026, 3098, 67, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/3/0xF88038430085726183702b36a7D163a81528F7f1/sources/SwanStake.sol
@dev emitted whenever user's staked tokens are successfully unstaked and trasnferred back to the user
event ClaimedInterestTokens(address indexed _user,uint256 _amount);
5,069,533
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 17826, 17334, 729, 1807, 384, 9477, 2430, 854, 4985, 640, 334, 9477, 471, 433, 31432, 4193, 1473, 358, 326, 729, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 871, 18381, 329, 29281, 5157, 12, 2867, 8808, 389, 1355, 16, 11890, 5034, 389, 8949, 1769, 21281, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x99e0439920A80006d2b5A258e30Df66e22467C6D/sources/BOMBHEAD.sol
any tokens sent here ?modifiers
contract BOMBHEAD is ERC20Detailed { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; string constant tokenName = "BOMBHEAD token"; string constant tokenSymbol = "BOMBHEAD"; uint8 constant tokenDecimals...
3,591,994
[ 1, 4625, 348, 7953, 560, 30, 1281, 2430, 3271, 2674, 692, 15432, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 25408, 38, 12458, 353, 4232, 39, 3462, 40, 6372, 288, 203, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 377, 203, 203, 21281, 225, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 225, 2874, ...
/** *Submitted for verification at Etherscan.io on 2022-01-01 */ // SPDX-License-Identifier: MIT // GO TO LINE 1904 TO SEE WHERE THE ALPHA CONTRACT STARTS // File: @openzeppelin/contracts/utils/Context.sol pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, includ...
Reserve 1 alpha for team - Giveaways/Prizes etc
contract Alphas is ERC721, Ownable { using SafeMath for uint256; uint public constant maxAlphaPurchase = 10; uint256 public constant MAX_ALPHA = 2500; bool public saleIsActive = true; mapping(uint => string) public alphaNames; uint public alphaReserve = 1; ...
14,609,268
[ 1, 4625, 348, 7953, 560, 30, 225, 1124, 6527, 404, 4190, 364, 5927, 300, 22374, 69, 3052, 19, 2050, 3128, 5527, 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, 16351, 2262, 26377, 353, 4232, 39, 27, 5340, 16, 14223, 6914, 288, 203, 377, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 377, 203, 377, 203, 203, 203, 565, 2254, 1071, 5381, 943, 9690, 23164, 273, 1728, 31, 203, ...
./full_match/80001/0x7a8a4df3279720526275Dc27f027f228966C7B49/sources/contracts/LensRoles.sol
@dev Grant a role to a user as per the total followers receiver by Phat Contract @param caller The address of the user being granted the role @param totalFollowers Total followers of a Lens Profile returned by the Phat Contract
function grantRole(address caller, uint256 totalFollowers) internal { for (uint i = 0; i < totalRoles; i++) { if ( Roles[i].thresholdLower >= totalFollowers && Roles[i - 1].thresholdUpper < totalFollowers ) { _grantRole(Roles[i].Role, c...
9,442,630
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 19689, 279, 2478, 358, 279, 729, 487, 1534, 326, 2078, 2805, 414, 5971, 635, 4360, 270, 13456, 632, 891, 4894, 1021, 1758, 434, 326, 729, 3832, 17578, 326, 2478, 632, 891, 2078, 8328, 414...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7936, 2996, 12, 2867, 4894, 16, 2254, 5034, 2078, 8328, 414, 13, 2713, 288, 203, 3639, 364, 261, 11890, 277, 273, 374, 31, 277, 411, 2078, 6898, 31, 277, 27245, 288, 203, 5411, 309, 261, 203, 7734, 19576, 63, 77, 8009...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/con...
* @title Crowdsale @dev Crowdsale is a base contract for managing a token crowdsale, allowing investors to purchase tokens with ether. This contract implements such functionality in its most fundamental form and can be extended to provide additional functionality and/or custom behavior. The external interface represent...
contract Crowdsale is Context, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 private _token; address payable private _wallet; uint256 private _rate; uint256 private _weiRaised; event TokensPurchased(address indexed purchaser, address indexed beneficiar...
12,071,414
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 385, 492, 2377, 5349, 632, 5206, 385, 492, 2377, 5349, 353, 279, 1026, 6835, 364, 30632, 279, 1147, 276, 492, 2377, 5349, 16, 15632, 2198, 395, 1383, 358, 23701, 2430, 598, 225, 2437, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 385, 492, 2377, 5349, 353, 1772, 16, 868, 8230, 12514, 16709, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 467, 654, 39, 3462, ...
pragma solidity ^0.5.0; import {SafeMath} from "./SafeMath.sol"; import {ERC20Token} from "./Token.sol"; import {Project} from "./Project.sol"; contract Intermediary { using SafeMath for uint; // List of projects Project[] projects; // Currency token ERC20Token currency_; // Intermediary's ...
Do not forget the "_;"! It will be replaced by the actual function body when the modifier is used.
{ require( msg.sender == _account, "Sender not authorized. Intermediary." ); _; }
5,541,387
[ 1, 4625, 348, 7953, 560, 30, 225, 2256, 486, 13776, 326, 4192, 4868, 5, 2597, 903, 506, 8089, 635, 326, 3214, 445, 1417, 1347, 326, 9606, 353, 1399, 18, 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, 565, 288, 203, 3639, 2583, 12, 203, 5411, 1234, 18, 15330, 422, 389, 4631, 16, 203, 5411, 315, 12021, 486, 10799, 18, 5294, 5660, 814, 1199, 203, 3639, 11272, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -1...
// SPDX-License-Identifier: GPL-3.0 /** ░░░░░░░░▒░░░░░░░░░░░░░░░░▒▒▒▒▒░░░░░░░░░░▒░░░░░░░░░ ░░░░░░▒▓███░░░░░░░░▒▒▒▒▒░░▒▒███░░░░░░░▓▒██░░░░░░░░ ░░░░▓█░░░▓█▒░░░░▒▓▒░░░░░░░░░░██░░░░░░██▒░██░░░░░░░ ░░░░▒██░░▒▒░░░░▓█░░░░░░░░░░░░██▓░░░░░▓█▓░▒█▒░░░░░░ ░░░░░▒██░░░░░░██░░░░░░░░░░░░▒░██▒░░░░▓█▓▒▒░░░░░░░░ ░░░░░░▓██░░░░▓█▒░░░░░░░░...
* @notice Approve an auction, opening up the auction for bids. @dev Only callable by the curator. Cannot be called if the auction has already started./
function setAuctionApproval(uint256 auctionId, bool approved) external override auctionExists(auctionId) { require(msg.sender == auctions[auctionId].curator, "Must be auction curator"); require(auctions[auctionId].firstBidTime == 0, "Auction has already started"); _approveAuction(auctionId, ...
1,157,518
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1716, 685, 537, 392, 279, 4062, 16, 10890, 731, 326, 279, 4062, 364, 30534, 18, 632, 5206, 5098, 4140, 635, 326, 662, 639, 18, 14143, 506, 2566, 309, 326, 279, 4062, 711, 1818, 5746, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 37, 4062, 23461, 12, 11890, 5034, 279, 4062, 548, 16, 1426, 20412, 13, 3903, 3849, 279, 4062, 4002, 12, 69, 4062, 548, 13, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 279, 4062, 87, 63, 69, 4062, 548, 8009, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /* Contract Imports */ import { L2StandardERC721 } from "../../standards/L2StandardERC721.sol"; import { Lib_PredeployAddresses } from "../../libraries/constants/Lib_PredeployAddresses.sol"; import { IL2StandardERC721Factory } from './IL2StandardERC721Factory.sol...
* @title L2StandardERC721Factory @dev Factory contract for creating standard L2 ERC721 representations of L1 ERC721s compatible with and working on the NFT bridge./
contract L2StandardERC721Factory is IL2StandardERC721Factory { mapping(address => bool) public isStandardERC721; mapping(address => address) public standardERC721Mapping; function createStandardL2ERC721( address _l1Token, string memory _name, string memory _symbol pragma solidity ^0...
2,488,671
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 511, 22, 8336, 654, 39, 27, 5340, 1733, 632, 5206, 7822, 6835, 364, 4979, 4529, 511, 22, 4232, 39, 27, 5340, 27851, 434, 511, 21, 4232, 39, 27, 5340, 87, 7318, 598, 471, 5960, 603, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 511, 22, 8336, 654, 39, 27, 5340, 1733, 353, 467, 48, 22, 8336, 654, 39, 27, 5340, 1733, 288, 203, 565, 2874, 12, 2867, 516, 1426, 13, 1071, 353, 8336, 654, 39, 27, 5340, 31, 203, 565, 2874, 12, 2867, 516, 1758, 13, ...
./full_match/137/0x6ceb95626A59a2F8B1d0B6DB970F4190B89354C7/sources/_koyofinance/exchange-vault-solidity-utils/contracts/helpers/WordCodec.sol
We never accept 256 bit values (which would make the codec pointless), and the larger the offset the smaller the maximum bit length. Testing unsigned values for size is straightforward: their upper bits must be cleared.
function _validateEncodingParams( uint256 value, uint256 offset, uint256 bitLength ) private pure { _require(offset < 256, Errors.OUT_OF_BOUNDS); _require(bitLength >= 1 && bitLength <= Math.min(255, 256 - offset), Errors.OUT_OF_BOUNDS); _require(value >> bitLeng...
3,751,645
[ 1, 4625, 348, 7953, 560, 30, 225, 1660, 5903, 2791, 8303, 2831, 924, 261, 12784, 4102, 1221, 326, 9196, 1634, 2656, 3631, 471, 326, 10974, 326, 1384, 326, 10648, 326, 4207, 2831, 769, 18, 7766, 310, 9088, 924, 364, 963, 353, 21251, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 5662, 4705, 1370, 12, 203, 3639, 2254, 5034, 460, 16, 203, 3639, 2254, 5034, 1384, 16, 203, 3639, 2254, 5034, 2831, 1782, 203, 565, 262, 3238, 16618, 288, 203, 3639, 389, 6528, 12, 3348, 411, 8303, 16, 9372, 18, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.6; import '@openzeppelin/contracts/math/SafeMath.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol'; import "@openzeppelin/contracts/access/Ownable.sol"; contract TeamTimeLock is Ownable{ ...
address public beneficiary; Info of each user.
contract TeamTimeLock is Ownable{ using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public token; uint256 public startBlock; uint256 public endBlock; string public introduce; uint256 public maxReward; struct UserInfo { } mapping(address => UserInfo) userInfos; ...
1,065,368
[ 1, 4625, 348, 7953, 560, 30, 1758, 1071, 27641, 74, 14463, 814, 31, 3807, 434, 1517, 729, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 10434, 950, 2531, 353, 14223, 6914, 95, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 467, 654, 39, 3462, 1071, 1147, 31, 203, 565, 2...
./full_match/4/0xe440b9cBaF7b31513F8414abd1D6c7a63dd01DD8/sources/contracts/Loka.sol
Ideally, you would pass in some sort of unique identifier to reference your token for this demo we're just repurposing the token URI
contract Loka is ERC721, ERC721Enumerable, ERC721URIStorage, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIds; uint256 public cost = 0.001 ether; uint256 private itemCounter; address [] public holderIndex; mapping(uint256 => string) public tokenAttribute; mapping(address => uint2...
12,374,800
[ 1, 4625, 348, 7953, 560, 30, 225, 23062, 1230, 16, 1846, 4102, 1342, 316, 2690, 1524, 434, 3089, 2756, 358, 2114, 3433, 1147, 364, 333, 21477, 732, 4565, 2537, 2071, 295, 24014, 326, 1147, 3699, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 511, 601, 69, 353, 4232, 39, 27, 5340, 16, 4232, 39, 27, 5340, 3572, 25121, 16, 4232, 39, 27, 5340, 3098, 3245, 16, 14223, 6914, 288, 203, 202, 9940, 9354, 87, 364, 9354, 87, 18, 4789, 31, 203, 202, 18037, 18, 4789, 32...
...
inject NONSTANDARD NAMING
function SETUNSTAKINGFROZENTIME482(uint256 _unstakingFrozenTime) public ONLYOWNER527 {
7,225,465
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7855, 2124, 882, 14607, 1360, 42, 1457, 62, 2222, 3114, 8875, 22, 12, 11890, 5034, 389, 23412, 6159, 42, 9808, 950, 13, 1071, 20747, 29602, 25, 5324, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/1/0x47Bad9D30293971161FF575ffcd5BDda482a5325/sources/browser/HEXLOCK.sol
stakes hex - transfers HEX from user to contract - approval neededsenduser infostake HEXget the most recent stakeIndexupdate stake infomint bonus LOCK tokens relative to HEX amount and stake length (stake for more than 20 days and get larger bonus)
function stakeHex(uint hearts, uint dayLength, address payable ref) internal returns(bool) { updateUserData(hearts); hexInterface.stakeStart(hearts, dayLength); uint hexStakeIndex = hexInterface.stakeCount(address(this)).sub(1); updateStakeData(hearts, dayLength, ...
8,396,429
[ 1, 4625, 348, 7953, 560, 30, 384, 3223, 3827, 300, 29375, 23971, 628, 729, 358, 6835, 300, 23556, 3577, 4661, 1355, 1123, 334, 911, 23971, 588, 326, 4486, 8399, 384, 911, 1016, 2725, 384, 911, 8286, 362, 474, 324, 22889, 14631, 2430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 384, 911, 7037, 12, 11890, 3904, 485, 87, 16, 2254, 2548, 1782, 16, 1758, 8843, 429, 1278, 13, 203, 3639, 2713, 203, 3639, 1135, 12, 6430, 13, 203, 565, 288, 203, 3639, 1089, 19265, 12, 580, 485, 87, 1769, 203, 3639, ...
pragma solidity ^0.4.18; /* Polymath compliance protocol is intended to ensure regulatory compliance in the jurisdictions that security tokens are being offered in. The compliance protocol allows security tokens remain interoperable so that anyone can build on top of the Polymath platform and extend it's funct...
Mapping used for storing the template repuation
mapping(address => Reputation) public templates;
2,548,401
[ 1, 4625, 348, 7953, 560, 30, 225, 9408, 1399, 364, 15729, 326, 1542, 2071, 11407, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 2867, 516, 868, 458, 367, 13, 1071, 5539, 31, 8227, 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,...
/** * Copyright 2017-2020, bZeroX, LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0. */ pragma solidity 0.5.3; pragma experimental ABIEncoderV2; import "../openzeppelin-solidity/Math.sol"; import "../proxy/BZxProxiable.sol"; import "../shared/MiscFunctions.sol"; import "../oracle/Oracle...
We will convert newInterestRate to an actual amount based on loan value, denominated in interestToken. Percentage format: 2% of total filled loan token value per day = 2 * 10**18 This is limited to tokens supported by the oracle if interestTokenAddress != loanTokenAddress
if (newInterestRate > 0 && loanOrder.loanTokenAmount > 0) { uint256 loanToInterestAmount; if (loanOrder.interestTokenAddress == loanOrder.loanTokenAddress) { loanToInterestAmount = loanOrder.loanTokenAmount; (uint256 sourceToDestRate, uint256 sourceToDes...
13,099,990
[ 1, 4625, 348, 7953, 560, 30, 225, 1660, 903, 1765, 394, 29281, 4727, 358, 392, 3214, 3844, 2511, 603, 28183, 460, 16, 10716, 7458, 316, 16513, 1345, 18, 21198, 410, 740, 30, 576, 9, 434, 2078, 6300, 28183, 1147, 460, 1534, 2548, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 3639, 309, 261, 2704, 29281, 4727, 405, 374, 597, 28183, 2448, 18, 383, 304, 1345, 6275, 405, 374, 13, 288, 203, 203, 203, 5411, 2254, 5034, 28183, 774, 29281, 6275, 31, 203, 5411, 309, 261, 383, 304, 2448, 18, 2761, 395, 1345, ...
./full_match/43114/0x45E82ea84e3d3672C909f8b22baa7701BaB3F89a/sources/contracts/DeathIDO.sol
20% of the DEATH for the liquidity (listing price 20 BUY per DEATH), the rest is for the buyers to claim
uint256 _DeathLiquidity = _DeathBalance / 5;
4,499,705
[ 1, 4625, 348, 7953, 560, 30, 225, 4200, 9, 434, 326, 2030, 3275, 364, 326, 4501, 372, 24237, 261, 21228, 6205, 4200, 10937, 61, 1534, 2030, 3275, 3631, 326, 3127, 353, 364, 326, 30143, 414, 358, 7516, 203, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 389, 758, 421, 48, 18988, 24237, 273, 389, 758, 421, 13937, 342, 1381, 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...
/** *Submitted for verification at Etherscan.io on 2022-04-25 */ // SPDX-License-Identifier: MIT pragma solidity >=0.7.0 <0.9.0; // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Im...
@notice Mints NFT(s) for a specified address, only the owner can call this function. @param _mintAmount The amount of NFTs that the caller would like to mint. @param _receiver the address that will recieve the NFT(s). @param _tier the tier of NFT that the caller would like to mint (Tier 1, 2, or 3).
function mintForAddress(uint256 _mintAmount, address _receiver, uint256 _tier) public mintCompliance(_mintAmount, _tier) onlyOwner { _mintLoop(_receiver, _mintAmount, _tier); }
2,102,786
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 490, 28142, 423, 4464, 12, 87, 13, 364, 279, 1269, 1758, 16, 1338, 326, 3410, 848, 745, 333, 445, 18, 632, 891, 389, 81, 474, 6275, 1021, 3844, 434, 423, 4464, 87, 716, 326, 4894, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 474, 1290, 1887, 12, 11890, 5034, 389, 81, 474, 6275, 16, 1758, 389, 24454, 16, 2254, 5034, 389, 88, 2453, 13, 1071, 312, 474, 16687, 24899, 81, 474, 6275, 16, 389, 88, 2453, 13, 1338, 5541, 288, 203, 3639, 389, ...
pragma solidity >=0.4.21 <0.7.0; import "./Vote.sol"; import "./ProposalContract.sol"; import "./Approval.sol"; import "./Safemath.sol"; // contract SafeMath { // function safeAdd(uint a, uint b) public pure returns (uint c) { // c = a + b; // require(c >= a); // } // function safeSub(u...
returns a list of ids of pending transactions return one by one (look at proposal)
function getPendingTransactions() view validOwner public returns (uint[] memory) { return _pendingTransactions; }
12,944,364
[ 1, 4625, 348, 7953, 560, 30, 225, 1135, 279, 666, 434, 3258, 434, 4634, 8938, 327, 1245, 635, 1245, 261, 7330, 622, 14708, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1689, 2846, 14186, 1435, 203, 1377, 1476, 203, 1377, 923, 5541, 203, 1377, 1071, 203, 1377, 1135, 261, 11890, 8526, 3778, 13, 288, 203, 1377, 327, 389, 9561, 14186, 31, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100,...
// File: @openzeppelin/contracts/utils/Context.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they sho...
Storage of set values Position of the value in the `values` array, plus 1 because index 0 means a value is not in the set.
struct Set { bytes32[] _values; mapping(bytes32 => uint256) _indexes; }
1,063
[ 1, 4625, 348, 7953, 560, 30, 225, 5235, 434, 444, 924, 11010, 434, 326, 460, 316, 326, 1375, 2372, 68, 526, 16, 8737, 404, 2724, 770, 374, 4696, 279, 460, 353, 486, 316, 326, 444, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 1000, 288, 203, 3639, 1731, 1578, 8526, 389, 2372, 31, 203, 3639, 2874, 12, 3890, 1578, 516, 2254, 5034, 13, 389, 11265, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity 0.6.6; // SPDX-License-Identifier: MIT abstract contract ReentrancyGuard { uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() public { _status = _NOT_ENTERED; } modifier nonReentrant() { re...
SPDX-License-Identifier: MIT----------------------------------------------------------------------------------------------------------------------------------------------------- Events --------------------------------------------------------------------------------------------------------------------------------------...
contract HarvestSCBase is StrategyBase, HarvestBase { event RewardsExchanged( address indexed user, uint256 rewardsAmount, uint256 obtainedAmount ); event Deposit( address indexed user, address indexed origin, uint256 amountToken, uint256 amountfToke...
14,857,499
[ 1, 4625, 348, 7953, 560, 30, 225, 11405, 28826, 17, 13211, 17, 3004, 30, 490, 1285, 5802, 28253, 13465, 9043, 8879, 5802, 2443, 17, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 670, 297, 26923, 2312, 2171, 353, 19736, 2171, 16, 670, 297, 26923, 2171, 288, 203, 203, 565, 871, 534, 359, 14727, 424, 6703, 12, 203, 3639, 1758, 8808, 729, 16, 203, 3639, 2254, 5034, 283, 6397, 6275, 16, 203, 3639, 2254...
// SPDX-License-Identifier: Apache-2.0 // 人類の反撃はこれからだ。 // jinrui no hangeki wa kore kara da. // Source code heavily inspired from deployed contract instance of Azuki collection // https://etherscan.io/address/0xed5af388653567af2f388e6224dc7c4b3241c544#code // The source code in the github does not have some important ...
Whitelisted NFT collections
address[] public _whitelistedCollections;
13,052,420
[ 1, 4625, 348, 7953, 560, 30, 225, 3497, 7523, 329, 423, 4464, 6980, 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, 1758, 8526, 1071, 389, 20409, 329, 15150, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.6.12; import "./Params.sol"; import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol"; contract MockValidators is Params { using SafeMath for uint256; enum Status { // validator not exist, default status NotExist, // validator created Created, ...
do nothing if you are already in highestValidatorsSet set do nothing if staking amount isn't bigger than current lowest
function tryAddValidatorToHighestSet(address val, uint256 staking) internal { for (uint256 i = 0; i < highestValidatorsSet.length; i++) { if (highestValidatorsSet[i] == val) { return; } } if (highestValidatorsSet.length < MaxValidators) { ...
6,380,099
[ 1, 4625, 348, 7953, 560, 30, 225, 741, 5083, 309, 1846, 854, 1818, 316, 9742, 19420, 694, 444, 741, 5083, 309, 384, 6159, 3844, 5177, 1404, 18983, 2353, 783, 11981, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 775, 986, 5126, 774, 8573, 395, 694, 12, 2867, 1244, 16, 2254, 5034, 384, 6159, 13, 203, 565, 2713, 203, 565, 288, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 9742, 19420, 694, 18, 2469, 31, 277, ...
// SPDX-License-Identifier: MIT pragma solidity =0.8.11; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openze...
* @notice Stake tokens to receive rewards. @param amount_ Amount of tokens to deposit./
function stake(uint256 amount_) external whenNotPaused nonReentrant { require(amount_ > 1000000, "Amount too low"); require( JamonV2.allowance(_msgSender(), address(this)) >= amount_, "Amount not allowed" ); if (stakeHolders[_msgSender()].inStake) { ...
12,585,583
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 934, 911, 2430, 358, 6798, 283, 6397, 18, 632, 891, 3844, 67, 16811, 434, 2430, 358, 443, 1724, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 384, 911, 12, 11890, 5034, 3844, 67, 13, 3903, 1347, 1248, 28590, 1661, 426, 8230, 970, 288, 203, 3639, 2583, 12, 8949, 67, 405, 15088, 16, 315, 6275, 4885, 4587, 8863, 203, 3639, 2583, 12, 203, 5411, 804, 301, 265, 5...
pragma ton-solidity >= 0.45.0; pragma AbiHeader expire; pragma AbiHeader pubkey; pragma AbiHeader time; import "./DEXConnector.sol"; import "./interfaces/IRootTokenContract.sol"; import "./interfaces/ITONTokenWallet.sol"; import "./interfaces/ITokensReceivedCallback.sol"; import "./interfaces/IDEXConnector.sol"; impor...
Function to send Transaction with setting bounce, flags and payload.
function sendTransaction(address dest, uint128 value, bool bounce, uint8 flags, TvmCell payload) public pure checkOwnerAndAccept { dest.transfer(value, bounce, flags, payload); }
13,128,144
[ 1, 4625, 348, 7953, 560, 30, 225, 4284, 358, 1366, 5947, 598, 3637, 324, 8386, 16, 2943, 471, 2385, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1366, 3342, 12, 2867, 1570, 16, 2254, 10392, 460, 16, 1426, 324, 8386, 16, 2254, 28, 2943, 16, 399, 3489, 4020, 2385, 13, 1071, 16618, 866, 5541, 1876, 5933, 288, 203, 565, 1570, 18, 13866, 12, 1132, 16, 324, 8386, 16...
./partial_match/4/0xF314466C692e3832f15cDf127A7FeE536279fFb8/sources/joytest1.sol
fileHash = masterFile[masterRef]; fileType = fileTypeMemory[masterRef];
function getMetadata(uint256 tokenId) public view returns (string memory artTitle, string memory description, string memory artType, uint256 editionCap, uint256 editionNumber){ uint256 masterRef = fileMasterReference[tokenId]; artTitle = artTitleMemory[masterRef]; artType = artTypeM...
8,523,804
[ 1, 4625, 348, 7953, 560, 30, 540, 585, 2310, 273, 4171, 812, 63, 7525, 1957, 15533, 3639, 21939, 273, 21939, 6031, 63, 7525, 1957, 15533, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 11159, 12, 11890, 5034, 1147, 548, 13, 1071, 1476, 1135, 261, 1080, 3778, 3688, 4247, 16, 533, 3778, 2477, 16, 533, 3778, 3688, 559, 16, 2254, 5034, 28432, 4664, 16, 2254, 5034, 28432, 1854, 15329, 203, 3639, 2254, 5034, ...
./full_match/4/0xc41A4FC84A5B096c99A06cE38988114F4BCb5B67/sources/contracts/DebtToken.sol
* Transfer tokens from one address to another @notice couldn't override in interface @dev modifier onlyCommunityContract @param _sender address - the address to debit tokens from @param _recipient address - the address to credit tokens to @param _amount uint256 - the amount of tokens to be transferred @return bool - tr...
function transferFrom( address _sender, address _recipient, uint256 _amount ) public override onlyCommunityContract returns (bool) { _transfer(_sender, _recipient, _amount); return true; }
654,600
[ 1, 4625, 348, 7953, 560, 30, 380, 12279, 2430, 628, 1245, 1758, 358, 4042, 632, 20392, 17991, 1404, 3849, 316, 1560, 632, 5206, 9606, 1338, 12136, 13352, 8924, 632, 891, 389, 15330, 1758, 300, 326, 1758, 358, 443, 3682, 2430, 628, 632...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 15330, 16, 203, 3639, 1758, 389, 20367, 16, 203, 3639, 2254, 5034, 389, 8949, 203, 565, 262, 1071, 3849, 1338, 12136, 13352, 8924, 1135, 261, 6430, 13, 288, 203, 3639, 389, 13866, 2...
./partial_match/42/0xa8E3f997951637FF80a975E81f74fe86EA4EB444/sources/KBaseQuestions.sol
bytes32 public alphaChainBytes32JobId; address public alphaChainKovanOracle;
contract KBaseQuestions is ChainlinkClient { uint256 public questionIdCounter; mapping(uint256 => Question) public questions; mapping(bytes32 => uint256) public requestToQuestions; IERC20 public kbaseToken; uint256 public answerStakeAmount; bytes32 public ipfsJobId; address public chainlinkO...
3,408,591
[ 1, 4625, 348, 7953, 560, 30, 225, 1731, 1578, 1071, 4190, 3893, 2160, 1578, 23378, 31, 1758, 1071, 4190, 3893, 47, 1527, 304, 23601, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1475, 2171, 30791, 1115, 353, 7824, 1232, 1227, 288, 203, 565, 2254, 5034, 1071, 5073, 548, 4789, 31, 203, 565, 2874, 12, 11890, 5034, 516, 18267, 13, 1071, 13494, 31, 203, 565, 2874, 12, 3890, 1578, 516, 2254, 5034, 13, 1...
./full_match/1/0x700B276ac277BFBC04Ffb34E7aA1347C2cEb802a/sources/contracts/PhilanthropyToken.sol
Mapping to track buyer purchase timestamps
contract PhilanthropyToken is ERC20, Ownable { using Admin for *; using Security for *; using Utils for *; uint256 public TOTAL_INITIAL_RELEASED = 0; uint256 public TOTAL_INVESTOR_CLAIMED = 0; uint256 public presaleStartTime; mapping(address => uint256) public lastPurchaseTimestamp; ...
9,643,187
[ 1, 4625, 348, 7953, 560, 30, 225, 9408, 358, 3298, 27037, 23701, 11267, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4360, 330, 304, 451, 8405, 1345, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 7807, 364, 380, 31, 203, 565, 1450, 6036, 364, 380, 31, 203, 565, 1450, 6091, 364, 380, 31, 203, 203, 203, 203, 565, 2254, 5034,...
./full_match/1/0xA4c4808777c16F5A846C92173592272198103DaE/sources/contracts/RockPaperScissors_V8.sol
@dev min bet amount in wei
uint256 public minBetAmount;
3,130,728
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1131, 2701, 3844, 316, 732, 77, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 1131, 38, 278, 6275, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.5.16; // Copied from Compound/ExponentialNoError /** * @title Exponential module for storing fixed-precision decimals * @author DeFil * @notice Exp is a struct which stores decimals with a fixed precision of 18 decimal places. * Thus, if we wanted to store the 5.1, mantissa would store ...
@notice A list of all valid members @notice Emitted when members changed
constructor(Distributor superior_) Redistributor(superior_) public {}
10,159,129
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 432, 666, 434, 777, 923, 4833, 632, 20392, 512, 7948, 1347, 4833, 3550, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 1669, 19293, 2240, 9659, 67, 13, 8505, 19293, 12, 9565, 9659, 67, 13, 1071, 2618, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/40/0x2AE991C66cE9D9Fd4318e67B0b94E2B4170faa5D/sources/contracts/ProxyWithdrawal.sol
Transfer coins (only for owner) @param _to address Destination address @param _amount uint Transfer amount
function transferCoins(address _to, uint _amount) external onlyOwner { require(!_to.isContract(), "Withdrawal: target address is contract"); require(getBalance() >= _amount, "Withdrawal: balance not enough"); require(successFee, "Withdrawal: transfer failed"); emit TransferEvent(_to,...
9,546,772
[ 1, 4625, 348, 7953, 560, 30, 225, 12279, 276, 9896, 261, 3700, 364, 3410, 13, 632, 891, 389, 869, 1758, 225, 10691, 1758, 632, 891, 389, 8949, 2254, 225, 12279, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 39, 9896, 12, 2867, 389, 869, 16, 2254, 389, 8949, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 5, 67, 869, 18, 291, 8924, 9334, 315, 1190, 9446, 287, 30, 1018, 1758, 353, 6835, 8863, 203, 3639, 2583, 12, 5...
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.6.11; // File: @openzeppelin/contracts/token/ERC20/IERC20.sol /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() exte...
// protect against price manipulation/
function harvest() external virtual override; @notice Increase total debt if profit > 0 and total assets <= max, otherwise transfers profit to vault. @dev Guard against manipulation of external price feed by checking that total assets is below factor of total debt function skim() e...
54,463
[ 1, 4625, 348, 7953, 560, 30, 368, 17151, 5314, 6205, 27029, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 17895, 26923, 1435, 3903, 5024, 3849, 31, 203, 203, 565, 632, 20392, 657, 11908, 2078, 18202, 88, 309, 450, 7216, 405, 374, 471, 2078, 7176, 1648, 943, 16, 203, 5411, 3541, 29375, 450, 7216, 358, 9229, 18, 203, 565, 632...
/* * Project RESERVED * Here you can see the code with comments * Enjoy :) **/ pragma solidity ^0.4.24; contract RESERVED { address owner; //address of contract creator address investor; //address of user who just invested money to the contract mapping (address => uint256) balances; //amou...
rate for each address
mapping (address => uint16) rate;
12,849,030
[ 1, 4625, 348, 7953, 560, 30, 4993, 364, 1517, 1758, 7010, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 2867, 516, 2254, 2313, 13, 4993, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...