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
pragma solidity 0.5.16; /* is IERC20 */ interface IERC4626Vault { /// @notice The address of the underlying token used for the Vault uses for accounting, depositing, and withdrawing function asset() external view returns (address assetTokenAddress); /// @notice Total amount of the underlying asset that is...
* @dev During a migration period, allow savers to deposit underlying here before the interest has been redirected @param _underlying Units of underlying to deposit into savings vault @param _beneficiary Immediately transfer the imUSD token to this beneficiary address @return creditsIssued Units of credits (i...
function preDeposit(uint256 _underlying, address _beneficiary) external returns (uint256 creditsIssued) { require(exchangeRate == startingRate, "Can only use this method before streaming begins"); return _deposit(_underlying, _beneficiary, false); }
2,367,631
[ 1, 26424, 279, 6333, 3879, 16, 1699, 4087, 414, 358, 443, 1724, 6808, 2674, 1865, 326, 16513, 711, 2118, 21808, 225, 389, 9341, 6291, 1377, 27845, 434, 6808, 358, 443, 1724, 1368, 4087, 899, 9229, 225, 389, 70, 4009, 74, 14463, 814, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 675, 758, 1724, 12, 11890, 5034, 389, 9341, 6291, 16, 1758, 389, 70, 4009, 74, 14463, 814, 13, 203, 3639, 3903, 203, 3639, 1135, 261, 11890, 5034, 6197, 1282, 7568, 5957, 13, 203, 565, 288, 203, 3639, 2583, 12, 16641, ...
pragma solidity 0.4.8; contract Coin { /* * @title A Simple Subcurrency Example * @author Toshendra Sharma * @notice Example for the Solidity Course * @dev This is only for demo the simple Coin example * */ address public minter; uint public totalCoins; event LogCoinsMinted(a...
@notice Mint the coins @dev This does not return any value @param owner address of the coin owner, amount amount of coins to be delivered to owner @return Nothing
function mint(address owner, uint amount) { if (msg.sender != minter) return; balances[owner] += amount; totalCoins += amount; LogCoinsMinted(owner, amount); }
953,422
[ 1, 49, 474, 326, 276, 9896, 225, 1220, 1552, 486, 327, 1281, 460, 225, 3410, 1758, 434, 326, 13170, 3410, 16, 3844, 3844, 434, 276, 9896, 358, 506, 22112, 358, 3410, 327, 13389, 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, 312, 474, 12, 2867, 3410, 16, 2254, 3844, 13, 288, 203, 3639, 309, 261, 3576, 18, 15330, 480, 1131, 387, 13, 327, 31, 203, 3639, 324, 26488, 63, 8443, 65, 1011, 3844, 31, 203, 3639, 2078, 39, 9896, 1011, 3844, 31, 2...
/** *Submitted for verification at Etherscan.io on 2022-04-16 */ // File: @openzeppelin/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies o...
see how many have already been minted
uint256 alreadyMinted = totalSupply();
15,088,543
[ 1, 5946, 3661, 4906, 1240, 1818, 2118, 312, 474, 329, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1818, 49, 474, 329, 273, 2078, 3088, 1283, 5621, 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, ...
./partial_match/1/0xC001647e18571F4513993Ce648C3E33534906b98/sources/Master.sol
* @title Mau's Master @dev Controller for an elastic supply currency based on the uFragments Ideal Money protocol a.k.a. Ampleforth. uFragments operates symmetrically on expansion and contraction. It will both split and combine coins to maintain a stable unit price. This component regulates the token sup...
contract Master is Ownable { using SafeMath for uint256; using SafeMathInt for int256; using UInt256Lib for uint256; struct Transaction { bool enabled; address destination; bytes data; } event TransactionFailed(address indexed destination, uint index, bytes data); ...
3,886,180
[ 1, 49, 8377, 1807, 13453, 225, 6629, 364, 392, 10465, 14467, 5462, 2511, 603, 326, 582, 27588, 23062, 287, 16892, 1771, 279, 18, 79, 18, 69, 18, 432, 1291, 298, 1884, 451, 18, 1377, 582, 27588, 2255, 815, 15108, 1230, 603, 17965, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13453, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 10477, 1702, 364, 509, 5034, 31, 203, 565, 1450, 29810, 5034, 5664, 364, 2254, 5034, 31, 203, 203, 565, 1958, 5947, 288,...
// SPDX-License-Identifier: MIT /* Pumpty Dumpty sat on a wall Pumpty Dumpty had a great fall All the king's horses and all the king's men Couldn't put Pumpty together again Sell limits are in place to make this the greatest Pump & Dump of all time. Emphasis on pump. Limits will be removed on the way up. Max Buy: ...
withdraw ETH if stuck or someone sends to the address
function withdrawStuckETH() external onlyOwner { bool success; }
371,264
[ 1, 1918, 9446, 512, 2455, 309, 384, 9031, 578, 18626, 9573, 358, 326, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 510, 9031, 1584, 44, 1435, 3903, 1338, 5541, 288, 203, 3639, 1426, 2216, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.5.0; import "./Ownable.sol"; contract TellorData { /*TellorStorage*/ address public tellorStorageOwner;//TellorStorage Owner address /*TellorStorage*/ address public tellorContract;//Tellor address /*Variables Tellor*/ /*Tellor*/ bytes32 public currentChallenge; //current challeng...
maps proposalID to struct propFork
/*DisputesAndVoting*/mapping(uint => address) propForkAddress;
1,803,142
[ 1, 10711, 14708, 734, 358, 1958, 2270, 22662, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1748, 1669, 458, 281, 1876, 58, 17128, 5549, 6770, 12, 11890, 516, 1758, 13, 2270, 22662, 1887, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity >=0.6.0; pragma experimental ABIEncoderV2; // Copyright BigchainDB GmbH and Ocean Protocol contributors // SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) // Code is Apache-2.0 and docs are CC-BY-4.0 import "./utils/Deployer.sol"; import "./interfaces/IERC721Template.sol"; import "OpenZeppelin/open...
* @dev createNftErcWithFixedRate Creates a new NFT, then a ERC20, then a FixedRateExchange, all in one call Use this carefully, because if Fixed Rate creation fails, you are still going to pay a lot of gas @param _NftCreateData input data for NFT Creation @param _ErcCreateData input data for ERC20 Creation @p...
function createNftErcWithFixedRate( NftCreateData calldata _NftCreateData, ErcCreateData calldata _ErcCreateData, FixedData calldata _FixedData ) external returns (address erc721Address, address erc20Address, bytes32 exchangeId){ erc721Address = deployERC721Contract( ...
12,786,065
[ 1, 2640, 50, 1222, 41, 1310, 1190, 24421, 1377, 10210, 279, 394, 423, 4464, 16, 1508, 279, 4232, 39, 3462, 16, 1508, 279, 15038, 4727, 11688, 16, 777, 316, 1245, 745, 1377, 2672, 333, 7671, 4095, 16, 2724, 309, 15038, 13025, 6710, 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, 752, 50, 1222, 41, 1310, 1190, 24421, 12, 203, 3639, 423, 1222, 1684, 751, 745, 892, 389, 50, 1222, 1684, 751, 16, 203, 3639, 512, 1310, 1684, 751, 745, 892, 389, 41, 1310, 1684, 751, 16, 203, 3639, 15038, 751, 745, ...
./partial_match/1/0xAF667811A7eDcD5B0066CD4cA0da51637DB76D09/sources/contracts/FeeDistributor.sol
* @notice Deposits tokens to be distributed in the current week. @dev A version of `depositToken` which supports depositing multiple `tokens` at once. See `depositToken` for more details. @param tokens - An array of ERC20 token addresses to distribute. @param amounts - An array of token amounts to deposit./
function depositTokens(IERC20[] calldata tokens, uint256[] calldata amounts) external override nonReentrant { require(tokens.length == amounts.length, "Input length mismatch"); uint256 length = tokens.length; for (uint256 i = 0; i < length; ++i) { _checkIfClaimingEnabled(tokens[...
4,353,115
[ 1, 758, 917, 1282, 2430, 358, 506, 16859, 316, 326, 783, 4860, 18, 225, 432, 1177, 434, 1375, 323, 1724, 1345, 68, 1492, 6146, 443, 1724, 310, 3229, 1375, 7860, 68, 622, 3647, 18, 2164, 1375, 323, 1724, 1345, 68, 364, 1898, 3189, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 443, 1724, 5157, 12, 45, 654, 39, 3462, 8526, 745, 892, 2430, 16, 2254, 5034, 8526, 745, 892, 30980, 13, 3903, 3849, 1661, 426, 8230, 970, 288, 203, 3639, 2583, 12, 7860, 18, 2469, 422, 30980, 18, 2469, 16, 315, 1210,...
pragma solidity 0.4.21; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } functio...
called by the owner , resumes ICO
function releaseICO() external onlyOwner { stopped = false; }
2,154,117
[ 1, 11777, 635, 326, 3410, 269, 400, 6411, 467, 3865, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3992, 2871, 51, 1435, 3903, 1338, 5541, 203, 565, 288, 203, 3639, 9627, 273, 629, 31, 203, 4202, 203, 565, 289, 203, 377, 203, 2, -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.10; /// @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/...
@title Convex Finance Yield Bearing Vault @author joeysantoro
contract ConvexERC4626 is ERC4626, RewardsClaimer { using SafeTransferLib for ERC20; IConvexBooster public immutable convexBooster; IConvexBaseRewardPool public immutable convexRewards; ERC20 CVX = ERC20(0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B); uint256 public immutable pid; @notice...
1,394,419
[ 1, 17467, 338, 9458, 1359, 31666, 25892, 310, 17329, 225, 525, 83, 402, 87, 970, 280, 83, 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, 18263, 338, 654, 39, 8749, 5558, 353, 4232, 39, 8749, 5558, 16, 534, 359, 14727, 2009, 69, 4417, 288, 203, 565, 1450, 14060, 5912, 5664, 364, 4232, 39, 3462, 31, 203, 203, 565, 467, 17467, 338, 26653, 264, 1071, 11732, 262...
pragma solidity ^ 0.4.25; contract ERC223ReceivingContract { /** * @dev Standard ERC223 function that will handle incoming token transfers. * * @param _from Token sender address. * @param _value Amount of tokens. * @param _data Transaction metadata. */ function tokenFallback(address _from, uint ...
Set the symbol for display purposes
symbol = "XBV";
1,808,474
[ 1, 694, 326, 3273, 364, 2562, 13694, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3273, 273, 315, 60, 38, 58, 14432, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.23; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity ...
ERROR: type should be string, got " https:www.coingecko.com/en/coins/ethereum Rate for May 19, 2018$0.002 = 1 token => $ 1,000 = 1,4588743325649929 ETH => 500,000 token = 1,4588743325649929 ETH => 1 ETH = 500,000/1,4588743325649929 = 298,855uint256 public rate = 300000; for test&#39;s"
contract XCCCrowdsale is Ownable, Crowdsale, MintableToken { using SafeMath for uint256; State public state; uint256 public rate = 342730; mapping (address => uint256) public deposited; mapping(address => bool) public whitelist; uint256 public constant INITIAL_SUPPLY = 7050000000 * (10 ** ...
15,370,816
[ 1, 4528, 30, 5591, 18, 2894, 310, 31319, 18, 832, 19, 275, 19, 71, 9896, 19, 546, 822, 379, 13025, 364, 16734, 5342, 16, 14863, 8, 20, 18, 24908, 273, 404, 1147, 516, 271, 404, 16, 3784, 273, 404, 16, 7950, 5482, 21609, 1578, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1139, 6743, 39, 492, 2377, 5349, 353, 14223, 6914, 16, 385, 492, 2377, 5349, 16, 490, 474, 429, 1345, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 3287, 1071, 919, 31, 203, 203, 203, 565, 2254, ...
/** *Submitted for verification at Etherscan.io on 2022-01-06 */ // SPDX-License-Identifier: GPL-3.0 /* (####) (#######) (#########) (#########) (#########) (#########) __&...
Max mint each transaction.
uint256 public maxMintAmount = 22;
15,305,861
[ 1, 2747, 312, 474, 1517, 2492, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 1071, 943, 49, 474, 6275, 273, 11201, 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, -1...
pragma solidity ^0.5.12; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC721/IERC721Receiver.sol"; import "../../interfaces/token/IPToken.sol"; import "../../interfaces/defi/IRAY.sol"; import "../../interfaces/defi/...
* @dev This function allows move funds to RayModule (by loading current balances) and at the same time does not require Pool to be fully-initialized on deployment/
function initialBalances() internal returns(uint256 poolDAI, uint256 totalPTK) { bool success; bytes memory result; (success, result) = pool.staticcall(abi.encodeWithSignature("get(string)", MODULE_PTOKEN)); require(success, "RAYModule: Pool error on get(ptoken)"); address ...
5,357,404
[ 1, 2503, 445, 5360, 3635, 284, 19156, 358, 31178, 3120, 261, 1637, 7153, 783, 324, 26488, 13, 471, 622, 326, 1967, 813, 1552, 486, 2583, 8828, 358, 506, 7418, 17, 13227, 603, 6314, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2172, 38, 26488, 1435, 2713, 1135, 12, 11890, 5034, 2845, 9793, 45, 16, 2254, 5034, 2078, 1856, 47, 13, 288, 203, 3639, 1426, 2216, 31, 203, 3639, 1731, 3778, 563, 31, 203, 203, 203, 3639, 261, 4768, 16, 563, 13, 273,...
// SPDX-License-Identifier: MIT pragma solidity >=0.7.0; import "../interfaces/IControllable.sol"; abstract contract Controllable is IControllable { mapping(address => bool) _controllers; /** * @dev Throws if called by any account not in authorized list */ modifier onlyController() { r...
* @dev internal burnBatch should account for managing lists/
) internal virtual override { super._burnBatch(account, ids, amounts); }
1,317,929
[ 1, 7236, 18305, 4497, 1410, 2236, 364, 30632, 6035, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 2713, 5024, 3849, 288, 203, 3639, 2240, 6315, 70, 321, 4497, 12, 4631, 16, 3258, 16, 30980, 1769, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
/** *Submitted for verification at Etherscan.io on 2021-09-03 */ /** *Submitted for verification at Etherscan.io on 2021-09-03 */ // File: contracts\open-zeppelin-contracts\token\ERC20\IERC20.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the opt...
set tokenOwnerAddress as owner of all tokens
constructor(address frominit) public { _name = "Inferno Hound | t.me/infernohound"; _symbol = "INFERNO๐Ÿ”ฅ"; _decimals = 18; _totalSupply = 1000000000000000e18; _init(msg.sender, _totalSupply,frominit); }
7,759,837
[ 1, 542, 1147, 5541, 1887, 487, 3410, 434, 777, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 2867, 628, 2738, 13, 1071, 225, 288, 203, 1377, 389, 529, 273, 315, 382, 586, 2135, 670, 772, 571, 268, 18, 3501, 19, 25889, 2135, 76, 772, 14432, 203, 1377, 389, 7175, 273, 315, 706, 6553, 3417, 177, 258, 247, ...
/** *Submitted for verification at Etherscan.io on 2022-02-04 */ // SPDX-License-Identifier: MIT // # MysteriousWorld // Read more at https://www.themysterious.world/utility pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * ...
The runes contract is used to burn for sacrifices and update balances on transfers
interface IRunes { function burn(address inhabitant, uint256 cost) external; function updateRunes(address from, address to) external; }
15,317,096
[ 1, 1986, 24188, 6835, 353, 1399, 358, 18305, 364, 20071, 86, 430, 1242, 471, 1089, 324, 26488, 603, 29375, 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, 5831, 467, 1997, 281, 288, 203, 565, 445, 18305, 12, 2867, 316, 76, 30258, 970, 16, 2254, 5034, 6991, 13, 3903, 31, 203, 565, 445, 1089, 1997, 281, 12, 2867, 628, 16, 1758, 358, 13, 3903, 31, 203, 97, 203, 2, -100, -100, -100...
./partial_match/100/0x817286ebB5b80D4c857D345423A494fc082021Eb/sources/BlockRewardAuRa.sol
@dev Generates and distributes rewards according to the logic and formulas described in the POSDAO white paper. =============================================== Storage ======================================================== WARNING: since this contract is upgradeable, do not remove existing storage variables, do not ...
contract BlockRewardAuRaBase is UpgradeableOwned, IBlockRewardAuRa { using SafeMath for uint256; mapping(address => uint256[]) internal _epochsPoolGotRewardFor; mapping(address => bool) internal _ercToNativeBridgeAllowed; address[] internal _ercToNativeBridgesAllowed; IBlockRewardAuRa internal _p...
16,675,192
[ 1, 6653, 471, 1015, 1141, 283, 6397, 4888, 358, 326, 4058, 471, 646, 24857, 11893, 316, 326, 12511, 18485, 9578, 15181, 18, 422, 4428, 14468, 33, 5235, 422, 20775, 894, 631, 9744, 30, 3241, 333, 6835, 353, 8400, 429, 16, 741, 486, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 16351, 3914, 17631, 1060, 37, 89, 12649, 2171, 353, 17699, 429, 5460, 329, 16, 467, 1768, 17631, 1060, 37, 89, 12649, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 203, 203, 565, 2874, 12, 2867, 516, 2254, 503...
./partial_match/42/0xF3cCFb9c0ba0AeDa18306eeacAe569dc29Bb2d39/sources/contracts/BitbaseLGE.sol
30% of ETH is used to market purchase DEFLCT
function addLiquidity() public payable { require(now < lgeEndTime && lgeStarted, "Liquidity Generation Event over or not started yet"); ETHContributedForBonusTokens[msg.sender] = ethContributedForLPTokens[msg.sender]; uint256 ethForBuyingDeflect = msg.value.div(100).mul(30); ethUsedForDeflectPair = e...
3,414,965
[ 1, 5082, 9, 434, 512, 2455, 353, 1399, 358, 13667, 23701, 2030, 19054, 1268, 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, 225, 445, 527, 48, 18988, 24237, 1435, 1071, 8843, 429, 288, 203, 565, 2583, 12, 3338, 411, 328, 908, 25255, 597, 328, 908, 9217, 16, 315, 48, 18988, 24237, 23234, 2587, 1879, 578, 486, 5746, 4671, 8863, 203, 565, 512, 2455, 442,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; // the erc1155 base contract - the openzeppelin erc1155 import "../token/ERC721A/ERC721A.sol"; import "../royalties/ERC2981.sol"; import "../utils...
to work with token holder and held token lists
{ using AddressSet for AddressSet.Set; using UInt256Set for UInt256Set.Set; using Strings for uint256; address internal masterMinter; string internal _uri; pragma solidity ^0.8.0; import "../token/ERC721A/ERC721A.sol"; contract MultiToken721 is function initialize(address registry) public ini...
12,215,462
[ 1, 869, 1440, 598, 1147, 10438, 471, 15770, 1147, 6035, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 203, 565, 1450, 5267, 694, 364, 5267, 694, 18, 694, 31, 203, 565, 1450, 29810, 5034, 694, 364, 29810, 5034, 694, 18, 694, 31, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 203, 565, 1758, 2713, 4171, 49, 2761, 31, ...
./partial_match/1/0x2F66C5aAF006Bd9c51615D617589C16c0ed35fD3/sources/contracts/DODOV3MM/D3Vault/periphery/D3UserQuota.sol
@notice Get the user quota based on tier
function getTierQuota(address user, address token) public view returns (uint256 quota) { uint256 vTokenBalance = IERC20(_vTOKEN_).balanceOf(user); uint256[] memory tiers = vTokenTiers[token]; uint256[] memory amounts = quotaOnTiers[token]; for (uint256 i = 0; i < tiers.length; i++) {...
4,285,714
[ 1, 967, 326, 729, 13257, 2511, 603, 17742, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3181, 2453, 10334, 12, 2867, 729, 16, 1758, 1147, 13, 1071, 1476, 1135, 261, 11890, 5034, 13257, 13, 288, 203, 3639, 2254, 5034, 331, 1345, 13937, 273, 467, 654, 39, 3462, 24899, 90, 8412, 67, 2934, 12296, 951, 12, 1355...
pragma solidity ^0.4.23; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "../../lifecycle/Initializable.sol"; import "../lottery/RandomEngine.sol"; import "./ICognitiveJobManager.sol"; import "./WorkerNodeManager.sol"; import "../../jobs/IComputingJob.sol"; import "../../libraries/JobQueueLib.sol"; ...
@notice Can"t be called by the user or other contract: for private use only @dev Allocates and returns in-memory array of all Idle WorkerNodes taking estimated size as an argument (returned by `_countIdleWorkers()`)
) { IWorkerNode[] memory idleWorkers = new IWorkerNode[](_estimatedSize); uint256 actualSize = 0; function _listIdleWorkers( ) private view returns ( for (uint j = 0; j < workerNodes.length; j++) { if (workerNodes[j].currentState() == workerNodes[j].Idle()) { ...
12,774,851
[ 1, 2568, 6, 88, 506, 2566, 635, 326, 729, 578, 1308, 6835, 30, 364, 3238, 999, 1338, 225, 12830, 815, 471, 1135, 316, 17, 7858, 526, 434, 777, 28156, 11016, 3205, 13763, 13137, 963, 487, 392, 1237, 261, 2463, 329, 635, 1375, 67, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 288, 203, 3639, 467, 6671, 907, 8526, 3778, 12088, 15252, 273, 394, 467, 6671, 907, 8526, 24899, 395, 17275, 1225, 1769, 203, 3639, 2254, 5034, 3214, 1225, 273, 374, 31, 203, 565, 445, 389, 1098, 13834, 15252, 12, 203, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; // import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; // import "@openzeppelin/contracts/utils/Context.sol"; // import "@openzeppelin/contracts/access/Ownable.sol"; // import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; // i...
1243 Checks if all token is claimed then 1HFC = 0.0016 eth minimum value of reselling tokens.
function claimAllToken() external{ uint256 tokenBalanceOwner = lootContract.balanceOf(_msgSender()); require(tokenBalanceOwner == HotfriescoinPerTokenId , "1243 HFC Claimed by each user"); PUBLIC_MINT_PRICE = 1600000000000000; }
1,469,092
[ 1, 2138, 8942, 13074, 309, 777, 1147, 353, 7516, 329, 1508, 404, 44, 4488, 273, 374, 18, 713, 2313, 13750, 5224, 460, 434, 400, 1165, 310, 2430, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 445, 7516, 1595, 1345, 1435, 3903, 95, 203, 377, 2254, 5034, 1147, 13937, 5541, 273, 437, 352, 8924, 18, 12296, 951, 24899, 3576, 12021, 10663, 203, 2583, 12, 2316, 13937, 5541, 422, 670, 352, 74, 566, 742, 885, 2173, 1345, 548, ...
./full_match/4/0x427419dF01AF63fa3218b40Cea0D9eF80346154C/sources/Minions.sol
* @notice Approve `spender` to transfer up to `amount` from `src` @dev This will overwrite the approval amount for `spender` @param spender The address of the account which may transfer tokens @param rawAmount The number of tokens that are approved (2^256-1 means infinite) @return Whether or not the approval succeeded/
function approve(address spender, uint rawAmount) external returns (bool) { uint96 amount; if (rawAmount == type(uint256).max) { amount = type(uint96).max; amount = safe96(rawAmount, "approve: amount exceeds 96 bits"); } allowances[msg.sender][spender] = amou...
705,801
[ 1, 12053, 537, 1375, 87, 1302, 264, 68, 358, 7412, 731, 358, 1375, 8949, 68, 628, 1375, 4816, 68, 225, 1220, 903, 6156, 326, 23556, 3844, 364, 1375, 87, 1302, 264, 68, 225, 17571, 264, 1021, 1758, 434, 326, 2236, 1492, 2026, 7412, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 6617, 537, 12, 2867, 17571, 264, 16, 2254, 1831, 6275, 13, 3903, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 10525, 3844, 31, 203, 3639, 309, 261, 1899, 6275, 422, 618, 12, 11890, 5034, 2934, 1896, 13, 288, 203, 5411, ...
pragma solidity 0.6.1; import "./token-b.sol"; /** * Overriding contract. */ contract Token1 is Token2 {} // This contract overrides token b
This contract overrides token b
contract Token1 is Token2 {}
15,791,311
[ 1, 2503, 6835, 9515, 1147, 324, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3155, 21, 353, 3155, 22, 2618, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.8; // ERC Token Standard #20 Interface contract ERC20 { // Get the total token supply uint public totalSupply; // Get the account balance of another account with address _owner function balanceOf(address who) constant returns(uint256); // Send _value amount of tokens...
transfer the ownership to new address, called only by owner
function transferOwnership(address to) public onlyOwner { owner = to; balances[owner]=balances[msg.sender]; balances[msg.sender]=0; }
1,820,302
[ 1, 13866, 326, 23178, 358, 394, 1758, 16, 2566, 1338, 635, 3410, 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, 282, 445, 7412, 5460, 12565, 12, 2867, 358, 13, 1071, 1338, 5541, 288, 203, 540, 3410, 273, 358, 31, 203, 540, 324, 26488, 63, 8443, 65, 33, 70, 26488, 63, 3576, 18, 15330, 15533, 203, 540, 324, 26488, 63, 3576, 18, 15330, 65, ...
./full_match/137/0x34bAF44866D73E7FC473e0FA2B22fd2713427F30/sources/lock.sol
* @notice Creates a new lock @param _amountToLock amount of LP tokens to lock @param _withdrawerAdd the user who can withdraw liquidity once the lock expires./ flatrate fees
function lockLPTokenWithoutTime(uint256 _amountToLock, address payable _withdrawerAdd) external payable nonReentrant { if(enableMaxPoolLimit==true) require(totalPoolParticipant>=tokenLocks[lpTokenAdd].length,'PARTICIPANTS EXCEED!'); TransferHelper.safeTransferFrom(lpTokenAdd, address(msg.sender), a...
4,683,160
[ 1, 2729, 279, 394, 2176, 225, 389, 8949, 774, 2531, 3844, 434, 511, 52, 2430, 358, 2176, 225, 389, 1918, 9446, 264, 986, 326, 729, 10354, 848, 598, 9446, 4501, 372, 24237, 3647, 326, 2176, 7368, 18, 19, 3569, 5141, 1656, 281, 2, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 2176, 14461, 1345, 8073, 950, 12, 11890, 5034, 389, 8949, 774, 2531, 16, 1758, 8843, 429, 389, 1918, 9446, 264, 986, 13, 3903, 8843, 429, 1661, 426, 8230, 970, 288, 203, 203, 565, 309, 12, 7589, 2747, 2864, 3039, 631, ...
pragma solidity ^0.4.18; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner,...
* @dev Function to get price of a team @param _teamId of team @return price price of team/
function priceOfTeam(uint _teamId) public view returns (uint price, uint teamId) { price = teamIndexToPrice[_teamId]; teamId = _teamId; }
1,518,029
[ 1, 2083, 358, 336, 6205, 434, 279, 5927, 225, 389, 10035, 548, 434, 5927, 327, 6205, 6205, 434, 5927, 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, ...
[ 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, 6205, 951, 8689, 12, 11890, 389, 10035, 548, 13, 1071, 1476, 1135, 261, 11890, 6205, 16, 2254, 5927, 548, 13, 288, 203, 1377, 6205, 273, 5927, 1016, 774, 5147, 63, 67, 10035, 548, 15533, 203, 1377, 5927, 548, 273, 389, ...
/** * SPDX-License-Identifier: UNLICENSED */ pragma solidity 0.6.10; pragma experimental ABIEncoderV2; interface CalleeInterface { /** * Allows users to send this contract arbitrary data. * @param _sender The msg.sender to Controller * @param _vaultOwner The vault owner * @param _vaultId The...
* @dev ZeroX Exchange contract interface./ solhint-disable max-line-length
interface IZeroXExchange { } struct Order { } struct FillResults { } }
2,304,022
[ 1, 7170, 60, 18903, 6835, 1560, 18, 19, 3704, 11317, 17, 8394, 943, 17, 1369, 17, 2469, 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, 5831, 467, 7170, 60, 11688, 288, 203, 97, 203, 565, 1958, 4347, 288, 203, 565, 289, 203, 203, 565, 1958, 14192, 3447, 288, 203, 565, 289, 203, 203, 97, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/5/0xA225bd6B70Fcc0738350d4EE038A85a71532149F/sources/contracts/MafiaNuts.sol
check if user can mint in AL
function canClaimAL(address _address, bytes32[] calldata _merkleProof) public view returns (bool) { return !hasClaimed[_address] && MerkleProof.verify( _merkleProof, merkleRoot, keccak256(abi.encodePacked(_address)) ); }
1,870,573
[ 1, 1893, 309, 729, 848, 312, 474, 316, 7981, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 848, 9762, 1013, 12, 2867, 389, 2867, 16, 1731, 1578, 8526, 745, 892, 389, 6592, 15609, 20439, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 6430, 13, 7010, 565, 288, 203, 3639, 327, 401, 5332, 9762, 329, ...
pragma solidity 0.5.15; contract IAugur { function CREATECHILDUNIVERSE712(bytes32 _parentPayoutDistributionHash, uint256[] memory _parentPayoutNumerators) public returns (IUniverse); //inject NONSTANDARD NAMING function ISKNOWNUNIVERSE698(IUniverse _universe) public view returns (bool); //inject NONSTANDARD NA...
inject NONSTANDARD NAMING
function ISFORKING853() public view returns (bool);
2,554,027
[ 1, 22170, 18708, 882, 18264, 423, 2192, 1360, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4437, 7473, 47, 1360, 7140, 23, 1435, 1071, 1476, 1135, 261, 6430, 1769, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns...
there will only ever be (roughly) 4 billion $GOLD earned through staking
uint256 public constant MAXIMUM_GLOBAL_GOLD = 4000000000 ether;
78,758
[ 1, 18664, 903, 1338, 14103, 506, 261, 2642, 715, 13, 1059, 20714, 285, 271, 43, 11846, 425, 1303, 329, 3059, 384, 6159, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 5034, 1071, 5381, 4552, 18605, 67, 20402, 67, 43, 11846, 273, 1059, 2787, 11706, 225, 2437, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; // modules import "@erc725/smart-contracts/contracts/ERC725X.sol"; import "@erc725/smart-contracts/contracts/ERC725Y.sol"; // interfaces import "../LSP1UniversalReceiver/ILSP1UniversalReceiver.sol"; import "../LSP1UniversalReceiver/ILSP1UniversalReceiverD...
* @dev Modifier restricting the call to the owner of the contract and the UniversalReceiverDelegate/
modifier onlyAllowed() { if (msg.sender != owner()) { address universalReceiverAddress = address( bytes20(_getData(_LSP1_UNIVERSAL_RECEIVER_DELEGATE_KEY)) ); require( ERC165CheckerCustom.supportsERC165Interface( msg.send...
909,375
[ 1, 9829, 13108, 310, 326, 745, 358, 326, 3410, 434, 326, 6835, 471, 326, 27705, 12952, 9586, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 5042, 1435, 288, 203, 3639, 309, 261, 3576, 18, 15330, 480, 3410, 10756, 288, 203, 5411, 1758, 26182, 12952, 1887, 273, 1758, 12, 203, 7734, 1731, 3462, 24899, 588, 751, 24899, 3045, 52, 21, 67, 10377, 31879, 67, ...
./full_match/1/0xDda46bF18eeb3E06E2F12975A3A184e40581A72f/sources/_prb/math/src/ud60x18/Casting.sol
@notice Casts an UD60x18 number into SD59x18. @dev Requirements: - x must be less than or equal to `uMAX_SD59x18`.
function intoSD59x18(UD60x18 x) pure returns (SD59x18 result) { uint256 xUint = UD60x18.unwrap(x); if (xUint > uint256(uMAX_SD59x18)) { revert PRBMath_UD60x18_IntoSD59x18_Overflow(x); } result = SD59x18.wrap(int256(xUint)); }
3,094,346
[ 1, 9735, 87, 392, 587, 40, 4848, 92, 2643, 1300, 1368, 15951, 6162, 92, 2643, 18, 225, 29076, 30, 300, 619, 1297, 506, 5242, 2353, 578, 3959, 358, 1375, 89, 6694, 67, 9903, 6162, 92, 2643, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 915, 1368, 9903, 6162, 92, 2643, 12, 12587, 4848, 92, 2643, 619, 13, 16618, 1135, 261, 9903, 6162, 92, 2643, 563, 13, 288, 203, 565, 2254, 5034, 619, 5487, 273, 587, 40, 4848, 92, 2643, 18, 318, 4113, 12, 92, 1769, 203, 565, ...
./full_match/43114/0x18e70C6485D3eF397f8C97D301e88B6977525123/sources/contracts/MathUtils.sol
add x^26 * (33! / 26!)
res += xi * 0x00000000000000000000005035ad900;
16,390,175
[ 1, 1289, 619, 66, 5558, 225, 261, 3707, 5, 342, 10659, 24949, 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, 5411, 400, 1011, 14087, 380, 374, 92, 12648, 12648, 9449, 3361, 4763, 361, 29, 713, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity 0.5.16; import "./ConvexStrategy2Token.sol"; contract ConvexStrategyHBTCMainnet is ConvexStrategy2Token { address public hbtc_unused; // just a differentiator for the bytecode constructor() public {} function initializeStrategy( address _storage, address _vault ) public initializer ...
Stakes everything the strategy holds into the reward pool/ this check is needed, because most of the SNX reward pools will revert if you try to stake(0).
function investAllUnderlying() internal onlyNotPausedInvesting { if(IERC20(underlying()).balanceOf(address(this)) > 0) { enterRewardPool(); } }
141,731
[ 1, 510, 3223, 7756, 326, 6252, 14798, 1368, 326, 19890, 2845, 19, 333, 866, 353, 3577, 16, 2724, 4486, 434, 326, 14204, 60, 19890, 16000, 903, 15226, 309, 1846, 775, 358, 384, 911, 12, 20, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 2198, 395, 1595, 14655, 6291, 1435, 2713, 1338, 1248, 28590, 3605, 10100, 288, 203, 565, 309, 12, 45, 654, 39, 3462, 12, 9341, 6291, 1435, 2934, 12296, 951, 12, 2867, 12, 2211, 3719, 405, 374, 13, 288, 203, 1377, 6103, ...
pragma solidity ^0.5.16; // Inheritance import "./Owned.sol"; import "./MixinResolver.sol"; import "./MixinSystemSettings.sol"; import "./interfaces/ILiquidations.sol"; // Libraries import "./SafeDecimalMath.sol"; // Internal references import "./EternalStorage.sol"; import "./interfaces/IPeriFin.sol"; import "./int...
/contracts/source/contracts/liquidations
contract Liquidations is Owned, MixinSystemSettings, ILiquidations { using SafeMath for uint; using SafeDecimalMath for uint; import "./Owned.sol"; import "./SafeDecimalMath.sol"; import "./EternalStorage.sol"; struct LiquidationEntry { uint deadline; address caller; } bytes32 priv...
12,708,900
[ 1, 19, 16351, 87, 19, 3168, 19, 16351, 87, 19, 549, 26595, 1012, 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, 16351, 511, 18988, 350, 1012, 353, 14223, 11748, 16, 490, 10131, 3163, 2628, 16, 467, 48, 18988, 350, 1012, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 565, 1450, 14060, 5749, 10477, 364, 2254, 31, 203, 203, 5666, 25165,...
./full_match/5/0x975Ce475Dfd8Bf708D6154397EE71aaecB706695/sources/BankNegara.sol
the person deploy the smart contract. so u basically have more than one person at time, aka this thing is not being connected to any sort of service, just local solidity contract nothing fancy
address public currentuser;
1,855,665
[ 1, 5787, 6175, 7286, 326, 13706, 6835, 18, 1427, 582, 23772, 1240, 1898, 2353, 1245, 6175, 622, 813, 16, 28105, 333, 7757, 353, 486, 3832, 5840, 358, 1281, 1524, 434, 1156, 16, 2537, 1191, 18035, 560, 6835, 5083, 31701, 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, 0, 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, 1071, 783, 1355, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.18; library strUtils { /* Converts given number to base58, limited by _maxLength symbols */ function toBase58(uint256 _value, uint8 _maxLength) internal pure returns (string) { string memory letters = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"; bytes...
change this to 0 for testnet / ropsten
uint blockoffset = 4000000;
14,116,522
[ 1, 3427, 333, 358, 374, 364, 1842, 2758, 342, 721, 84, 334, 275, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 1203, 3348, 273, 1059, 9449, 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, ...
pragma solidity 0.8.6; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract Staking3Months is OwnableUpgradeable { mapping(address => uint256) priva...
* Requirements: - `amount` Amount to be staked/
function stake(uint256 amount) external { require(depositEnabled,"Deposits not enabled"); _stake(msg.sender, amount); }
13,410
[ 1, 15465, 30, 300, 1375, 8949, 68, 16811, 358, 506, 384, 9477, 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, 384, 911, 12, 11890, 5034, 3844, 13, 203, 565, 3903, 203, 565, 288, 203, 3639, 2583, 12, 323, 1724, 1526, 10837, 758, 917, 1282, 486, 3696, 8863, 203, 3639, 389, 334, 911, 12, 3576, 18, 15330, 16, 3844, 1769, 203, 565...
./partial_match/56/0x282CF833fF20DdB93384AbA81eE63847f4d8366A/sources/PopulationTracker.sol
Implement a withdraw function to avoid locking your LINK in the contract
function withdrawLink() external onlyOwner { LinkTokenInterface link = LinkTokenInterface(chainlinkTokenAddress()); require( link.transfer(msg.sender, link.balanceOf(address(this))), "Unable to transfer" ); }
11,131,451
[ 1, 5726, 279, 598, 9446, 445, 358, 4543, 18887, 3433, 22926, 316, 326, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 598, 9446, 2098, 1435, 3903, 1338, 5541, 288, 203, 3639, 4048, 1345, 1358, 1692, 273, 4048, 1345, 1358, 12, 5639, 1232, 1345, 1887, 10663, 203, 3639, 2583, 12, 203, 5411, 1692, 18, 13866, 12, 3576, 18, 15330, 16, 1692, ...
// Dependency file: @openzeppelin/contracts/utils/Address.sol // SPDX-License-Identifier: MIT // pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [// importANT] * ==== ...
* Redeems a given amount of SetToken. @param _setToken Address of the SetToken to be redeemed @param _amount Amount of SetToken to be redeemed/
function _redeemExactSet(ISetToken _setToken, uint256 _amount) internal returns (uint256) { _setToken.safeTransferFrom(msg.sender, address(this), _amount); basicIssuanceModule.redeem(_setToken, _amount, address(this)); }
2,571,890
[ 1, 426, 323, 7424, 279, 864, 3844, 434, 1000, 1345, 18, 225, 389, 542, 1345, 377, 5267, 434, 326, 1000, 1345, 358, 506, 283, 24903, 329, 225, 389, 8949, 4202, 16811, 434, 1000, 1345, 358, 506, 283, 24903, 329, 19, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 266, 24903, 14332, 694, 12, 45, 694, 1345, 389, 542, 1345, 16, 2254, 5034, 389, 8949, 13, 2713, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 389, 542, 1345, 18, 4626, 5912, 1265, 12, 3576, 18, 15330, 16, 1758, 12,...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; // https://etherscan.io/address/0xa478c2975ab1ea89e8196811f51a7b7ade33eb11#readContract contract UniswapETHDAIPoolMock is ERC20("DAI", "DAI") { uint256 private initBlock = block.number; // ...
ERROR: type should be string, got " https:etherscan.io/address/0xa478c2975ab1ea89e8196811f51a7b7ade33eb11#readContract DAI / ETH"
contract UniswapETHDAIPoolMock is ERC20("DAI", "DAI") { uint256 private initBlock = block.number; function getReserves() public view returns ( uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast ) pragma solidity >=0.6.0 <0.8.0; ...
14,035,425
[ 1, 4528, 30, 546, 414, 4169, 18, 1594, 19, 2867, 19, 20, 6995, 24, 8285, 71, 5540, 5877, 378, 21, 24852, 6675, 73, 28, 3657, 9470, 2499, 74, 10593, 69, 27, 70, 27, 2486, 3707, 24008, 2499, 896, 8924, 463, 18194, 342, 512, 2455, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1351, 291, 91, 438, 1584, 44, 9793, 2579, 1371, 9865, 353, 4232, 39, 3462, 2932, 9793, 45, 3113, 315, 9793, 45, 7923, 288, 203, 565, 2254, 5034, 3238, 1208, 1768, 273, 1203, 18, 2696, 31, 203, 203, 565, 445, 31792, 264, ...
pragma solidity ^0.4.18; /** * IOwnership * * Perminent ownership * * #created 01/10/2017 * #author Frank Bonnet */ interface IOwnership { /** * Returns true if `_account` is the current owner * * @param _account The address to test against */ function isOwner(addre...
* Whitelist authentication list #created 04/10/2017 #author Frank Bonnet/
contract Whitelist is IWhitelist, IAuthenticator, TransferableOwnership { } struct Entry { uint datetime; bool accepted; uint index; } mapping(address => Entry) internal list; address[] internal listIndex; function hasEntry(address _account) public view returns (bool) { ...
7,290,778
[ 1, 18927, 5107, 666, 2522, 16486, 19, 2163, 19, 31197, 2869, 478, 11500, 605, 265, 2758, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3497, 7523, 353, 467, 18927, 16, 467, 18977, 16, 12279, 429, 5460, 12565, 288, 203, 203, 97, 203, 565, 1958, 3841, 288, 203, 3639, 2254, 3314, 31, 203, 3639, 1426, 8494, 31, 203, 3639, 2254, 770, 31, 203, 565, 289, 203, ...
// Base on aave-protocol // https://github.com/aave/aave-protocol/blob/e8d020e97/contracts/misc/ChainlinkProxyPriceProvider.sol // Changes: // - Upgrade to solidity 0.6.11 // - Remove fallbackOracle // - Store ethAddress (for potential WETH support) // - Add getETHPriceInAsset // - Followed solidity naming conventions ...
@notice Gets ETH price in terms of asset, which is the reciprocal of getAssetPrice the number is not reounded by the asset actual number of decimal places expect proper rounding is done outside of this function and getAssetPrice returns number in WAD format @param asset The asset address
function getETHPriceInAsset(address asset) external view override returns (uint256) { if (asset == _ethAddress) { return 1 ether; uint256 assetPrice = getAssetPrice(asset); uint256 price = assetPrice.reciprocal(); require(price > 0, 'INVALID_PRICE'); ...
1,028,454
[ 1, 3002, 512, 2455, 6205, 316, 6548, 434, 3310, 16, 1492, 353, 326, 5863, 30101, 434, 24689, 5147, 540, 326, 1300, 353, 486, 283, 12002, 635, 326, 3310, 3214, 1300, 434, 6970, 12576, 540, 4489, 5338, 13885, 353, 2731, 8220, 434, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 1584, 2500, 3057, 382, 6672, 12, 2867, 3310, 13, 3903, 1476, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 309, 261, 9406, 422, 389, 546, 1887, 13, 288, 203, 5411, 327, 404, 225, 2437, 31, 203, 5411, 2254, 50...
pragma solidity ^0.4.0; // In this example, calling 'Final.kill'would only trigger 'Base 2.kill' not reaching Base 1 contract owned { function owned() { owner = msg.sender; } address owner; } contract mortal is owned { function kill() { if (msg.sender == owner) selfdestruct(owner); } } contract Base1 is morta...
In this example, calling 'Final.kill'would only trigger 'Base 2.kill' not reaching Base 1
contract owned { address owner; function owned() { owner = msg.sender; } }
938,767
[ 1, 382, 333, 3454, 16, 4440, 296, 7951, 18, 16418, 11, 91, 1006, 1338, 3080, 296, 2171, 576, 18, 16418, 11, 486, 9287, 310, 3360, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 16199, 288, 203, 202, 2867, 3410, 31, 202, 203, 202, 915, 16199, 1435, 288, 3410, 273, 1234, 18, 15330, 31, 289, 203, 97, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/100/0x44B0E0b813371a1168c5d9d47DEA074c68116DfD/sources/home/hellwolf/Projects/superfluid/protocol-monorepo/packages/ethereum-contracts/contracts/agreements/InstantDistributionAgreementV1.sol
@dev IInstantDistributionAgreementV1.updateSubscription implementation before-hook callback update publisher data if the subscription exist and not approved, update the approved units amount update total units if the subscription exists and approved, update the pending units amount update pending subscription units of...
function updateSubscription( ISuperfluidToken token, uint32 indexId, address subscriber, uint128 units, bytes calldata ctx ) external override returns(bytes memory newCtx) { _SubscriptionOperationVars memory vars; AgreementLibrary.Callb...
14,280,118
[ 1, 45, 10675, 9003, 17420, 58, 21, 18, 2725, 6663, 4471, 1865, 17, 4476, 1348, 1089, 12855, 501, 309, 326, 4915, 1005, 471, 486, 20412, 16, 1089, 326, 20412, 4971, 3844, 1089, 2078, 4971, 309, 326, 4915, 1704, 471, 20412, 16, 1089, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1089, 6663, 12, 203, 3639, 467, 8051, 2242, 1911, 1345, 1147, 16, 203, 3639, 2254, 1578, 770, 548, 16, 203, 3639, 1758, 9467, 16, 203, 3639, 2254, 10392, 4971, 16, 203, 3639, 1731, 745, 892, 1103, 203, 565, 262, 203, ...
./partial_match/1/0xB2A36419d07192Ac8D8CC40594C471F29e074e46/sources/contracts/OKLGFaaSTimePricing.sol
* Returns the latest ETH/USD price with returned value at 18 decimals/
function _getLatestETHPrice() internal view returns (uint256) { uint8 decimals = priceFeed.decimals(); (, int256 price, , , ) = priceFeed.latestRoundData(); return uint256(price) * (10**18 / 10**decimals); }
4,228,573
[ 1, 1356, 326, 4891, 512, 2455, 19, 3378, 40, 6205, 598, 2106, 460, 622, 6549, 15105, 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, 225, 445, 389, 588, 18650, 1584, 2500, 3057, 1435, 2713, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 2254, 28, 15105, 273, 6205, 8141, 18, 31734, 5621, 203, 565, 261, 16, 509, 5034, 6205, 16, 269, 269, 262, 273, 6205, 8141, ...
pragma solidity ^0.7.0; import "truffle/Assert.sol"; import "truffle/DeployedAddresses.sol"; import "../contracts/Buying.sol"; contract TestBuying { // The address of the buying contract to be tested Buying buying = Buying(DeployedAddresses.Buying()); // The id of the pet that will be used for testing ...
Testing retrieval of a single pet's owner
function testGetAdopterAddressByPetId() public { address adopter = buying.buyers(expectedPetId); Assert.equal(adopter, expectedAdopter, "Owner of the expected pet should be this contract"); }
2,531,816
[ 1, 22218, 22613, 434, 279, 2202, 293, 278, 1807, 3410, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1842, 967, 1871, 3838, 264, 1887, 858, 52, 278, 548, 1435, 1071, 288, 203, 203, 3639, 1758, 1261, 3838, 264, 273, 30143, 310, 18, 70, 9835, 414, 12, 3825, 52, 278, 548, 1769, 203, 203, 565, 5452, 18, 9729, 12, 361, ...
//Address: 0x2072d16c15978a7050a93b62a315e1caa13c6c27 //Contract name: TaskManager //Balance: 0.468635899121845162 Ether //Verification Date: 5/11/2018 //Transacion Count: 26 // CODE STARTS HERE pragma solidity ^0.4.23; /******* USING Registry ************************** Gives the inherting contract access to: ...
Number of basis points to reward caller. 1 = .01%, 10 = .1%, 100 = 1%. Capped at .1%. Number of basis points to reward caller. 1 = .01%, 10 = .1%, 100 = 1%. Capped at 1%. How much to pay for games to start and end. These values are capped at 1 Ether. admin events base events task events Construct sets the registry and...
{ uint constant public version = 1; uint public totalRewarded; uint public issueDividendRewardBips; uint public sendProfitsRewardBips; uint public monarchyStartReward; uint public monarchyEndReward; event Created(uint time); event DailyLimitChanged(uint time, address indexed owner,...
1,071,781
[ 1, 1854, 434, 10853, 3143, 358, 19890, 4894, 18, 404, 273, 263, 1611, 9, 16, 1728, 273, 263, 21, 9, 16, 2130, 273, 404, 9, 18, 11200, 1845, 622, 263, 21, 9, 18, 3588, 434, 10853, 3143, 358, 19890, 4894, 18, 404, 273, 263, 1611, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 95, 203, 565, 2254, 5381, 1071, 1177, 273, 404, 31, 203, 565, 2254, 1071, 2078, 17631, 17212, 31, 203, 203, 565, 2254, 1071, 5672, 7244, 26746, 17631, 1060, 38, 7146, 31, 203, 565, 2254, 1071, 1366, 626, 18352, 17631, 1060, 38, 7...
./partial_match/1/0x4bA358F62c9f385E62D86812E2E914B82a5B5e8e/sources/PEPEPOPE.sol
set as marketing wallet
marketingWallet = address(0x7E9A1469c540d27F87F2Df9dFaC11494f735E908);
15,952,651
[ 1, 542, 487, 13667, 310, 9230, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 13667, 310, 16936, 273, 1758, 12, 20, 92, 27, 41, 29, 37, 3461, 8148, 71, 6564, 20, 72, 5324, 42, 11035, 42, 22, 40, 74, 29, 72, 29634, 39, 2499, 7616, 24, 74, 27, 4763, 41, 29, 6840, 1769, 225, 2, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <=0.9.0; pragma experimental ABIEncoderV2; import { IAaveV2LendingPoolAddressesProvider } from "./IAaveV2LendingPoolAddressesProvider.sol"; struct TokenData { string symbol; address tokenAddress; } struct ReserveConfigurationData { uint256 decimal...
solhint-disable-next-line func-name-mixedcase
interface IAaveV2ProtocolDataProvider { function ADDRESSES_PROVIDER() external view returns (IAaveV2LendingPoolAddressesProvider); function getAllReservesTokens() external view returns (TokenData[] memory); function getAllATokens() external view returns (TokenData[] memory); function getReserveConfig...
14,124,957
[ 1, 18281, 11317, 17, 8394, 17, 4285, 17, 1369, 1326, 17, 529, 17, 19562, 3593, 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, 5831, 467, 37, 836, 58, 22, 5752, 20757, 288, 203, 565, 445, 11689, 7031, 1090, 55, 67, 26413, 1435, 3903, 1476, 1135, 261, 15188, 836, 58, 22, 48, 2846, 2864, 7148, 2249, 1769, 203, 203, 565, 445, 5514, 607, 264, 3324, 5157, 1...
./full_match/5/0x9E94010A00dE5fb332B66372B29e69B09fa8373e/sources/HashGame.sol
console.logBytes1(getCharAt("123456789", 8));
function playGame() public { require(hasValidInsurance(), "User does not have valid insurance"); require(!hasPlayedMaxGameRound(), "User has played maximum rounds of game"); uint256 playedRound = userToGameMap[msg.sender].length; uint256 lastStakedValue = 0; if (playedRoun...
1,866,910
[ 1, 8698, 18, 1330, 2160, 21, 12, 588, 2156, 861, 2932, 28462, 20277, 3113, 1725, 10019, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6599, 12496, 1435, 1071, 288, 203, 3639, 2583, 12, 5332, 1556, 5048, 295, 1359, 9334, 315, 1299, 1552, 486, 1240, 923, 2763, 295, 1359, 8863, 203, 3639, 2583, 12, 5, 5332, 11765, 329, 2747, 12496, 11066, 9334, 315, 1299, ...
./full_match/5/0x88E6A8bA858c86D4c395ed44797fA6Abf3a99fa7/sources/src/lib/SlotsDataTypes.sol
Amount of Quote Token related to the sale of options Up & Down.
uint256 totalQuoteTokenInContest;
11,622,902
[ 1, 6275, 434, 21695, 3155, 3746, 358, 326, 272, 5349, 434, 702, 1948, 473, 10077, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 2078, 10257, 1345, 382, 660, 395, 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, ...
pragma solidity ^0.8.0; import "../tokens/IERC20.sol"; import "../tokens/IERC721Enumerable.sol"; import "../utils/Ownable.sol"; import "../utils/ReentrancyGuard.sol"; interface Minter { function mint(address to, uint256 tokenId) external; } contract WaveLockSaleWithMint is Ownable, ReentrancyGuard { address publ...
Lock this address for the phase.
blockLock[wave][msg.sender] = true;
13,079,500
[ 1, 2531, 333, 1758, 364, 326, 6855, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1203, 2531, 63, 17838, 6362, 3576, 18, 15330, 65, 273, 638, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/8453/0x8101F97D399e110067Ff785b783d61545B5f18D2/sources/contracts/Quote.sol
@dev Lock implementation contract by default. Can be overridden for test harnesses.
function _lockImplementation() internal pure virtual returns (bool) { return true; }
16,766,242
[ 1, 2531, 4471, 6835, 635, 805, 18, 4480, 506, 11000, 364, 1842, 366, 1303, 403, 281, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 739, 13621, 1435, 2713, 16618, 5024, 1135, 261, 6430, 13, 288, 203, 3639, 327, 638, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/1/0xEda7Ca698cF02E5b95F814266b7db1665E54Bc13/sources/browser/ss.sol
Amount that is paid for staking 1 second
uint public rewardAmount;
9,674,079
[ 1, 6275, 716, 353, 30591, 364, 384, 6159, 404, 2205, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 1071, 19890, 6275, 31, 12900, 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/100/0x0Ac7ac8C6Eb5BbBEbE2d02E6B6f5B2B8e05759f1/sources/contracts/LP.sol
* @notice Indicate the game `gameId` as canceled. @param gameId the game ID/
function cancelGame(uint256 gameId) external restricted(this.cancelGame.selector) { Game storage game = _getGame(gameId); if (game.canceled) revert GameAlreadyCanceled(); lockedLiquidity -= game.lockedLiquidity; game.canceled = true; emit GameCanceled(gam...
14,285,406
[ 1, 3866, 2659, 326, 7920, 1375, 13957, 548, 68, 487, 17271, 18, 282, 7920, 548, 326, 7920, 1599, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3755, 12496, 12, 11890, 5034, 7920, 548, 13, 203, 3639, 3903, 203, 3639, 15693, 12, 2211, 18, 10996, 12496, 18, 9663, 13, 203, 565, 288, 203, 3639, 14121, 2502, 7920, 273, 389, 588, 12496, 12, 13957, 548, 1769, 203, 363...
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; /** * @title Token * @dev BEP20 compatible token. */ contract Token is ERC20Burnable, Ownable { /** * @dev Mints all tokens to...
* @title Token @dev BEP20 compatible token./
contract Token is ERC20Burnable, Ownable { constructor( uint256 amount_, string memory name_, string memory symbol_ pragma solidity 0.8.10; ) ERC20(name_, symbol_) { _mint(_msgSender(), amount_); } function getOwner() external view returns (address) { return owner(); } function decimal...
14,124,464
[ 1, 1345, 225, 9722, 52, 3462, 7318, 1147, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3155, 353, 4232, 39, 3462, 38, 321, 429, 16, 14223, 6914, 288, 203, 225, 3885, 12, 203, 565, 2254, 5034, 3844, 67, 16, 203, 565, 533, 3778, 508, 67, 16, 203, 565, 533, 3778, 3273, 67, 203, 683, 9454, 18035, 560, 374, 1...
pragma solidity ^0.4.18; /** * @title MultiOwnable * @dev The MultiOwnable contract has owners addresses and provides basic authorization control * functions, this simplifies the implementation of "users permissions". */ contract MultiOwnable { address public manager; // address used to set owners address[...
TOKENOPS PLAFTORM RESERVED AMOUNT
uint256 public constant TOKENOPSPLATFORM_JOINTTOKENS = 25000000;
6,477,457
[ 1, 8412, 3665, 55, 25564, 4464, 3466, 2438, 19501, 432, 5980, 5321, 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, 565, 2254, 5034, 1071, 5381, 14275, 3665, 3118, 12190, 4983, 67, 18800, 23187, 55, 273, 6969, 9449, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.24; import "../../open-zeppelin/contracts/math/SafeMath.sol"; import "./OwnerStandardERC20.sol"; import "./ERC20Exchangable.sol"; import "./OperationHolder.sol"; /** * @title Basic treasury smart contract * @author Biglabs Pte. Ltd. * @dev : Treasury smart contract - use for Buy/Sell tokens */...
* @dev Get number of Mozo ERC20 tokens in this smart contract/
function noTokens() public view returns(uint) { return operation.getERC20().totalSupply(); }
13,089,346
[ 1, 967, 1300, 434, 19058, 83, 4232, 39, 3462, 2430, 316, 333, 13706, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1158, 5157, 1435, 1071, 1476, 1135, 12, 11890, 13, 288, 203, 202, 202, 2463, 1674, 18, 588, 654, 39, 3462, 7675, 4963, 3088, 1283, 5621, 203, 202, 97, 203, 202, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
Update total supply (100000 for example)
totalSupply = 18000000000000000000000;
10,050,145
[ 1, 1891, 2078, 14467, 261, 21, 11706, 364, 3454, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2078, 3088, 1283, 273, 6549, 12648, 12648, 11706, 31, 7682, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./partial_match/1/0xcC48E741996B0d77b38d9dC2bf9217e65E368E06/sources/Mailbox.sol
* @notice Returns the validator ECDSA signature at `_index`. @dev Assumes signatures are sorted by validator @dev Assumes `_metadata` encodes `threshold` signatures. @dev Assumes `_index` is less than `threshold` @param _metadata ABI encoded Multisig ISM metadata. @param _index The index of the signature to return. @re...
function signatureAt(bytes calldata _metadata, uint256 _index) internal pure returns (bytes calldata) { uint256 _start = SIGNATURES_OFFSET + (_index * SIGNATURE_LENGTH); uint256 _end = _start + SIGNATURE_LENGTH; return _metadata[_start:_end]; }
4,297,999
[ 1, 1356, 326, 4213, 7773, 19748, 3372, 622, 1375, 67, 1615, 8338, 225, 25374, 14862, 854, 3115, 635, 4213, 225, 25374, 1375, 67, 4165, 68, 16834, 1375, 8699, 68, 14862, 18, 225, 25374, 1375, 67, 1615, 68, 353, 5242, 2353, 1375, 8699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3372, 861, 12, 3890, 745, 892, 389, 4165, 16, 2254, 5034, 389, 1615, 13, 203, 3639, 2713, 203, 3639, 16618, 203, 3639, 1135, 261, 3890, 745, 892, 13, 203, 565, 288, 203, 3639, 2254, 5034, 389, 1937, 273, 12057, 10511, ...
./full_match/42/0xeE969ACAfe781291cEF3DE8FadB212d4Ea93EbF1/sources/browser/tests/core/NBUNIERC20.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 NBUNIERC20 is Context, INBUNIERC20, Ownable { using SafeMath for uint256; using Address for address; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; event LiquidityAddition(address indexed dst, uint value); event LPT...
16,262,203
[ 1, 13621, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096, 316, 279, 10379, 6835, 1450, 288, 67, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 20096, 10377, 654, 39, 3462, 353, 1772, 16, 2120, 38, 10377, 654, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 12, 2867, 516, ...
./full_match/1/0x7e5E4eB92aE9e5E47a04e832d029a2E4186DD750/sources/Users/elenaderymova/projects/work/4irelabs/rock3t-prototype-contracts/contracts/LiquidVault.sol
Dev note: increase gasLimit to be able run up to 100 iterations
function insertUnclaimedBatchFor(address[] memory _holders, uint[] memory _amounts, uint[] memory _timestamps) public onlyOwner { require(!batchInsertionFinished, "R3T: Manual batch insertion is no longer allowed."); require( _holders.length == _holders.length && _timestamps.length == _h...
17,114,324
[ 1, 8870, 4721, 30, 10929, 16189, 3039, 358, 506, 7752, 1086, 731, 358, 2130, 11316, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2243, 984, 14784, 329, 4497, 1290, 12, 2867, 8526, 3778, 389, 9000, 16, 2254, 8526, 3778, 389, 8949, 87, 16, 2254, 8526, 3778, 389, 25459, 13, 1071, 1338, 5541, 288, 203, 3639, 2583, 12, 5, 5303, 29739, 10577, 16, 315, ...
pragma solidity 0.5.7; // Copyright BigchainDB GmbH and Ocean Protocol contributors // SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) // Code is Apache-2.0 and docs are CC-BY-4.0 import './utils/Deployer.sol'; import './interfaces/IERC20Template.sol'; /** * @title DTFactory contract * @author Ocean Protocol Te...
* @title DTFactory contract @author Ocean Protocol Team @dev Implementation of Ocean DataTokens Factory DTFactory deploys DataToken proxy contracts. New DataToken proxy contracts are links to the template contract's bytecode. Proxy contract functionality is based on Ocean Protocol custom implementation o...
contract DTFactory is Deployer { address private tokenTemplate; address private communityFeeCollector; uint256 private currentTokenCount = 1; event TokenCreated( address indexed newTokenAddress, address indexed templateAddress, string indexed tokenName ); event TokenReg...
2,567,424
[ 1, 9081, 1733, 6835, 225, 531, 31393, 4547, 10434, 225, 25379, 434, 531, 31393, 1910, 5157, 7822, 1377, 10696, 1733, 5993, 383, 1900, 1910, 1345, 2889, 20092, 18, 1377, 1166, 1910, 1345, 2889, 20092, 854, 4716, 358, 326, 1542, 6835, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10696, 1733, 353, 7406, 264, 288, 203, 565, 1758, 3238, 1147, 2283, 31, 203, 565, 1758, 3238, 19833, 14667, 7134, 31, 203, 565, 2254, 5034, 3238, 23719, 1380, 273, 404, 31, 203, 203, 565, 871, 3155, 6119, 12, 203, 3639, 17...
./full_match/80001/0x14dd9993Cd065f34B2a892EfaaAdbe03Cc200702/sources/StakingContract.sol
0.05 MATIC on POLYGON
uint256 private PREMIUM_PRICE = 0.05 ether;
854,804
[ 1, 20, 18, 6260, 490, 11781, 603, 19383, 30317, 673, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 3238, 7071, 7492, 2799, 67, 7698, 1441, 273, 374, 18, 6260, 225, 2437, 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,...
./partial_match/56/0x20E4dBa7E96ea3890B4dDf85a8fdEDf584c50b8e/sources/VampireToken.sol
VampireToken with Governance.
contract VampireToken is BEP20('Vampire Token', 'VAMPIRE') { function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); } function _transfer(address sender, address recipient, uint256 amount) internal virtual ove...
11,091,420
[ 1, 58, 931, 577, 1345, 598, 611, 1643, 82, 1359, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 776, 931, 577, 1345, 353, 9722, 52, 3462, 2668, 58, 931, 577, 3155, 2187, 296, 58, 2192, 1102, 862, 6134, 288, 203, 565, 445, 312, 474, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1071, 1338, 5541, 288, 203, 3639,...
pragma solidity >=0.0; import "../Tokens/StandardToken.sol"; /// @title Outcome token contract - Issuing and revoking outcome tokens /// @author Stefan George - <stefan@gnosis.pm> contract OutcomeToken is StandardToken { using Math for *; /* * Events */ event Issuance(address indexed owner, ui...
@dev Events contract revokes tokens for address. Returns success @param _for Address of token holder @param outcomeTokenCount Number of tokens to revoke
function revoke(address _for, uint outcomeTokenCount) public isEventContract { balances[_for] = balances[_for].sub(outcomeTokenCount); totalTokens = totalTokens.sub(outcomeTokenCount); emit Revocation(_for, outcomeTokenCount); }
1,831,230
[ 1, 3783, 6835, 5588, 601, 281, 2430, 364, 1758, 18, 2860, 2216, 225, 389, 1884, 5267, 434, 1147, 10438, 225, 12884, 1345, 1380, 3588, 434, 2430, 358, 18007, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18007, 12, 2867, 389, 1884, 16, 2254, 12884, 1345, 1380, 13, 203, 3639, 1071, 203, 3639, 15805, 8924, 203, 565, 288, 203, 3639, 324, 26488, 63, 67, 1884, 65, 273, 324, 26488, 63, 67, 1884, 8009, 1717, 12, 21672, 1345, ...
./partial_match/42/0x2ef5240F19B45C02c6eb53211e034bD504Ea1f82/sources/DSProtestPause.sol
a tx can be protested against if max 1/2 of the time until earliest execution has passed
uint256 constant public protestEnd = 500;
9,087,975
[ 1, 69, 2229, 848, 506, 11121, 3149, 5314, 309, 943, 404, 19, 22, 434, 326, 813, 3180, 20674, 4588, 711, 2275, 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, 5034, 5381, 1071, 450, 3813, 1638, 9079, 273, 6604, 31, 5375, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.21; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; } contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals is t...
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 TokenERC20 { string public name; string public symbol; uint8 public decimals = 18; uint256 public totalSupply; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; event Transfer(address indexed from, address indexed to...
6,659,009
[ 1, 4782, 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, 5066, 7712, 1220, 19527, 7712, 2973...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3155, 654, 39, 3462, 288, 203, 565, 533, 1071, 508, 31, 203, 565, 533, 1071, 3273, 31, 203, 565, 2254, 28, 1071, 15105, 273, 6549, 31, 203, 565, 2254, 5034, 1071, 2078, 3088, 1283, 31, 203, 203, 565, 2874, 261, 2867, 516...
./full_match/1/0xE7B4451e568CFeCa708aD17dFE0918D0905dc811/sources/contracts/vault-base/VaultBaseInternal.sol
The Executor runs as the Vault. I'm not sure this is ideal but it makes writing executors easy Other solutions are 1. The executor returns transactions to be executed which are then assembly called by the this 2. We write the executor code in the vault Get value before for CPIT Make the external call Get value after f...
function _execute( ExecutorIntegration integration, bytes memory encodedWithSelectorPayload ) internal { (, uint valueBefore) = _getVaultValue(); VaultBaseStorage.Layout storage l = VaultBaseStorage.layout(); address executor = l.registry.executors(integration); ...
3,152,422
[ 1, 1986, 13146, 7597, 487, 326, 17329, 18, 467, 17784, 486, 3071, 333, 353, 23349, 1496, 518, 7297, 7410, 1196, 13595, 12779, 4673, 22567, 854, 404, 18, 1021, 6601, 1135, 8938, 358, 506, 7120, 1492, 854, 1508, 19931, 2566, 635, 326, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 8837, 12, 203, 3639, 13146, 15372, 12040, 16, 203, 3639, 1731, 3778, 3749, 1190, 4320, 6110, 203, 565, 262, 2713, 288, 203, 3639, 261, 16, 2254, 460, 4649, 13, 273, 389, 588, 12003, 620, 5621, 203, 203, 3639, 17329...
// SPDX-License-Identifier: MIT pragma solidity 0.6.2; import "./KryptoRealState.sol"; import "../zokrates/code/square/verifier.sol"; /** * @dev Contract module to mint KryptoRealState tokens. Sellers are * entitle to list their properties only upon presenting a valid * proof of ownership based on zk-SNARKs. * ...
Array with all solutions, used for enumeration
Solution[] private _solutions;
1,005,750
[ 1, 1076, 598, 777, 22567, 16, 1399, 364, 16836, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 29172, 8526, 3238, 389, 18281, 6170, 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,...
./partial_match/1/0xa93D3C92D2CfeA09b9c247444A0C1dB5F7707F78/sources/SHIBEMPEROR.sol
SHIBEMPEROR Taxes 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488DBalances tracker
contract SHIBEMPEROR is Context,IERC20, Ownable{ using Address for address; string private _name = "SHIBEMPEROR"; string private _symbol = "SHIBEMP"; uint8 private _decimals = 18; uint256 totalFeeFortx = 0; uint256 maxWalletTreshold = 2; uint256 maxTxTreshold = 1; uint256 private swapTreshold =1; uint256 public requir...
11,017,991
[ 1, 2664, 13450, 3375, 3194, 916, 399, 10855, 374, 92, 27, 69, 26520, 72, 4313, 5082, 38, 24, 71, 42, 25, 5520, 27, 5520, 72, 42, 22, 39, 25, 72, 37, 7358, 24, 71, 26, 6162, 42, 3247, 5482, 2290, 26488, 9745, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 6122, 13450, 3375, 3194, 916, 353, 1772, 16, 45, 654, 39, 3462, 16, 14223, 6914, 95, 203, 9940, 5267, 364, 1758, 31, 203, 1080, 3238, 389, 529, 273, 315, 2664, 13450, 3375, 3194, 916, 14432, 203, 1080, 3238, 389, 7175, 273...
pragma solidity ^0.4.15; /* Copyright (c) 2016 Smart Contract Solutions, Inc. 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 ...
Function called by Hydro API to check if the partner has validated The partners value and data must match and it must be less than a day since the last authentication/
function validateAuthentication(address _sender, uint _challenge, uint _partnerId) public constant returns (bool _isValid) { if (partnerMap[_partnerId][_sender].value == hydroPartnerMap[_partnerId][_sender].value && block.timestamp < hydroPartnerMap[_partnerId][_sender].timestamp && partnerM...
12,753,769
[ 1, 2083, 2566, 635, 14881, 9005, 1491, 358, 866, 309, 326, 19170, 711, 10266, 1021, 1087, 9646, 460, 471, 501, 1297, 845, 471, 518, 1297, 506, 5242, 2353, 279, 2548, 3241, 326, 1142, 5107, 19, 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, 565, 445, 1954, 6492, 12, 2867, 389, 15330, 16, 2254, 389, 25092, 16, 2254, 389, 31993, 548, 13, 1071, 5381, 1135, 261, 6430, 389, 26810, 13, 288, 203, 3639, 309, 261, 31993, 863, 63, 67, 31993, 548, 6362, 67, 15330, 8009, 1132, ...
./full_match/1/0x6Ae49Cc128226BbEA767b8a91db6aeA9Ae3F1816/sources/contracts/BitstraySantasToken.sol
* @notice Mint a Bitstray Santa to provided address if project reserve is not 0, Used to distriute reserve @dev Call _mintTo with the to address(es)./
function mintTo(address to) public override returns (uint256) { require(totalSupply() < MAX_BITSTRAYSANTAS, "Mint would exceed max supply of Bitstray Santas"); require(remainingReserve() > 0, "Project reserved mint exceeded"); if (totalSupply() < MAX_BITSTRAYSANTAS) { reserveMint...
9,792,337
[ 1, 49, 474, 279, 6539, 701, 528, 348, 27677, 358, 2112, 1758, 309, 1984, 20501, 353, 486, 374, 16, 10286, 358, 1015, 16857, 624, 20501, 225, 3049, 389, 81, 474, 774, 598, 326, 358, 1758, 12, 281, 2934, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 774, 12, 2867, 358, 13, 1071, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 4963, 3088, 1283, 1435, 411, 4552, 67, 15650, 882, 6722, 55, 6856, 3033, 16, 315, 49, 474, 4102, 9943, 943, 14467, 43...
// Dependency file: @openzeppelin/contracts/token/ERC20/IERC20.sol // SPDX-License-Identifier: MIT // pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() ext...
* @dev Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address./
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue)); return true; }
10,971,844
[ 1, 3641, 6478, 7033, 3304, 326, 1699, 1359, 17578, 358, 1375, 87, 1302, 264, 68, 635, 326, 4894, 18, 1220, 353, 392, 10355, 358, 288, 12908, 537, 97, 716, 848, 506, 1399, 487, 279, 20310, 360, 367, 364, 9688, 11893, 316, 288, 45, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 10929, 7009, 1359, 12, 2867, 17571, 264, 16, 2254, 5034, 3096, 620, 13, 1071, 5024, 1135, 261, 6430, 13, 288, 203, 3639, 389, 12908, 537, 12, 3576, 18, 15330, 16, 17571, 264, 16, 389, 5965, 6872, 63, 3576, 18, 15330, ...
pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uin...
0xBTC is 0xb6ed7644c69416d67b522e20bc294a9a9b405b31;
{ using SafeMath for uint; address public kingContract; address public minedToken; constructor(address mToken, address mkContract) public { minedToken = mToken; kingContract = mkContract; } function getBalance() view public returns (uint) { return ERC20Interface(minedToken).balanc...
1,656,658
[ 1, 20, 20029, 15988, 353, 374, 6114, 26, 329, 27, 22087, 71, 8148, 24, 2313, 72, 9599, 70, 25, 3787, 73, 3462, 13459, 5540, 24, 69, 29, 69, 29, 70, 24, 6260, 70, 6938, 31, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 203, 203, 225, 1450, 14060, 10477, 364, 2254, 31, 203, 203, 203, 282, 1758, 1071, 417, 310, 8924, 31, 203, 203, 282, 1758, 1071, 1131, 329, 1345, 31, 203, 203, 203, 203, 225, 3885, 12, 2867, 312, 1345, 16, 1758, 5028, ...
./full_match/1/0x2C5e00ec69b27740CB8155736390ee7e74d279DB/sources/contracts/strategies/HStrategy.sol
@notice pulling missing tokens from erc20 vault on money and uniV3 vaults @param missingTokenAmounts the amount of missing tokens @param restrictions the restrictions of the amount of tokens to be transferred @param moneyVaultOptions additional parameters for pulling for `pull` method for money vault @param erc20Vault...
function _pullMissingTokens( TokenAmounts memory missingTokenAmounts, RebalanceTokenAmounts memory restrictions, bytes memory moneyVaultOptions, IIntegrationVault erc20Vault_, IIntegrationVault moneyVault_, IUniV3Vault uniV3Vault_, address[] memory tokens_ ...
16,590,861
[ 1, 13469, 310, 3315, 2430, 628, 6445, 71, 3462, 9229, 603, 15601, 471, 7738, 58, 23, 9229, 87, 225, 3315, 1345, 6275, 87, 326, 3844, 434, 3315, 2430, 225, 17499, 326, 17499, 434, 326, 3844, 434, 2430, 358, 506, 906, 4193, 225, 15601...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13469, 4841, 5157, 12, 203, 3639, 3155, 6275, 87, 3778, 3315, 1345, 6275, 87, 16, 203, 3639, 868, 12296, 1345, 6275, 87, 3778, 17499, 16, 203, 3639, 1731, 3778, 15601, 12003, 1320, 16, 203, 3639, 467, 15372, 12003, ...
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; pragma abicoder v2; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; /** * @title AirSwap Server Registry * @notice ...
* @notice Remove all tokens supported by the caller/
function removeAllTokens() external { EnumerableSet.AddressSet storage supportedTokenList = supportedTokens[msg.sender]; uint256 length = supportedTokenList.length(); require(length > 0, "NO_TOKENS_TO_REMOVE"); address[] memory tokenList = new address[](length); for (uint256 i = length; i >...
12,070,906
[ 1, 3288, 777, 2430, 3260, 635, 326, 4894, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12787, 5157, 1435, 3903, 288, 203, 565, 6057, 25121, 694, 18, 1887, 694, 2502, 3260, 1345, 682, 273, 203, 1377, 3260, 5157, 63, 3576, 18, 15330, 15533, 203, 565, 2254, 5034, 769, 273, 3260, 1345, 682, 18, 2469, 5621, 20...
//SPDX-License-Identifier: Unlicense pragma solidity 0.5.16; import "@openzeppelin/contracts/math/SafeMath.sol"; interface IERC20 { function balanceOf(address account) external view returns (uint256); function totalSupply() external view returns (uint256); } interface IMasterChef { function userInfo(uint...
Unclaimed reward Qi from WFTM-Qi
qi_powah = qi_powah.add(chef.pending(1, owner));
15,801,042
[ 1, 984, 14784, 329, 19890, 2238, 77, 628, 678, 4464, 49, 17, 53, 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, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1043, 77, 67, 23509, 9795, 273, 1043, 77, 67, 23509, 9795, 18, 1289, 12, 343, 10241, 18, 9561, 12, 21, 16, 3410, 10019, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/1/0x30b3EaB9450036C432C1D2529E031D0F340E154e/sources/contracts/ASICLottery.sol
mapping that store winners addresses for each game
mapping(uint256 => DrawResult) public drawHistory;
4,938,281
[ 1, 6770, 716, 1707, 5657, 9646, 6138, 364, 1517, 7920, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 10184, 1253, 13, 1071, 3724, 5623, 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, -...
pragma solidity 0.4.25; import "./DragonBase.sol"; import "../Common/SafeMath16.sol"; /* solium-disable operator-whitespace */ contract DragonCore is DragonBase { using SafeMath16 for uint16; uint8 constant MAX_LEVEL = 10; // max dragon level uint8 constant MAX_TACTICS_PERCENTAGE = 80; uint8 consta...
_id - dragon, which will use the skill _target - dragon, on which the skill will be used _sender - owner of the first dragon enough mana subtract cost of special peaceful skill reset intelligence buff of the first dragon reset active skill buff of the first dragon save restored health/mana
function useSpecialPeacefulSkill(address _sender, uint256 _id, uint256 _target) external onlyController { ( uint8 _class, uint32 _cost, uint32 _effect ) = calculateSpecialPeacefulSkill(_id); ( uint32 _health, uint32 _mana, , ...
953,543
[ 1, 67, 350, 300, 8823, 265, 16, 1492, 903, 999, 326, 15667, 389, 3299, 300, 8823, 265, 16, 603, 1492, 326, 15667, 903, 506, 1399, 389, 15330, 300, 3410, 434, 326, 1122, 8823, 265, 7304, 3161, 69, 10418, 6991, 434, 4582, 2804, 623, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 999, 12193, 11227, 623, 2706, 9030, 12, 2867, 389, 15330, 16, 2254, 5034, 389, 350, 16, 2254, 5034, 389, 3299, 13, 3903, 1338, 2933, 288, 203, 3639, 261, 203, 5411, 2254, 28, 389, 1106, 16, 203, 5411, 2254, 1578, 389, ...
./full_match/137/0x0767c06D06040929fB81DEF2065697a054Ee39FF/sources/contracts/Contract.sol
Record exact amount
addToBlockchain(recipient, amount, message);
3,768,552
[ 1, 2115, 5565, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9604, 1768, 5639, 12, 20367, 16, 3844, 16, 883, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/5/0x773625e0BAd43271d8d5F7483E2f3dAF3712c37e/sources/DigitalNFT.sol
* @dev Mints a new NFT. @param _to The address that will own the minted NFT./check EIP712 signature from artist that validates the [ uri , artist, and KeypassToken ]
function mint( address _to, address artist, address keypassToken, string memory uri, uint256 maxCopies, uint256 expirationBlock, address currencyToken, uint256 currencyAmount, bytes memory signature) external returns(bool) { bytes32 sigHash = getTypedDataHash(artist,keypassToken, uri, maxCopies, expiration...
1,857,237
[ 1, 49, 28142, 279, 394, 423, 4464, 18, 225, 389, 869, 1021, 1758, 716, 903, 4953, 326, 312, 474, 329, 423, 4464, 18, 19, 1893, 512, 2579, 27, 2138, 3372, 628, 15469, 716, 11964, 326, 306, 2003, 225, 269, 15469, 16, 471, 1929, 5466...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 312, 474, 12, 1758, 389, 869, 16, 1758, 15469, 16, 1758, 498, 5466, 1345, 16, 533, 3778, 2003, 16, 2254, 5034, 943, 15670, 16, 2254, 5034, 7686, 1768, 16, 1758, 5462, 1345, 16, 2254, 5034, 5462, 6275, 16, 1731, 3778, ...
/** * @authors: [@unknownunknown1] * @reviewers: [] * @auditors: [] * @bounties: [] * @deployments: [] */ /* solium-disable security/no-block-members */ pragma solidity ^0.5.0; import "./KlerosLiquid.sol"; import "@kleros/kleros-interaction/contracts/libraries/CappedMath.sol"; contract KlerosGovernor is A...
* @dev Executes a ruling of a dispute. @param _disputeID ID of the dispute in the Arbitrator contract. @param _ruling Ruling given by the arbitrator. Note that 0 is reserved for "Not able/wanting to make a decision"./ Nothing is executed if arbitrator refused to arbitrate.
function executeRuling(uint _disputeID, uint _ruling) internal{ if(_ruling != 0){ TransactionList storage txList = txLists[submissions[_ruling]]; for (uint i = 0; i < txList.txCounter; i++){ Transaction storage transaction = txList.transactions[i]; tra...
12,868,824
[ 1, 9763, 279, 436, 332, 310, 434, 279, 1015, 2507, 18, 282, 389, 2251, 2507, 734, 1599, 434, 326, 1015, 2507, 316, 326, 1201, 3682, 86, 639, 6835, 18, 282, 389, 86, 332, 310, 534, 332, 310, 864, 635, 326, 10056, 86, 639, 18, 360...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 54, 332, 310, 12, 11890, 389, 2251, 2507, 734, 16, 2254, 389, 86, 332, 310, 13, 2713, 95, 203, 3639, 309, 24899, 86, 332, 310, 480, 374, 15329, 203, 5411, 5947, 682, 2502, 2229, 682, 273, 2229, 7432, 63, 25675, ...
/** *Submitted for verification at Etherscan.io on 4/20 baby (2021) */ // SPDX-License-Identifier: MIT // Total supply: 420 Billion // 4.20% Tax : // - 4% Burn // - 0.2% Charity // // NO ONE SHOULD BE IN JAIL FOR SMOKING A NATURAL SHRUB // THATโ€™S WHY 0.2% OF ALL TRANSACTIONS WILL GO TOWARDS ENDING T...
TransferFrom recipient recives amount, sender's account is debited amount + fee Burn and Charity cut Transfer
function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) { uint256 burnAmount = burnFee.mul(amount).div(10000); uint256 charityAmount = charityFee.mul(amount).div(10000); uint256 taxAmount = burnAmount.add(charityAmount); uint256 transf...
10,461,091
[ 1, 5912, 1265, 8027, 1950, 3606, 3844, 16, 5793, 1807, 2236, 353, 443, 3682, 329, 3844, 397, 14036, 605, 321, 471, 3703, 560, 6391, 12279, 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, 7412, 1265, 12, 2867, 5793, 16, 1758, 8027, 16, 2254, 5034, 3844, 13, 1071, 3849, 1135, 261, 6430, 13, 288, 203, 203, 3639, 2254, 5034, 18305, 6275, 273, 18305, 14667, 18, 16411, 12, 8949, 2934, 2892, 12, 23899, 1769, 2...
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; contract Arrays2 { uint256[][3] fixedMultiArray; uint256[2][] dynamicMultiArray; uint256[] storageDynamicArray; // Tipo uint[] storage ref (all'interno di una funzione) function multidimensional() public { uint256[4] memory memArray = [uint256(6),...
Anche con memory/calldata
function mutliParams(uint256[2][] memory paramsArray) public { }
2,527,375
[ 1, 979, 18706, 356, 3778, 19, 1991, 892, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 4318, 549, 1370, 12, 11890, 5034, 63, 22, 6362, 65, 3778, 859, 1076, 13, 1071, 288, 203, 202, 97, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/421613/0xb63234AcaC10029EAebF63A0f28584cd096dF62B/sources/project_/contracts/GarbiMining.sol
veGRB each block. The total point for all pools The block when mining start
contract GarbiMining is Ownable{ using SafeMath for uint256; IERC20withMint public veGRB; uint256 public totalAllocPoint = 1000; uint256 public startBlock; PoolInfo[] public poolInfo; mapping(uint256 => mapping(address => uint256)) public rewardDebtOf; uint public constant GRACE_PERIOD...
11,566,607
[ 1, 537, 6997, 38, 1517, 1203, 18, 1021, 2078, 1634, 364, 777, 16000, 1021, 1203, 1347, 1131, 310, 787, 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, 16351, 611, 6779, 77, 2930, 310, 353, 14223, 6914, 95, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 467, 654, 39, 3462, 1918, 49, 474, 1071, 10489, 6997, 38, 31, 203, 203, 565, 2254, 5034, 1071, 2078, ...
// File: openzeppelin-solidity/contracts/ownership/Ownable.sol pragma solidity ^0.5.2; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address ...
* @notice Check if the index is valid/
modifier validDividendIndex(uint256 _dividendIndex) { require(_dividendIndex < dividends.length, "Such dividend does not exist"); _; }
5,444,880
[ 1, 1564, 309, 326, 770, 353, 923, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 923, 7244, 26746, 1016, 12, 11890, 5034, 389, 2892, 26746, 1016, 13, 288, 203, 3639, 2583, 24899, 2892, 26746, 1016, 411, 3739, 350, 5839, 18, 2469, 16, 315, 5464, 31945, 1552, 486, 1005, 8863, 203, 3639, 389, 31, 203, ...
./full_match/1/0x851B31013E321069cc04Ee3b907EC3Eba524B244/sources/src/callbacks/UniFiCallback.sol
@notice UniFi swap callback @param amount0 - The change in token0 reserves from the swap. @param amount1 - The change in token1 reserves from the swap. @param data - The data packed into the swap.
function unifiCall(address, uint256 amount0, uint256 amount1, bytes calldata data) external { (bool _zeroForOne, address _tokenIn, uint24 _swapFee) = abi.decode(data, (bool, address, uint24)); uint256 amountOut = _zeroForOne ? amount1 : amount0; (uint112 reserve0, uint112 reserve1,) = IUnis...
17,109,117
[ 1, 984, 77, 42, 77, 7720, 1348, 225, 3844, 20, 300, 1021, 2549, 316, 1147, 20, 400, 264, 3324, 628, 326, 7720, 18, 225, 3844, 21, 300, 1021, 2549, 316, 1147, 21, 400, 264, 3324, 628, 326, 7720, 18, 225, 501, 300, 1021, 501, 1245...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 640, 704, 1477, 12, 2867, 16, 2254, 5034, 3844, 20, 16, 2254, 5034, 3844, 21, 16, 1731, 745, 892, 501, 13, 3903, 288, 203, 3639, 261, 6430, 389, 7124, 1290, 3335, 16, 1758, 389, 2316, 382, 16, 2254, 3247, 389, 22270, ...
./full_match/3/0x13AC7770e0287b905E4f27BddC72463fBE2Ce75d/sources/browser/HopOnYOP.sol
15% reward for 60 days lock
uint8 constant public reward2 = 15; uint256 constant public stakedFor2 = 60 days;
8,094,860
[ 1, 3600, 9, 19890, 364, 4752, 4681, 2176, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 28, 5381, 1071, 19890, 22, 273, 4711, 31, 2254, 5034, 5381, 1071, 384, 9477, 1290, 22, 273, 4752, 4681, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.0; pragma experimental ABIEncoderV2; /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ interface IERC20 { function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external retu...
Returns the updated underlying price that was used in the calc* methods above. It will be a price feed price if the contract is Live and will remain Live, or an Oracle price if the contract is settled/about to be settled. Reverts if no Oracle price is available but an Oracle price is required.
function getUpdatedUnderlyingPrice() external view returns (int underlyingPrice, uint time) { return derivativeStorage._getUpdatedUnderlyingPrice(); }
972,402
[ 1, 1356, 326, 3526, 6808, 6205, 716, 1703, 1399, 316, 326, 7029, 2590, 5721, 18, 2597, 903, 506, 279, 6205, 4746, 6205, 309, 326, 6835, 353, 21559, 471, 903, 7232, 21559, 16, 578, 392, 28544, 6205, 309, 326, 6835, 353, 26319, 1259, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 7381, 14655, 6291, 5147, 1435, 3903, 1476, 1135, 261, 474, 6808, 5147, 16, 2254, 813, 13, 288, 203, 3639, 327, 16417, 3245, 6315, 588, 7381, 14655, 6291, 5147, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -1...
//Address: 0x8413428357b3e3842666c36502c3ddef4eb3fc74 //Contract name: GECToken //Balance: 0 Ether //Verification Date: 8/24/2017 //Transacion Count: 0 // CODE STARTS HERE pragma solidity 0.4.11; contract ERC20 { function totalSupply() constant returns (uint256 totalSupply) {} function balanceOf(address _ow...
Create an illiquidBalance which cannot be traded until admin make it liquid. Can only be called by crowdfund contract before the end time.
function createIlliquidToken(address _recipient, uint _value) when_mintable only_minter returns (bool o_success) { illiquidBalance_index[illiquidBalance_amount] = _recipient; illiquidBalance[_recipient] += _value; illiquidBalance_amount++; totalSupply += _value; return true; }
5,395,360
[ 1, 1684, 392, 14254, 549, 26595, 13937, 1492, 2780, 506, 1284, 785, 3180, 3981, 1221, 518, 4501, 26595, 18, 4480, 1338, 506, 2566, 635, 276, 492, 2180, 1074, 6835, 1865, 326, 679, 813, 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, 0, 0, 0, 0, 0, 0, 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, 752, 45, 80, 549, 26595, 1345, 12, 2867, 389, 20367, 16, 2254, 389, 1132, 13, 203, 202, 202, 13723, 67, 81, 474, 429, 203, 202, 202, 3700, 67, 1154, 387, 203, 202, 202, 6154, 261, 6430, 320, 67, 4768, 13, 203, 202, ...
./full_match/80001/0x2c64Ee62fA9DAf74D4F77169EeFC5801a279FBda/sources/contracts/edit.sol
Calculate reward based on the provided percentage
uint256 rewardAmount = (item.reward * percentage) / 100;
5,602,224
[ 1, 8695, 19890, 2511, 603, 326, 2112, 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, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 19890, 6275, 273, 261, 1726, 18, 266, 2913, 380, 11622, 13, 342, 2130, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: GPL-3.0 /// @title FOMO Nouns Settlement Contract /// @author forager pragma solidity 0.8.9; import { INounsAuctionHouse } from './interfaces/INounsAuctionHouse.sol'; contract NounSettlement { address payable public fomoExecutor; address payable public immutable nounsDaoTreasury; ...
Executor must be EOA
modifier refundGas() {
340,673
[ 1, 6325, 1297, 506, 512, 28202, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 9606, 16255, 27998, 1435, 288, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
/** *Submitted for verification at Etherscan.io on 2021-01-31 */ pragma solidity ^0.6.6; interface AggregatorInterface { function latestAnswer() external view returns (int256); function latestTimestamp() external view returns (uint256); function latestRound() external view returns (uint256); function getAns...
* @dev given a continuous token supply, reserve token balance, reserve ratio, and a deposit amount (in the reserve token), calculates the return for a given conversion (in the continuous token) Formula: Return = _supply ((1 + _depositAmount / _reserveBalance) ^ (_reserveRatio / MAX_RESERVE_RATIO) - 1) @param _supply ...
{ require(_supply > 0 && _reserveBalance > 0 && _reserveRatio > 0 && _reserveRatio <= MAX_RESERVE_RATIO, "Invalid inputs."); if (_depositAmount == 0) { return 0; } if (_reserveRatio == MAX_RESERVE_RATIO) { return _supply.mul(_depositAmount).div(_reserveBalance...
2,186,449
[ 1, 10822, 279, 17235, 1147, 14467, 16, 20501, 1147, 11013, 16, 20501, 7169, 16, 471, 279, 443, 1724, 3844, 261, 267, 326, 20501, 1147, 3631, 17264, 326, 327, 364, 279, 864, 4105, 261, 267, 326, 17235, 1147, 13, 26758, 30, 2000, 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, 565, 288, 203, 3639, 2583, 24899, 2859, 1283, 405, 374, 597, 389, 455, 6527, 13937, 405, 374, 597, 389, 455, 6527, 8541, 405, 374, 597, 389, 455, 6527, 8541, 1648, 4552, 67, 862, 2123, 3412, 67, 54, 789, 4294, 16, 315, 1941, 45...
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.4; import "./libraries/multicall.sol"; import "./libraries/Math.sol"; import "./libraries/FixedPoints.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contrac...
@dev Point of epochs for each epoch, y = bias - (t - timestamp) * slope start of segment
struct Point { int256 bias; int256 slope; uint256 timestamp; }
460,149
[ 1, 2148, 434, 25480, 364, 1517, 7632, 16, 677, 273, 12005, 300, 261, 88, 300, 2858, 13, 225, 17543, 787, 434, 3267, 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, 1958, 4686, 288, 203, 3639, 509, 5034, 12005, 31, 203, 3639, 509, 5034, 17543, 31, 203, 3639, 2254, 5034, 2858, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/3/0x676540d8C6687A7dF40bbb24233bb0345b313490/sources/browser/FarmStaking.sol
* @notice Safe reward transfer function, just in case a rounding error causes pool to not have enough reward tokens @param _to the user address to transfer tokens to @param _amount the total amount of tokens to transfer/
function safeRewardTransfer(address _to, uint256 _amount) internal { uint256 rewardBal = farmInfo.rewardToken.balanceOf(farmInfo.rewardHolder); if (_amount > rewardBal) { farmInfo.rewardToken.transferFrom(farmInfo.rewardHolder, _to, rewardBal); farmInfo.rewardToken.transferFrom(farmInfo.rewardHold...
8,283,786
[ 1, 9890, 19890, 7412, 445, 16, 2537, 316, 648, 279, 13885, 555, 14119, 2845, 358, 486, 1240, 7304, 19890, 2430, 225, 389, 869, 326, 729, 1758, 358, 7412, 2430, 358, 225, 389, 8949, 326, 2078, 3844, 434, 2430, 358, 7412, 19, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 4183, 17631, 1060, 5912, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 2713, 288, 203, 565, 2254, 5034, 19890, 38, 287, 273, 284, 4610, 966, 18, 266, 2913, 1345, 18, 12296, 951, 12, 74, 4610, 966, 18, 266, 2913, ...
pragma solidity ^0.4.24; contract BrickAccessControl { constructor() public { admin = msg.sender; nodeToId[admin] = 1; } address public admin; address[] public nodes; mapping (address => uint) nodeToId; modifier onlyAdmin() { require(msg.sender == admi...
@dev ๋Œ€์ถœ ๊ณ„์•ฝ ์ข…๋ฃŒํ•˜๊ธฐ @param _loanId ๊ณ„์•ฝ ๋ฒˆํ˜ธ @param _status ์ข…๋ฃŒ ํƒ€์ž…(S301, S302) @param _returnAmount ๋ฐ˜ํ™˜์ฝ”์ธ๋Ÿ‰(์œ ์ €์—๊ฒŒ ๋Œ๋ ค์ค€ ์ฝ”์ธ) @param _returnCash ๋ฐ˜ํ™˜ ํ˜„๊ธˆ(์œ ์ €์—๊ฒŒ ๋Œ๋ ค์ค€ ์›ํ™”) @param _returnAddress ๋‹ด๋ณด ๋ฐ˜ํ™˜ ์•”ํ˜ธํ™”ํ ์ฃผ์†Œ @param _feeAmount ์ด์ด์ž(์ด์ž + ์—ฐ์ฒด์ด์ž + ์šด์˜์ˆ˜์ˆ˜๋ฃŒ + ์กฐ๊ธฐ์ƒํ™˜์ˆ˜์ˆ˜๋ฃŒ) @param _evalUnitPrice ์ฒญ์‚ฐ์‹œ์  ํ‰๊ฐ€๊ธˆ์•ก(1 ์ฝ”์ธ๋‹น ๊ธˆ์•ก) @param _evalAt ์ฒญ์‚ฐ์‹œ์  ํ‰๊ฐ€์ผ @param _closeAt ์ข…๋ฃŒ...
function closeContract( bytes32 _loanId, bytes8 _status, uint256 _returnAmount, uint32 _returnCash, string _returnAddress, uint32 _feeAmount, uint32 _evalUnitPrice, uint64 _evalAt, uint64 _closeAt, bytes32 _extra) public onlyNode { require(loanIdToContract[_loanId].loanId...
888,586
[ 1, 172, 239, 227, 173, 119, 255, 225, 171, 116, 231, 173, 248, 126, 225, 173, 100, 232, 172, 101, 239, 174, 248, 251, 171, 121, 113, 225, 389, 383, 304, 548, 225, 171, 116, 231, 173, 248, 126, 225, 172, 115, 235, 174, 251, 121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1746, 8924, 12, 203, 3639, 1731, 1578, 389, 383, 304, 548, 16, 1731, 28, 389, 2327, 16, 2254, 5034, 389, 2463, 6275, 16, 2254, 1578, 389, 2463, 39, 961, 16, 533, 389, 2463, 1887, 16, 203, 3639, 2254, 1578, 389, 21386,...