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
./full_match/1/0x700d6d24A55512c6AEC08820B49da4e4193105B3/sources/src/CvxLocker.sol
* @dev Processes the unlock of tokens/ Harvest the rewards before processing unlocks Get the amount being unlocked Get the amount needed in the Redeem Module If unlock == 0 relock everything otherwise withdraw everything and lock only what's left
function _processUnlock() internal override { _harvest(); (, uint256 unlockableBalance,,) = vlCvx.lockedBalances(address(this)); if (unlockableBalance == 0) return; uint256 withdrawalAmount = IWarRedeemModule(redeemModule).queuedForWithdrawal(address(cvx)); if (withdrawalAmount == 0) { vl...
3,008,520
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4389, 281, 326, 7186, 434, 2430, 19, 670, 297, 26923, 326, 283, 6397, 1865, 4929, 7186, 87, 968, 326, 3844, 3832, 25966, 968, 326, 3844, 3577, 316, 326, 868, 24903, 5924, 971, 7186, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 2567, 7087, 1435, 2713, 3849, 288, 203, 565, 389, 30250, 26923, 5621, 203, 203, 565, 261, 16, 2254, 5034, 7186, 429, 13937, 16408, 13, 273, 19755, 39, 26982, 18, 15091, 38, 26488, 12, 2867, 12, 2211, 10019, 203, 56...
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; interface IHarvest { function setHarvestRewardVault(address _harvestRewardVault) external; function setHarvestRewardPool(address _harvestRewardPool) external; function setHarvestPoolToken(address _harvestfToken) external; function setFarmToken(a...
@notice Used internally for avoiding "stack-too-deep" error when withdrawing
struct WithdrawData { uint256 prevDustEthBalance; uint256 prevfTokenBalance; uint256 prevTokenBalance; uint256 obtainedfToken; uint256 obtainedToken; uint256 feeableToken; uint256 feeableEth; uint256 totalEth; uint256 totalToken; uint25...
11,766,997
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 10286, 12963, 364, 4543, 310, 315, 3772, 17, 16431, 17, 16589, 6, 555, 1347, 598, 9446, 310, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 3423, 9446, 751, 288, 203, 3639, 2254, 5034, 2807, 40, 641, 41, 451, 13937, 31, 203, 3639, 2254, 5034, 2807, 74, 1345, 13937, 31, 203, 3639, 2254, 5034, 2807, 1345, 13937, 31, 203, 3639, 2254, 5034, 12700, 74, 1345, 31...
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./KeeperBase.sol";...
* @notice read the current info about any keeper address/
function getKeeperInfo(address query) external view override returns ( address payee, bool active, uint96 balance ) { KeeperInfo memory keeper = s_keeperInfo[query]; return (keeper.payee, keeper.active, keeper.balance); }
919,601
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 855, 326, 783, 1123, 2973, 1281, 417, 9868, 1758, 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, 225, 445, 16566, 9868, 966, 12, 2867, 843, 13, 203, 565, 3903, 203, 565, 1476, 203, 565, 3849, 203, 565, 1135, 261, 203, 1377, 1758, 8843, 1340, 16, 203, 1377, 1426, 2695, 16, 203, 1377, 2254, 10525, 11013, 203, 565, 262, 203, ...
./full_match/80001/0x35675f3eB39D0BF2828A8a0fd09194bb1319d103/sources/project_/contracts/Derivswap.sol
USDT:1,USDC:2,NATIVE:0
) { address[2] memory whitelisted_coins = [ 0xAE91C872d378cFF75Ca099634487Bf94BF71CA94, 0xb5896008024610447c3cf4d64D64b12AFF00Fd66 ]; for (uint i = 0; i < whitelisted_coins.length; i++) { whitelisted_collateral[whitelisted_coins[i]] = true; col...
5,694,312
[ 1, 4625, 348, 7953, 560, 30, 11836, 9081, 30, 21, 16, 3378, 5528, 30, 22, 16, 50, 12992, 30, 20, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 288, 203, 3639, 1758, 63, 22, 65, 3778, 26944, 67, 71, 9896, 273, 306, 203, 5411, 374, 92, 16985, 12416, 39, 28, 9060, 72, 6418, 28, 71, 2246, 5877, 23508, 20, 2733, 4449, 6334, 11035, 38, 74, 11290, 15259, 11212, 358...
./full_match/3/0x97150Bd5A5CB877042952A2719c07d2888280D96/sources/contracts/BlindAuction.sol
End the auction and send the highest bid to the beneficiary.
function auctionEnd() external onlyAfter(revealEnd) { if (ended) revert AuctionEndAlreadyCalled(); emit AuctionEnded(highestBidder, highestBid); ended = true; beneficiary.transfer(highestBid); }
8,249,366
[ 1, 4625, 348, 7953, 560, 30, 225, 4403, 326, 279, 4062, 471, 1366, 326, 9742, 9949, 358, 326, 27641, 74, 14463, 814, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 279, 4062, 1638, 1435, 203, 3639, 3903, 203, 3639, 1338, 4436, 12, 266, 24293, 1638, 13, 203, 565, 288, 203, 3639, 309, 261, 3934, 13, 15226, 432, 4062, 1638, 9430, 8185, 5621, 203, 3639, 3626, 432, 4062, 28362, 12, 876...
./full_match/4/0x59cBa9eD0AEE97290bf22019b240a314Af818513/sources/contracts/utils/EIP712.sol
* The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in their contracts using a combination of `abi.encode` and `keccak256`. This con...
abstract contract EIP712 { bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(...
13,336,219
[ 1, 4625, 348, 7953, 560, 30, 380, 1021, 2688, 1269, 316, 326, 512, 2579, 353, 8572, 5210, 16, 471, 4123, 279, 5210, 4471, 316, 348, 7953, 560, 353, 486, 1656, 30711, 16, 12493, 333, 6835, 1552, 486, 2348, 326, 2688, 6174, 18, 4547, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 512, 2579, 27, 2138, 288, 203, 203, 565, 1731, 1578, 3238, 11732, 389, 15920, 2056, 67, 1985, 31, 203, 565, 1731, 1578, 3238, 11732, 389, 15920, 2056, 67, 5757, 31, 203, 565, 1731, 1578, 3238, 11732, 389, 2399, 67, 1...
./full_match/3/0x5271dDDA32688e2477F77f5366280564607D3C0f/sources/contracts/cp.sol
/add liquidityif any account belongs to _isExcludedFromFee account then remove the fee
function _transfer( address from, address to, uint256 amount ) private { require(from != address(0), "BEP20: transfer from the zero address"); require(to != address(0), "BEP20: transfer to the zero address"); require(amount > 0, "Transfer amount must be gre...
8,117,713
[ 1, 4625, 348, 7953, 560, 30, 342, 1289, 4501, 372, 24237, 430, 1281, 2236, 11081, 358, 389, 291, 16461, 1265, 14667, 2236, 1508, 1206, 326, 14036, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 13866, 12, 202, 203, 3639, 1758, 628, 16, 202, 203, 3639, 1758, 358, 16, 202, 203, 3639, 2254, 5034, 3844, 202, 203, 565, 262, 3238, 288, 202, 203, 3639, 2583, 12, 2080, 480, 1758, 12, 20, 3631, 315, 5948, 52, ...
pragma solidity ^0.4.16; // SafeMath Taken From FirstBlood contract SafeMath { function safeMul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function safeDiv(uint a, uint b) internal returns (uint) { assert(b > 0); ...
@return Estimated Liquidation Cap @dev Liquidation Cap per transaction is used to ensure proper price discovery for Wolk Exchange
function estLiquidationCap() public constant returns (uint256) { if (openSaleCompleted){ var liquidationMax = safeDiv(safeMul(totalTokens, maxPerExchangeBP), 10000); if (liquidationMax < 100 * 10**decimals){ liquidationMax = 100 * 10**decimals; } ...
6,571,435
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2463, 17787, 17275, 511, 18988, 350, 367, 11200, 632, 5206, 511, 18988, 350, 367, 11200, 1534, 2492, 353, 1399, 358, 3387, 5338, 6205, 11030, 364, 678, 355, 79, 18903, 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, 0, 0, 0, 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, 4387, 48, 18988, 350, 367, 4664, 1435, 1071, 5381, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 309, 261, 3190, 30746, 9556, 15329, 203, 5411, 569, 4501, 26595, 367, 2747, 225, 273, 4183, 7244, 12, 4626, 27860, 12, 4963, ...
pragma solidity 0.5.10; import "./StakingAuRaBase.sol"; import "../interfaces/IBlockRewardAuRaTokens.sol"; import "../interfaces/IStakingAuRaTokens.sol"; /// @dev Implements staking and withdrawal logic. contract StakingAuRaTokens is IStakingAuRaTokens, StakingAuRaBase { // =====================================...
@dev Used by the `claimReward` function to reduce stack depth.
struct RewardAmounts { uint256 tokenAmount; uint256 nativeAmount; } address indexed fromPoolStakingAddress, address indexed staker, uint256 indexed stakingEpoch, uint256 tokensAmount, uint256 nativeCoinsAmount );
5,436,409
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 10286, 635, 326, 1375, 14784, 17631, 1060, 68, 445, 358, 5459, 2110, 3598, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 534, 359, 1060, 6275, 87, 288, 203, 3639, 2254, 5034, 1147, 6275, 31, 203, 3639, 2254, 5034, 6448, 6275, 31, 203, 565, 289, 203, 203, 3639, 1758, 8808, 628, 2864, 510, 6159, 1887, 16, 203, 3639, 1758, 8808, 384, 6388, ...
pragma solidity 0.4.20; library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { c = a + b; assert(c >= a); } function sub(uint a, uint b) internal pure returns (uint c) { assert(b <= a); c = a - b; } function mul(uint a, uint b) internal pure...
payable funder info
function () payable public { require(saleOpened); require(now <= saleDeadline); require(MIN_ETHER <= msg.value); uint amount = msg.value; uint curBonusRate = getCurrentBonusRate(); uint token = (amount.mul(curBonusRate.add(100)).div(100)).mul(EXCHANGE_RATE); ...
6,013,371
[ 1, 4625, 348, 7953, 560, 30, 225, 8843, 429, 284, 9341, 1123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1832, 8843, 429, 1071, 288, 203, 3639, 2583, 12, 87, 5349, 23115, 1769, 203, 3639, 2583, 12, 3338, 1648, 272, 5349, 15839, 1769, 203, 3639, 2583, 12, 6236, 67, 1584, 3891, 1648, 1234, 18, 1132, 1769, 203, 540, 203, 3639...
pragma solidity ^0.4.11; import "../../contracts/crowdsale/multistage/TokenCappedCrowdsale.sol"; /** * @title SampleCrowdsale * @dev This is an example of a fully fledged crowdsale. * The way to add new features to a base crowdsale is by multiple inheritance. * In this example we are providing following extensio...
* @title SampleCrowdsale @dev This is an example of a fully fledged crowdsale. The way to add new features to a base crowdsale is by multiple inheritance. In this example we are providing following extensions: HardCappedCrowdsale - sets a max boundary for raised funds RefundableCrowdsale - set a min goal to be reached ...
contract MockSimpleCrowdsale is Crowdsale, TokenCappedCrowdsale { function MockSimpleCrowdsale(uint256 _startTime, uint256[] _endTime, uint256[] _rate, address _wallet, address controller, uint256[] _cap, uint256[] _capTimes) Crowdsale(_startTime, _endTime, _rate, _wallet, controller) TokenCappedCrowdsale(_cap,...
1,029,480
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 11474, 39, 492, 2377, 5349, 632, 5206, 1220, 353, 392, 3454, 434, 279, 7418, 284, 1259, 2423, 276, 492, 2377, 5349, 18, 1021, 4031, 358, 527, 394, 4467, 358, 279, 1026, 276, 492, 2377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7867, 5784, 39, 492, 2377, 5349, 353, 385, 492, 2377, 5349, 16, 3155, 4664, 1845, 39, 492, 2377, 5349, 288, 203, 203, 203, 225, 445, 7867, 5784, 39, 492, 2377, 5349, 12, 11890, 5034, 389, 1937, 950, 16, 2254, 5034, 8526, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IBallerBars.sol"; // FIXME: link to ChainsLibrary.sol sin...
* @dev Returns the current ballerbars cost of mint./
function currentBallerBarsCost() public pure returns (uint256) { return 10 ether; }
406,191
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 783, 26503, 264, 13518, 6991, 434, 312, 474, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 783, 38, 454, 264, 5190, 87, 8018, 1435, 1071, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 1728, 225, 2437, 31, 203, 565, 289, 203, 7010, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.5.12; import "./Handler.sol"; import "./library/ReentrancyGuard.sol"; import "./interface/IAave.sol"; contract AaveHandler is Handler, ReentrancyGuard { address public aaveLendingPool; address public aaveLendingPoolCore; // mapping(address => uint256) public interestDetails; struct ...
--- Init --- This function is used with contract proxy, do not modify this function.
function initialize( address _HNITokenController, address _lendingPool, address _lendingPoolCore ) public { super.initialize(_HNITokenController); initReentrancyStatus(); aaveLendingPool = _lendingPool; aaveLendingPoolCore = _lendingPoolCore; }
2,551,866
[ 1, 4625, 348, 7953, 560, 30, 225, 9948, 4378, 9948, 1220, 445, 353, 1399, 598, 6835, 2889, 16, 741, 486, 5612, 333, 445, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4046, 12, 203, 3639, 1758, 389, 44, 50, 1285, 969, 2933, 16, 203, 3639, 1758, 389, 80, 2846, 2864, 16, 203, 3639, 1758, 389, 80, 2846, 2864, 4670, 203, 565, 262, 1071, 288, 203, 3639, 2240, 18, 11160, 24899, 44, 50, ...
./partial_match/42/0x3c5406ddCE4836eA2E5817DCF021fE1E9B0796cC/sources/GebProxyIncentivesActions.sol
@notice Provides liquidity on uniswap. @param coinJoin address @param uniswapRouter address - Uniswap Router V2 @param tokenWad uint - amount of tokens to provide liquidity with @param ethWad uint - amount of ETH to provide liquidity with @param to address - receiver of the balance of generated LP Tokens @param minTok...
function _provideLiquidityUniswap(address coinJoin, address uniswapRouter, uint tokenWad, uint ethWad, address to, uint[2] memory minTokenAmounts) internal { CoinJoinLike(coinJoin).systemCoin().approve(uniswapRouter, tokenWad); address(CoinJoinLike(coinJoin).systemCoin()), tokenWad, ...
3,422,524
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 28805, 4501, 372, 24237, 603, 640, 291, 91, 438, 18, 632, 891, 13170, 4572, 1758, 632, 891, 640, 291, 91, 438, 8259, 1758, 300, 1351, 291, 91, 438, 9703, 776, 22, 632, 891, 1147, 59, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 685, 6768, 48, 18988, 24237, 984, 291, 91, 438, 12, 2867, 13170, 4572, 16, 1758, 640, 291, 91, 438, 8259, 16, 2254, 1147, 59, 361, 16, 2254, 13750, 59, 361, 16, 1758, 358, 16, 2254, 63, 22, 65, 3778, 1131, 1345...
./partial_match/56/0xC510d9bA9194B4355A1aa3F9ce5711C8820E2Cc6/sources/xsockss.sol
* @dev See {BEP20-balanceOf}./
function balanceOf(address account) external view returns (uint256) { return _balances[account]; }
11,044,486
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 5948, 52, 3462, 17, 12296, 951, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 11013, 951, 12, 2867, 2236, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 389, 70, 26488, 63, 4631, 15533, 203, 225, 289, 203, 203, 21281, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: GPL-3.0 /* This file is part of the Enzyme Protocol. (c) Enzyme Council <[email protected]> For the full license information, please view the LICENSE file that was distributed with this source code. */ pragma solidity 0.6.12; import "@openzeppelin/contracts/token/ERC20/E...
@dev Helper to settle a fee
function __settleFee( address _comptrollerProxy, address _vaultProxy, address _fee, FeeHook _hook, bytes memory _settlementData, uint256 _gav ) private { (SettlementType settlementType, address payer, uint256 sharesDue) = IFee(_fee).settle( _co...
1,697,255
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 9705, 358, 444, 5929, 279, 14036, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1001, 542, 5929, 14667, 12, 203, 3639, 1758, 389, 832, 337, 1539, 3886, 16, 203, 3639, 1758, 389, 26983, 3886, 16, 203, 3639, 1758, 389, 21386, 16, 203, 3639, 30174, 5394, 389, 4476, 16, 203, 3639, 1731, 3778, 389, 542,...
// solium-disable linebreak-style pragma solidity ^0.4.24; /** * @title Whitelist * @dev Whitelist contract has its own role whitelister and maintains index of whitelisted addresses. */ contract Whitelist { // who can whitelist address public whitelister; // Whitelist mapping mapping (address => b...
10% presale bonus, paid out from crowdsale pool
aoraTgeAmount = aoraTgeAmount.mul(11).div(10);
14,771,756
[ 1, 4625, 348, 7953, 560, 30, 225, 1728, 9, 4075, 5349, 324, 22889, 16, 30591, 596, 628, 276, 492, 2377, 5349, 2845, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 279, 10610, 56, 908, 6275, 273, 279, 10610, 56, 908, 6275, 18, 16411, 12, 2499, 2934, 2892, 12, 2163, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2021-07-12 */ pragma solidity =0.7.6; pragma abicoder v2; // File: @uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol /// @title The interface for the Uniswap V3 Factory /// @notice The Uniswap V3 Factory facilitates creation of Uniswap V3 pools and control...
File: contracts/interfaces/IHotPot.sol @title HPT (Hotpot Funds) 代币接口定义.
interface IHotPot is IERC20{ function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); function burn(uint value) external returns (bool) ; function burnFrom(address from, uint value) external re...
7,295,357
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 30, 20092, 19, 15898, 19, 45, 25270, 18411, 18, 18281, 632, 2649, 670, 1856, 261, 25270, 13130, 478, 19156, 13, 225, 165, 124, 101, 166, 121, 228, 167, 241, 103, 166, 242, 101, 166, 111, 253...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5831, 467, 25270, 18411, 353, 467, 654, 39, 3462, 95, 203, 565, 445, 508, 1435, 3903, 1476, 1135, 261, 1080, 3778, 1769, 203, 565, 445, 3273, 1435, 3903, 1476, 1135, 261, 1080, 3778, 1769, 203, 565, 445, 15105, 1435, 3903, 1476, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.6; import "./Stakeholders.sol"; import "./Community.sol"; import "./FurLib.sol"; /// @title Governance /// @author LFG Gaming LLC /// @notice Meta-tracker for Furballs; looks at the ecosystem (metadata, wallet counts, etc.) /// @dev Shares is an ERC20; stake...
@notice Attempts to purchase a snack using templates found in the engine @dev Delegated logic from Furballs _gift will throw if cannot gift or cannot afford costQ Adding count effectively adds duration to the active snack A new snack just gets pushed onto the array
function purchaseSnack( address from, uint8 permissions, uint256 tokenId, uint32 snackId, uint16 count ) external gameAdmin { FurLib.Snack memory snack = furballs.engine().getSnack(snackId); require(snack.count > 0, "COUNT"); require(snack.fed == 0, "FED"); _gift(from, permissions, furballs.own...
13,868,171
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 6020, 9585, 358, 23701, 279, 4556, 484, 1450, 5539, 1392, 316, 326, 4073, 632, 5206, 24117, 690, 4058, 628, 478, 15850, 454, 87, 389, 75, 2136, 903, 604, 309, 2780, 314, 2136, 578, 2780,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 23701, 10461, 484, 12, 203, 565, 1758, 628, 16, 2254, 28, 4371, 16, 2254, 5034, 1147, 548, 16, 2254, 1578, 4556, 484, 548, 16, 2254, 2313, 1056, 203, 225, 262, 3903, 7920, 4446, 288, 203, 565, 478, 295, 5664, 18, 1046...
pragma solidity ^0.4.11; import './Interfaces.sol'; import './SafeMathLib.sol'; import './CoreLib.sol'; import './CoreLib2.sol'; import './CoreLib3.sol'; library BaseLib2 { using SafeMathLib for uint256; event NewDistributionPeriod(uint256 distribution_period_id); event BuyOrderCreated(uint256 _dist_p...
Search for already existing buy orderDebugUInt(existing_order_id);DebugString("Creating new order");
function _CreateBuyOrder(Types.DataContainer storage self, RemoteWalletLib.RemoteWalletData storage data, Types.DistPeriod storage dist_period,Types.DailyDist storage daily_dist, address _ref) returns(uint256) { uint256 existing_order_id = daily_dist.find_order_id_by_address[msg.sender]; if (existin...
937,072
[ 1, 4625, 348, 7953, 560, 30, 5167, 364, 1818, 2062, 30143, 1353, 2829, 14342, 12, 11711, 67, 1019, 67, 350, 1769, 2829, 780, 2932, 11092, 394, 1353, 8863, 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, 225, 445, 389, 1684, 38, 9835, 2448, 12, 2016, 18, 751, 2170, 2502, 365, 16, 6304, 16936, 5664, 18, 5169, 16936, 751, 2502, 501, 16, 7658, 18, 5133, 5027, 2502, 2411, 67, 6908, 16, 2016, 18, 40, 12857, 5133, 2502, 18872, 67, 44...
pragma solidity ^0.4.24; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; /** * @title File Storage contract * @dev Every address will contain one or more file hashes and * associated metadata (hash function, hash size, file type, etc.) * @dev Constructor initialization and owner assignment h...
Event fired after adding a new file
event AddedFile(address _sender, bytes32 _fileHash, bytes1 _hashFunction, bytes1 _hashSize, FileType _fileType);
12,859,207
[ 1, 4625, 348, 7953, 560, 30, 225, 2587, 15950, 1839, 6534, 279, 394, 585, 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, 871, 25808, 812, 12, 2867, 389, 15330, 16, 1731, 1578, 389, 768, 2310, 16, 1731, 21, 389, 2816, 2083, 16, 1731, 21, 389, 2816, 1225, 16, 29449, 389, 768, 559, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
// File: contracts\modules\Ownable.sol pragma solidity =0.5.16; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the ...
* @dev constructor function , setting contract address./
constructor (address ivContract) public{ setVolatilityAddress(ivContract); }
2,173,058
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3885, 445, 269, 3637, 6835, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3885, 261, 2867, 4674, 8924, 13, 1071, 95, 203, 3639, 444, 17431, 30139, 1887, 12, 427, 8924, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } /** * @dev Interface ...
* @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(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; }
7,007,986
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 7149, 6478, 7033, 3304, 326, 1699, 1359, 17578, 358, 1375, 87, 1302, 264, 68, 635, 326, 4894, 18, 1220, 353, 392, 10355, 358, 288, 12908, 537, 97, 716, 848, 506, 1399, 487, 279, 20310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24899, 3576, 12021, 9334, 17571, 264, 16, 389, 5965, 6872, 63, 67, 3576, 12021, 1...
./full_match/5/0xA18817e452d5b5913A28fB1a9d1257aF98b79059/sources/contracts/messaging/connectors/SpokeConnector.sol
* @notice This returns the root of all messages with the origin domain as this domain (i.e. all outbound messages)/
function outboundRoot() external view returns (bytes32) { return MERKLE.root(); }
1,923,896
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1220, 1135, 326, 1365, 434, 777, 2743, 598, 326, 4026, 2461, 487, 333, 2461, 261, 77, 18, 73, 18, 777, 11663, 2743, 13176, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11663, 2375, 1435, 3903, 1476, 1135, 261, 3890, 1578, 13, 288, 203, 565, 327, 490, 654, 47, 900, 18, 3085, 5621, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.25; /** * * SmartLotto.in * * Fair lottery smart contract with random determination of winning tickets * * * 1 ticket is jackpot winning ticket and get 10% of the contract balance * 5 tickets are first prize winnings tickets and get 5% of the contract balance * 10% of all ticke...
money pool returned to participants
uint256 public participantsMoneyPool = 0;
15,784,639
[ 1, 4625, 348, 7953, 560, 30, 225, 15601, 2845, 2106, 358, 22346, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 22346, 23091, 2864, 273, 374, 31, 1171, 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,...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/Context.sol pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should n...
Token name Token symbol Mapping from token ID to owner address Mapping owner address to token count Mapping from token ID to approved address Mapping from owner to operator approvals
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; string private _name; string private _symbol; mapping (uint256 => address) private _owners; mapping (address => uint256) private _balances; mapping (uint256 => address) p...
592,029
[ 1, 4625, 348, 7953, 560, 30, 225, 3155, 508, 3155, 3273, 9408, 628, 1147, 1599, 358, 3410, 1758, 9408, 3410, 1758, 358, 1147, 1056, 9408, 628, 1147, 1599, 358, 20412, 1758, 9408, 628, 3410, 358, 3726, 6617, 4524, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 27, 5340, 353, 1772, 16, 4232, 39, 28275, 16, 467, 654, 39, 27, 5340, 16, 467, 654, 39, 27, 5340, 2277, 288, 203, 565, 1450, 5267, 364, 1758, 31, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 203, 565, 533,...
./full_match/1/0x76C725fEA03B179d326a3689C36218c0a3b42720/sources/contracts/TransferHelper.sol
Transfers token from one address to another @dev This function reverts if transferring the tokens fails @dev This function supports non standard ERC20 tokens that have a "transferFrom" method that does not return a boolean @dev Keep in mind that "transferFrom" requires an allowance of the "from" address for the caller...
function safeTransferTokenFrom(address token, address from, address to, uint value) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require( success && (data.length == 0 || abi.decode(data, (bool))), "TransferHel...
2,999,647
[ 1, 4625, 348, 7953, 560, 30, 225, 2604, 18881, 1147, 628, 1245, 1758, 358, 4042, 632, 5206, 1220, 445, 15226, 87, 309, 906, 74, 20245, 326, 2430, 6684, 632, 5206, 1220, 445, 6146, 1661, 4529, 4232, 39, 3462, 2430, 716, 1240, 279, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4183, 5912, 1345, 1265, 12, 2867, 1147, 16, 1758, 628, 16, 1758, 358, 16, 2254, 460, 13, 2713, 288, 203, 3639, 261, 6430, 2216, 16, 1731, 3778, 501, 13, 273, 1147, 18, 1991, 12, 21457, 18, 3015, 1190, 4320, 12, 20, ...
./partial_match/1/0x13ADB1dcEc5A1457004F8643b603e730A7f10D8C/sources/DTI.sol
Withdraw eth form the contranct
function withdraw(address _to) internal returns(bool){ require(_to.send(address(this).balance)); emit WithDraw(msg.sender,_to,this.balance); return true; }
4,059,716
[ 1, 4625, 348, 7953, 560, 30, 3423, 9446, 13750, 646, 326, 356, 13171, 299, 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, 12, 2867, 389, 869, 13, 2713, 1135, 12, 6430, 15329, 203, 3639, 2583, 24899, 869, 18, 4661, 12, 2867, 12, 2211, 2934, 12296, 10019, 203, 3639, 3626, 3423, 6493, 12, 3576, 18, 15330, 16, 67, 869, 16, 2211, 1...
./full_match/5/0xbda57c211E9A9FC030CA8004C409807C3168096D/sources/browser/tests/4_Ballot_test.sol
To store the candidate address who can vote in this voting event
address Address;
11,589,556
[ 1, 4625, 348, 7953, 560, 30, 2974, 1707, 326, 5500, 1758, 10354, 848, 12501, 316, 333, 331, 17128, 871, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1758, 5267, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
/** *Submitted for verification at Etherscan.io on 2022-04-19 */ // Sources flattened with hardhat v2.8.4 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/[email protected] // SPDX-License-Identifier: MIT AND GPL-3.0-or-later // All OpenZeppelin Contracts Licensed under MIT // All other contracts Lic...
File @openzeppelin/contracts/utils/structs/[email protected] OpenZeppelin Contracts v4.4.1 (utils/structs/BitMaps.sol)* @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential./
library BitMaps { function tokensReceived( address operator, address from, address to, uint256 amount, bytes calldata userData, bytes calldata operatorData } pragma solidity 0.8.13; } pragma solidity ^0.8.0; struct BitMap { mapping(uint256 => uint2...
7,891,310
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 632, 3190, 94, 881, 84, 292, 267, 19, 16351, 87, 19, 5471, 19, 1697, 87, 19, 63, 3652, 131, 259, 1117, 65, 3502, 62, 881, 84, 292, 267, 30131, 331, 24, 18, 24, 18, 21, 261, 5471, 19, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 6539, 8903, 288, 203, 565, 445, 2430, 8872, 12, 203, 3639, 1758, 3726, 16, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 16, 203, 3639, 1731, 745, 892, 13530, 16, 203, 3639, 1731, 745, ...
/** *Submitted for verification at Etherscan.io on 2022-04-24 */ /** *Submitted for verification at BscScan.com on 2020-09-22 */ pragma solidity 0.6.12; // /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can e...
Stake DexToken tokens to MasterBuilder
function enterStaking(uint256 _amount) public { PoolInfo storage pool = poolInfo[0]; UserInfo storage user = userInfo[0][msg.sender]; updatePool(0); if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accDexTokenPerShare).div(1e12).sub(user.rewardDebt); ...
2,163,201
[ 1, 4625, 348, 7953, 560, 30, 225, 934, 911, 463, 338, 1345, 2430, 358, 13453, 1263, 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, 6103, 510, 6159, 12, 11890, 5034, 389, 8949, 13, 1071, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 20, 15533, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 20, 6362, 3576, 18, 15330, 15533, 203, 3639, 1089...
pragma solidity ^0.8.0; import "../token/ERC20/utils/SafeERC20.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /* Modification of PaymentSplitter so that shares is given by an overridable function instead of a private variable. This way, the shares can be retrieved from an external source, e.g. an...
* @title PaymentSplitter @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware that the Ether will be split in this way, since it is handled transparently by the contract. The split can be in equal parts or in any other arbitrary proportion. The way this is sp...
contract PaymentSplitterOverrideShares is Context { event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalReleased; mapping(address => uint256) priv...
975,219
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 12022, 26738, 632, 5206, 1220, 6835, 5360, 358, 1416, 512, 1136, 25754, 17200, 279, 1041, 434, 9484, 18, 1021, 5793, 1552, 486, 1608, 358, 506, 18999, 716, 326, 512, 1136, 903, 506, 1416, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12022, 26738, 6618, 24051, 353, 1772, 288, 203, 565, 871, 12022, 26363, 12, 2867, 358, 16, 2254, 5034, 3844, 1769, 203, 565, 871, 4232, 39, 3462, 6032, 26363, 12, 45, 654, 39, 3462, 8808, 1147, 16, 1758, 358, 16, 2254, 503...
pragma solidity 0.5.17; // External Libraries import "@openzeppelin/contracts-ethereum-package/contracts/utils/Address.sol"; // Common import "../util/AddressArrayLib.sol"; import "../util/AddressLib.sol"; import "../base/TInitializable.sol"; // Contracts import "@openzeppelin/contracts-ethereum-package/contracts/ac...
List of general ATM settings. We don't accept settings equal to zero. Example: supplyToDebtRatio => 5044 = percentage 50.44 Example: supplyToDebtRatio => 1 = percentage 00.01 List of Market specific Asset settings on this ATM Asset address => Asset setting name => Asset setting value Example 1: USDC address => Risk P...
{ using AddressArrayLib for address[]; using AddressLib for address; using Address for address; mapping(bytes32 => uint256) public generalSettings; mapping(address => mapping(bytes32 => uint256)) public assetMarketSettings; mapping(uint8 => address[]) public dataProviders; string publi...
15,848,913
[ 1, 4625, 348, 7953, 560, 30, 225, 987, 434, 7470, 14464, 49, 1947, 18, 1660, 2727, 1404, 2791, 1947, 3959, 358, 3634, 18, 5090, 30, 14467, 774, 758, 23602, 8541, 225, 516, 1381, 3028, 24, 273, 11622, 6437, 18, 6334, 5090, 30, 14467,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1450, 5267, 1076, 5664, 364, 1758, 8526, 31, 203, 565, 1450, 5267, 5664, 364, 1758, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 203, 203, 565, 2874, 12, 3890, 1578, 516, 2254, 5034, 13, 1071, 7470, 2628, 31...
// SPDX-License-Identifier: GPL-3.0 // File: contracts/interfaces/ILayerZeroUserApplicationConfig.sol pragma solidity >=0.5.0; interface ILayerZeroUserApplicationConfig { // @notice set the configuration of the LayerZero messaging library of the specified version // @param _version - messaging library versio...
This function transfers the nft from your address on the source chain to the same address on the destination chain burn NFT, eliminating it from circulation on src chain abi.encode() the payload with the values to send encode adapterParams to specify more gas for the destination get the fees we need to pay to LayerZer...
function traverseChains(uint16 _chainId, uint256 tokenId) public payable { require( msg.sender == ownerOf(tokenId), "You must own the token to traverse" ); require( trustedRemoteLookup[_chainId].length > 0, "This chain is currently unavailable ...
14,388,718
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 445, 29375, 326, 290, 1222, 628, 3433, 1758, 603, 326, 1084, 2687, 358, 326, 1967, 1758, 603, 326, 2929, 2687, 18305, 423, 4464, 16, 19229, 267, 1776, 518, 628, 5886, 1934, 367, 603, 1705, 268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10080, 15945, 12, 11890, 2313, 389, 5639, 548, 16, 2254, 5034, 1147, 548, 13, 1071, 8843, 429, 288, 203, 3639, 2583, 12, 203, 5411, 1234, 18, 15330, 422, 3410, 951, 12, 2316, 548, 3631, 203, 5411, 315, 6225, 1297, 4953,...
pragma solidity ^0.4.4; import "./Token.sol"; import "./AddressRegistry.sol"; contract CrowdFunding is Token { // The states of the state machine. enum State { CampaignCreated, CampaignStarted, EarlyRewardPeriodEnded, CampaignSucceeded, CampaignFailed } // The...
This function throws directly since this token does not support allowance. This function implements the Token interface.
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) { throw; }
7,328,371
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 445, 1216, 5122, 3241, 333, 1147, 1552, 486, 2865, 1699, 1359, 18, 1220, 445, 4792, 326, 3155, 1560, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 1265, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 5034, 389, 1132, 13, 203, 3639, 1135, 261, 6430, 2216, 13, 203, 565, 288, 203, 3639, 604, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, ...
./partial_match/1/0x1E70FDe6dEc595d0c9897f0296409A6dc5457560/sources/Staking.sol
same as tokenUris but only for the staked
function getStaked(address targetAddress) external view returns (TokenInfo[] memory) { TokenInfo[] memory tokenInfo = new TokenInfo[](_balances[targetAddress]); for(uint256 i = 0; i < _balances[targetAddress]; i++){ tokenInfo[i].tokenId = _ownedTokens[targetAddress][i][0]; t...
3,947,468
[ 1, 4625, 348, 7953, 560, 30, 225, 1967, 487, 1147, 23900, 1496, 1338, 364, 326, 384, 9477, 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, 21491, 9477, 12, 2867, 1018, 1887, 13, 3903, 1476, 1135, 261, 1345, 966, 8526, 3778, 13, 288, 203, 3639, 3155, 966, 8526, 3778, 1147, 966, 273, 394, 3155, 966, 8526, 24899, 70, 26488, 63, 3299, 1887, 19226, 7010, 3639, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.2; import "./libraries/SafeMath.sol"; import "./libraries/IterableMapping.sol"; import "./Ownable.sol"; import "./ERC20.sol"; import "./interfaces/IUniswapV2Router02.sol"; import "./interfaces/IUniswapV2Factory.sol"; /** @title Pool Party token @author kef...
<- this breaks the ETH -> PP swap when swap+liquify is triggered
swapTokensForBnb(half);
5,380,556
[ 1, 4625, 348, 7953, 560, 30, 225, 3290, 333, 16217, 326, 512, 2455, 317, 453, 52, 7720, 1347, 7720, 15, 549, 372, 1164, 353, 10861, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 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, 3639, 7720, 5157, 1290, 38, 6423, 12, 20222, 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, -100, -100, ...
pragma solidity ^0.4.16; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract LTCoin { // Public variables of the token string public name; string public symbol; uint8 public decimals = 6; // 18 decimals is the stro...
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 LTCoin { string public name; string public symbol; uint8 public decimals = 6; uint256 public totalSupply; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; event Transfer(address indexed from, address indexed to, uin...
7,691,092
[ 1, 4625, 348, 7953, 560, 30, 225, 7224, 3152, 434, 326, 1147, 6549, 15105, 353, 326, 11773, 715, 22168, 805, 16, 4543, 12770, 518, 1220, 3414, 392, 526, 598, 777, 324, 26488, 1220, 6026, 279, 1071, 871, 603, 326, 16766, 716, 903, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 11807, 27055, 288, 203, 565, 533, 1071, 508, 31, 203, 565, 533, 1071, 3273, 31, 203, 565, 2254, 28, 1071, 15105, 273, 1666, 31, 203, 565, 2254, 5034, 1071, 2078, 3088, 1283, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, ...
./full_match/4/0x0e91b965a3f9174CFF8e4B9fb8B29f89F6C9Aaea/sources/contracts/Prose.sol
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds enumerability of all the token ids in the contract as well as all token ids owned by each account./ Mapping from owner to list of owned token IDs Mapping from token ID to index of the owner tokens list Array with all token ids, used f...
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { mapping(address => mapping(uint256 => uint256)) private _ownedTokens; mapping(uint256 => uint256) private _ownedTokensIndex; uint256[] private _allTokens; mapping(uint256 => uint256) private _allTokensIndex; } function supportsInterface(bytes4 ...
823,432
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1220, 4792, 392, 3129, 2710, 434, 288, 654, 39, 27, 5340, 97, 2553, 316, 326, 512, 2579, 716, 4831, 3557, 2967, 434, 777, 326, 1147, 3258, 316, 326, 6835, 487, 5492, 487, 777, 1147, 325...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 4232, 39, 27, 5340, 3572, 25121, 353, 4232, 39, 27, 5340, 16, 467, 654, 39, 27, 5340, 3572, 25121, 288, 203, 202, 6770, 12, 2867, 516, 2874, 12, 11890, 5034, 516, 2254, 5034, 3719, 3238, 389, 995, 329, 5157, 31, 20...
// File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal...
25 April 2022 16:00:00 GMT
uint256 public regularSaleDate = 1650902400;
10,414,446
[ 1, 4625, 348, 7953, 560, 30, 225, 6969, 432, 683, 330, 26599, 22, 2872, 30, 713, 30, 713, 21706, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 5034, 1071, 6736, 30746, 1626, 273, 2872, 5995, 3103, 16010, 31, 1377, 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.5.2; // File: contracts/ERC20Interface.sol // https://github.com/ethereum/EIPs/issues/20 interface ERC20 { function totalSupply() external view returns (uint supply); function balanceOf(address _owner) external view returns (uint balance); function transfer(address _to, uint _value) exte...
Exposing the enum values to external tools.
AuctionState constant public WAITING_FOR_FUNDING = AuctionState.WAITING_FOR_FUNDING;
5,418,524
[ 1, 4625, 348, 7953, 560, 30, 225, 1312, 24014, 326, 2792, 924, 358, 3903, 8513, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 432, 4062, 1119, 5381, 1071, 26859, 1360, 67, 7473, 67, 42, 5240, 1360, 273, 432, 4062, 1119, 18, 19046, 1360, 67, 7473, 67, 42, 5240, 1360, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
/** *Submitted for verification at Etherscan.io on 2021-06-10 */ /* 💎💎Ethereum Diamond💎💎 💎 Ethereum Diamond | $ETHD 💎 Token 💚 Fair Launch! ...
Checking this equates to ALL redistribution events are completed.
function EndCommunity() public onlyOwner returns (bool success) { require (lastEntryAllowed != 0, "All prizes must be disbursed before being able to close "); smallPrizeTotal = 0; mediumPrizeTotal = 0; largePrizeTotal = 0; lastEntryAllowed = 0; return true; ...
6,546,537
[ 1, 4625, 348, 7953, 560, 30, 225, 24471, 333, 1298, 815, 358, 8061, 5813, 4027, 2641, 854, 5951, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4403, 12136, 13352, 1435, 1071, 1338, 5541, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 2583, 261, 2722, 1622, 5042, 480, 374, 16, 315, 1595, 846, 3128, 1297, 506, 1015, 70, 295, 730, 1865, 3832, 7752, 358, 1746, 315, 17...
pragma solidity ^0.4.24; // File: openzeppelin-solidity/contracts/ownership/Ownable.sol /** * @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 owne...
* Round a real to the nearest integral real value./ First, truncate. High fractional bit is set. Round up. Rounding up for a negative number is rounding down.
function round(int256 realValue) internal pure returns (int256) { int216 ipart = fromReal(realValue); if ((fractionalBits(realValue) & (uint40(1) << (REAL_FBITS - 1))) > 0) { if (realValue < int256(0)) { ipart -= 1; ipart += 1; } } ...
1,299,128
[ 1, 4625, 348, 7953, 560, 30, 380, 11370, 279, 2863, 358, 326, 11431, 21423, 2863, 460, 18, 19, 5783, 16, 10310, 18, 15207, 20462, 2831, 353, 444, 18, 11370, 731, 18, 11370, 310, 731, 364, 279, 6092, 1300, 353, 13885, 2588, 18, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3643, 12, 474, 5034, 2863, 620, 13, 2713, 16618, 1135, 261, 474, 5034, 13, 288, 203, 3639, 509, 22, 2313, 2359, 485, 273, 628, 6955, 12, 7688, 620, 1769, 203, 3639, 309, 14015, 16744, 287, 6495, 12, 7688, 620, 13, 473...
./full_match/1/0x520353fe1e3c88b7C796d0c031190C5997a8f461/sources/browser/Token.sol
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18 and a {totalSupply} of the token. All four of these values are immutable: they can only be set once during construction./_name = "Yearn Swaping Finance";_symbol = "YLFI";
constructor () public { _name = "YearnSwaping.Finance"; _symbol = "YSFI"; _decimals = 18; _totalSupply = 25000000000000000000000; _balances[creator()] = _totalSupply; emit Transfer(address(0), creator(), _totalSupply); }
4,885,457
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11511, 326, 924, 364, 288, 529, 97, 471, 288, 7175, 5779, 11643, 288, 31734, 97, 598, 279, 805, 460, 434, 6549, 471, 279, 288, 4963, 3088, 1283, 97, 434, 326, 1147, 18, 4826, 12792, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 3885, 1832, 1071, 288, 203, 3639, 389, 529, 273, 315, 61, 73, 1303, 12521, 310, 18, 6187, 1359, 14432, 203, 3639, 389, 7175, 273, 315, 61, 55, 1653, 14432, 203, 3639, 389, 31734, 273, 6549, 31, 203, 3639, 389, 4963, 3088, ...
./partial_match/97/0xCBcac0Df42f4d672e3579fBef14720d3EbfeBE74/sources/BEP20.sol
* @dev Implementation of the {IBEP20} 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}. We have followed general OpenZeppelin guidelines: functions revert instead of returning `false` on failure. This behavio...
contract BEP20 is Ownable, IBEP20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; ...
11,398,359
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 434, 326, 288, 45, 5948, 52, 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, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 9722, 52, 3462, 353, 14223, 6914, 16, 467, 5948, 52, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 2874, 261, ...
./partial_match/3/0x8c6000488a6b742E6B3CF90Fd495C7630b8214aB/sources/LXTD_Token.sol
* @title LavevelToken @dev Contract to create the Kimera Token/
contract LXTD_Token is CrowdsaleToken { string public constant name = "LXTD_Token"; string public constant symbol = "LXTD"; uint32 public constant decimals = 8; }
16,624,154
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 511, 836, 941, 1345, 632, 5206, 13456, 358, 752, 326, 1475, 4417, 69, 3155, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 511, 3983, 40, 67, 1345, 353, 385, 492, 2377, 5349, 1345, 288, 203, 565, 533, 1071, 5381, 508, 273, 315, 48, 3983, 40, 67, 1345, 14432, 203, 565, 533, 1071, 5381, 3273, 273, 315, 48, 3983, 40, 14432, 203, 565, 2254, 1578...
./full_match/4/0xA6BfAa28adFD93EEBB8ac2d75Fd957390348049B/sources/k.sol
@notice Simple gas-optimized DAO core module.
contract KaliDAO is KaliDAOtoken, Multicall, NFThelper, ReentrancyGuard { EVENTS event NewProposal(address indexed proposer, uint256 indexed proposal, string description); event ProposalCancelled(address indexed proposer, uint256 indexed proposal); event ProposalSponsored(addr...
12,404,277
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 4477, 16189, 17, 16689, 1235, 463, 20463, 2922, 1605, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1475, 18083, 18485, 353, 1475, 18083, 18485, 2316, 16, 7778, 335, 454, 16, 423, 42, 1315, 1602, 16, 868, 8230, 12514, 16709, 288, 203, 18701, 9964, 55, 203, 203, 565, 871, 1166, 14592, 12, 2867, 8808, 450, 5607, 16, 2254, ...
/** *Submitted for verification at Etherscan.io on 2020-11-10 */ // SPDX-License-Identifier: MIT pragma solidity ^0.6.12; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, ...
week staking amount
mapping (uint256 => uint256) internal weeksTotal;
12,926,001
[ 1, 4625, 348, 7953, 560, 30, 225, 4860, 384, 6159, 3844, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2874, 261, 11890, 5034, 516, 2254, 5034, 13, 2713, 17314, 5269, 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, ...
./full_match/97/0x605Bf0d431f8b53400d1EB465bc29b41d2c0c002/sources/project_/contracts/Router1.sol
Initialize maxIterations value
constructor() { _rOwned[_msgSender()] = _rTotal; addAddress(_msgSender()); _lottoPotAddress = address(1); IPancakeRouter02 _pancakeRouter = IPancakeRouter02(0xdc4904b5f716Ff30d8495e35dC99c109bb5eCf81); address pancakePairAddress = IPancakeFactory(_pancakeRouter.factory()) .createPair(address...
3,271,731
[ 1, 4625, 348, 7953, 560, 30, 225, 9190, 943, 21213, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12316, 1435, 288, 203, 565, 389, 86, 5460, 329, 63, 67, 3576, 12021, 1435, 65, 273, 389, 86, 5269, 31, 203, 565, 527, 1887, 24899, 3576, 12021, 10663, 203, 565, 389, 23372, 869, 18411, 1887, 273, 1758, 12, 21, 1769, 203, 565, 2...
pragma solidity ^0.4.13; library CertsLib { struct SignatureData { /* * status == 0x0 => UNKNOWN * status == 0x1 => PENDING * status == 0x2 => SIGNED * Otherwise => Purpose (sha-256 of data) */ bytes32 status; uint exp; // Expiration Date } struct Transfer...
* Returns True if current time is in renewal period for a valid entity. False otherwise. @param self {object} - The data containing the entity mappings @param entityId {uint} - The id of the entity to check/
modifier isRenewalPeriod(Data storage self, uint entityId) { EntityData storage entity = self.entities[entityId]; require (entity.renewalPeriod > 0 && entityId > 0 && (entity.expiration - entity.renewalPeriod < now) && entity.status == 2); _; }
1,068,268
[ 1, 4625, 348, 7953, 560, 30, 380, 2860, 1053, 309, 783, 813, 353, 316, 15723, 287, 3879, 364, 279, 923, 1522, 18, 1083, 3541, 18, 632, 891, 365, 288, 1612, 97, 300, 1021, 501, 4191, 326, 1522, 7990, 632, 891, 15052, 288, 11890, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 9606, 353, 24058, 287, 5027, 12, 751, 2502, 365, 16, 2254, 15052, 13, 288, 203, 565, 3887, 751, 2502, 1522, 273, 365, 18, 9996, 63, 1096, 548, 15533, 203, 565, 2583, 261, 1096, 18, 1187, 359, 287, 5027, 405, 374, 597, 1505...
./partial_match/1/0x4fD4499867144c1878A8882483896ED937C7fe10/sources/Sts.sol
Minimum STS required to join DAO groups
uint256 public STS_DAO_min;
2,640,685
[ 1, 4625, 348, 7953, 560, 30, 225, 23456, 2347, 55, 1931, 358, 1233, 463, 20463, 3252, 7010, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 2347, 55, 67, 18485, 67, 1154, 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, -10...
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.7; import './Reward.sol'; import './Tether.sol'; contract DecentralBank { string public name = "Decentral Bank"; address public owner; Tether public tether; Reward public reward; address [] public stakers; mapping(address => uint) pu...
Update Staking Balance
isStaking[msg.sender] = true;
5,407,635
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 934, 6159, 30918, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 353, 510, 6159, 63, 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, -100, ...
pragma solidity ^0.4.18; // Project: Crypt2Pos // v5, 2018-02-15 // Copying in whole or in part is prohibited. // (A1) // The main contract for the sale and management of rounds. contract CrowdsaleL{ // For Round0, firstMint is: // 0000000000000000000000000000000000000000000000000000000000000000 ...
For bounty You must call a function to finalize Round 2 (only after the Round2) 3% - tokens to bounty wallet after freeze (80% for investors) *** CHECK THESE NUMBERS ***
function finalize2() public { require(wallets[uint8(Roles.manager)] == msg.sender || wallets[uint8(Roles.beneficiary)] == msg.sender); require(bounty); bounty = false; token.mint(wallets[uint8(Roles.bounty)],allToken.mul(3).div(80)); }
14,065,689
[ 1, 4625, 348, 7953, 560, 30, 225, 2457, 324, 592, 93, 4554, 1297, 745, 279, 445, 358, 12409, 11370, 576, 261, 3700, 1839, 326, 11370, 22, 13, 890, 9, 300, 2430, 358, 324, 592, 93, 9230, 1839, 16684, 261, 3672, 9, 364, 2198, 395, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 12409, 22, 1435, 1071, 288, 203, 3639, 2583, 12, 8019, 2413, 63, 11890, 28, 12, 6898, 18, 4181, 25887, 422, 1234, 18, 15330, 747, 17662, 2413, 63, 11890, 28, 12, 6898, 18, 70, 4009, 74, 14463, 814, 25887, 422, 1234, 1...
./full_match/97/0x1D1bB1B8e428661F8a5F8549987331F12729150e/sources/project_/contracts/ERC20Farm.sol
@notice Calculates Price Per Share/
function pricePerShare() public view returns (uint256) { if (keepReflectionOnDeposit && stakeTotalShares > 1000) { return stakeToken.balanceOf(address(this)) / stakeTotalShares; } return defaultStakePPS; }
5,028,237
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 26128, 20137, 5722, 25805, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6205, 2173, 9535, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 309, 261, 10102, 9801, 1398, 758, 1724, 597, 384, 911, 5269, 24051, 405, 4336, 13, 288, 203, 5411, 327, 384, 911, 1345, 18, 12296, 951, 12,...
./full_match/44787/0x6c4561BcDac58d0E5914ccE10A6ff953CF4c456E/sources/project_/contracts/cheese.sol
There's only one cCHEESE, but it can be shared in slices of 0.00000000000000001/
contract Cheese is ERC20, ERC20Burnable { pragma solidity ^0.8.7; constructor() ERC20("cCHEESE", "CHEESE") { uint256 total = 1 * 10 ** decimals(); _mint(msg.sender, total); super.transfer(vault, total/4); } function transfer(address recipient, uint256 amount) override public retur...
13,244,256
[ 1, 4625, 348, 7953, 560, 30, 225, 6149, 1807, 1338, 1245, 276, 5007, 41, 1090, 16, 1496, 518, 848, 506, 5116, 316, 12390, 434, 374, 18, 12648, 12648, 21, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 22682, 3392, 353, 4232, 39, 3462, 16, 4232, 39, 3462, 38, 321, 429, 288, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 27, 31, 203, 565, 3885, 1435, 4232, 39, 3462, 2932, 71, 5007, 41, 1090, 3113, 315, 5007, 4...
pragma solidity ^0.4.16; interface tokenRecipient { function receiveApproval(address _from, uint32 _value, address _token, bytes _extraData) public; } contract owned { address public owner; function owned() { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); ...
This notifies clients about the amount burnt
event Burn(address indexed from, uint32 value);
10,776,830
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 19527, 7712, 2973, 326, 3844, 18305, 88, 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, 3639, 871, 605, 321, 12, 2867, 8808, 628, 16, 2254, 1578, 460, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/1/0xcC5676f9901360F4308906ec1890D80E0833E66d/sources/ONEPIECE.sol
exlcude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount
contract ONEPIECE is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; uint256 public maxTransactionAmount; uint256...
4,042,681
[ 1, 4625, 348, 7953, 560, 30, 225, 431, 17704, 1317, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, 279, 5859, 13667, 312, 6388, 5574, 18, 5502, 7412, 380, 869, 14, 4259, 6138, 3377, 506, 3221, 358, 279, 4207, 7412, 3844, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 15623, 24414, 1441, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259, 3...
/* ____ __ __ ____ / __ \____ _____/ /_____ / /_ / __ \_________ ____ / /_/ / __ \/ ___/ //_/ _ \/ __/ / / / / ___/ __ \/ __ \ / _, _/ /_/ / /__/ ,< / __/ /_ / /_/ / / / /_/ / /_/ / /_/ |_|\____/\___/_/|_|\___/\__/ /_____/_/ \____/ .___/ ...
#### Update the given pool's ERC20 reward per block. Can only be called by the owner.
function set(uint256 _pid, uint256 _rewardPerBlock, bool _withUpdate) public onlyOwner { poolInfo[_pid].rewardPerBlock = _rewardPerBlock; if (_withUpdate) { updatePool(_pid); } }
6,013,977
[ 1, 4625, 348, 7953, 560, 30, 11849, 7, 2315, 326, 864, 2845, 1807, 4232, 39, 3462, 19890, 1534, 1203, 18, 4480, 1338, 506, 2566, 635, 326, 3410, 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, 565, 445, 444, 12, 11890, 5034, 389, 6610, 16, 2254, 5034, 389, 266, 2913, 2173, 1768, 16, 1426, 389, 1918, 1891, 13, 1071, 1338, 5541, 288, 203, 3639, 2845, 966, 63, 67, 6610, 8009, 266, 2913, 2173, 1768, 273, 389, 266, 2913, ...
// SPDX-License-Identifier: MIT /* * No presale * No limit for sell * No Team Tokens * Every transaction 3% Tokens Burned 0.5% To Vitalik Buterin 0.5% To Shiba Doge * Deflationary supply * 100% LIQUIDITY SUPPLY * To buy In Uniswap, Slippage tolerance setting: >=5% * AS THIS IS A COMMUNTY TOKEN OWNERSHIP WI...
* @dev Interface of the ERC20 standard as defined in the EIP./
interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint2...
1,148,209
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6682, 434, 326, 4232, 39, 3462, 4529, 487, 2553, 316, 326, 512, 2579, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 654, 39, 3462, 288, 203, 565, 445, 2078, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 11013, 951, 12, 2867, 2236, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 741...
./partial_match/3/0xD675a50E477c035BCAA8191a9715306640683732/sources/Lock.sol
* @dev Allows user to lock asset. In case of ERC-20 token the user will first have to approve the contract to spend on his/her behalf @param tokenAddress Address of the token to be locked @param amount Amount of tokens to lock @param endDate Duration for which tokens to be locked. In seconds. the expiry date @param ben...
function lock( address tokenAddress, uint256 amount, uint256 endDate, address payable beneficiary, uint256 amountThreshold, uint256 claimMode, uint256 claimPercentage ) external payable whenNotPaused canLockAsset(tokenAddres...
5,119,558
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25619, 729, 358, 2176, 3310, 18, 657, 648, 434, 4232, 39, 17, 3462, 1147, 326, 729, 903, 1122, 1240, 358, 6617, 537, 326, 6835, 358, 17571, 603, 18423, 19, 1614, 12433, 6186, 632, 891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 2176, 12, 203, 3639, 1758, 1147, 1887, 16, 203, 3639, 2254, 5034, 3844, 16, 203, 3639, 2254, 5034, 13202, 16, 203, 3639, 1758, 8843, 429, 27641, 74, 14463, 814, 16, 203, 3639, 2254, 5034, 3844, 7614, 16, 203, 3639, 2254...
./partial_match/1/0x3Fdb3bd1ab409F0CBB2c4d919b2205ac881B99ED/sources/src/governor/GovernorTimelockControl.sol
* @dev Address through which the governor executes action. In this case, the timelock./
function _executor() internal view virtual override returns (address) { return address($timelock); }
9,366,537
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 5267, 3059, 1492, 326, 314, 1643, 29561, 11997, 1301, 18, 657, 333, 648, 16, 326, 1658, 292, 975, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 21097, 1435, 2713, 1476, 5024, 3849, 1135, 261, 2867, 13, 288, 203, 3639, 327, 1758, 4372, 8584, 292, 975, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity =0.7.6; pragma abicoder v2; // Interfaces import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import {IERC721Receiver} from "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import {ISwapRouter} from "@uniswap/v3-periphery/co...
* @dev only receive eth from weth contract and controller./
receive() external payable { require(msg.sender == address(weth) || msg.sender == address(controller), "can't receive eth"); }
7,264,196
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1338, 6798, 13750, 628, 341, 546, 6835, 471, 2596, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 6798, 1435, 3903, 8843, 429, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 1758, 12, 91, 546, 13, 747, 1234, 18, 15330, 422, 1758, 12, 5723, 3631, 315, 4169, 1404, 6798, 13750, 8863, 203, 565, 289, 203, 203, 2, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; // Part: IBasicRewards interface IBasicRewards { function stakeFor(address, uint256) external returns (bool); function balanceOf(address) external view returns (uint256); function withdrawAll(bool) external; function getReward() external ret...
@notice Check if the index has been marked as claimed. @param index - the index to check @return true if index has been marked as claimed.
function isClaimed(uint256 index) public view returns (bool) { uint256 claimedWordIndex = index / 256; uint256 claimedBitIndex = index % 256; uint256 claimedWord = claimedBitMap[week][claimedWordIndex]; uint256 mask = (1 << claimedBitIndex); return claimedWord & mask == mask;...
5,713,448
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2073, 309, 326, 770, 711, 2118, 9350, 487, 7516, 329, 18, 632, 891, 770, 300, 326, 770, 358, 866, 632, 2463, 638, 309, 770, 711, 2118, 9350, 487, 7516, 329, 18, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 9762, 329, 12, 11890, 5034, 770, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 5034, 7516, 329, 3944, 1016, 273, 770, 342, 8303, 31, 203, 3639, 2254, 5034, 7516, 329, 5775, 1016, 273, 770, 738, 8303, ...
/** * Edgeless Casino Proxy Contract. Serves as a proxy for game functionality. * Allows the players to deposit and withdraw funds. * Allows authorized addresses to make game transactions. * author: Julia Altenried **/ pragma solidity ^0.4.17; contract token { function transferFrom(address sender, a...
* accepts deposits for an arbitrary address. retrieves tokens from the message sender and adds them to the balance of the specified address. edgeless tokens do not have any decimals, but are represented on this contract with 4 decimals. @param receiver address of the receiver numTokens number of tokens to depos...
function deposit(address receiver, uint numTokens, bool chargeGas) public isAlive{ require(numTokens > 0); uint value = safeMul(numTokens,10000); if(chargeGas) value = safeSub(value, msg.gas/1000 * gasPrice); assert(edg.transferFrom(msg.sender, address(this), numTokens)); balanceOf[receiver] = safeAdd(balan...
12,636,027
[ 1, 4625, 348, 7953, 560, 30, 380, 8104, 443, 917, 1282, 364, 392, 11078, 1758, 18, 9023, 2430, 628, 326, 883, 5793, 471, 4831, 2182, 358, 326, 11013, 434, 326, 1269, 1758, 18, 25929, 12617, 2430, 741, 486, 1240, 1281, 15105, 16, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 443, 1724, 12, 2867, 5971, 16, 2254, 818, 5157, 16, 1426, 13765, 27998, 13, 1071, 353, 10608, 95, 203, 202, 202, 6528, 12, 2107, 5157, 405, 374, 1769, 203, 202, 202, 11890, 460, 273, 4183, 27860, 12, 2107, 5157, 16, 2...
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.11; import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "./b...
* @notice Compares two fixed point decimals. @param self The left hand number to compare. @param value The right hand number to compare. @return When the left hand number is less than the right hand number this returns -1, when the left hand number is greater than the right hand number this returns 1...
function cmp(Number memory self, Number memory value) internal pure returns (int256) { if (self.n < value.n) { return -1; } if (self.n > value.n) { return 1; } return 0; }
157,647
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 5427, 4807, 2795, 5499, 1634, 15105, 18, 632, 891, 365, 225, 1021, 2002, 948, 1300, 358, 3400, 18, 632, 891, 460, 1021, 2145, 948, 1300, 358, 3400, 18, 632, 2463, 1377, 5203, 326, 2002, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 9411, 12, 1854, 3778, 365, 16, 3588, 3778, 460, 13, 2713, 16618, 1135, 261, 474, 5034, 13, 288, 203, 565, 309, 261, 2890, 18, 82, 411, 460, 18, 82, 13, 288, 203, 1377, 327, 300, 21, 31, 203, 565, 289, 203, 203, 56...
./full_match/1/0xb4a501523996961131BEA9e2e45ECF702b0C7294/sources/browser/Unibase.sol
returns lp staking reward in UBASE, early and continuous stakers get 3x rewards
function calcStakingRewards(address _user) public view returns(uint) { uint8 multipler; if(daysPastDeployment().sub(daysSinceInitialDeposit(_user)) <= 30) { multipler = 3; } else { multipler = 0; }...
16,594,972
[ 1, 4625, 348, 7953, 560, 30, 1135, 12423, 384, 6159, 19890, 316, 587, 8369, 16, 11646, 471, 17235, 384, 581, 414, 336, 890, 92, 283, 6397, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7029, 510, 6159, 17631, 14727, 12, 2867, 389, 1355, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 12, 11890, 13, 203, 565, 288, 27699, 3639, 2254, 28, 3309, 20728, 31, 203, 540, 309, 12, 9810, 52, 689, 6733, ...
./partial_match/1/0x38dF38810C19F56748D079BbF42a993178f48627/sources/TRACIOSale.sol
* @dev Returns the maximum contribution for each cap tier. @return Maximum contribution per account tier/
function getCapsPerAccount() external view returns ( uint256, uint256, uint256, uint256 ) { return (_capsPerAccount[0], _capsPerAccount[1], _capsPerAccount[2], _capsPerAccount[3]); }
4,095,972
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 4207, 24880, 364, 1517, 3523, 17742, 18, 632, 2463, 18848, 24880, 1534, 2236, 17742, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1927, 6679, 2173, 3032, 1435, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 203, 5411, 2254, 5034, 16, 203, 5411, 2254, 5034, 16, 203, 5411, 2254, 5034, 16, 203, 5411, 2254, 5034, 203, 3639, 262, 203, 565, 288...
// SPDX-License-Identifier: UNLICENSED // (c) Copyright 2021 YieldMagic LLC. All rights reserved. // // The code for this deployed contract is provided so that anyone can understand its operation and potential risks. // Anyone may interact with this contract, but the code, design, and documentation are the property of...
Get the amount of token0 assigned to the pool
uint256 dustTokens = dust[pool.masterChef][pool.masterChefPoolId][pool.token0];
13,035,098
[ 1, 4625, 348, 7953, 560, 30, 225, 968, 326, 3844, 434, 1147, 20, 6958, 358, 326, 2845, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 302, 641, 5157, 273, 302, 641, 63, 6011, 18, 7525, 39, 580, 74, 6362, 6011, 18, 7525, 39, 580, 74, 25136, 6362, 6011, 18, 2316, 20, 15533, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// BK Ok pragma solidity 0.5.16; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior...
BK Ok - Modifier for stake(), restake(), acceptMigration(), distributeRewards() and stopAcceptingNewStakes() BK Ok BK Ok
modifier onlyWhenAcceptingNewStakes() { require(acceptingNewStakes && !releasingAllStakes, "StakingContract: not accepting new stakes"); _; }
13,011,250
[ 1, 4625, 348, 7953, 560, 30, 225, 605, 47, 16154, 300, 12832, 364, 384, 911, 9334, 3127, 911, 9334, 2791, 10224, 9334, 25722, 17631, 14727, 1435, 471, 2132, 5933, 310, 1908, 510, 3223, 1435, 605, 47, 16154, 605, 47, 16154, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 9434, 5933, 310, 1908, 510, 3223, 1435, 288, 203, 3639, 2583, 12, 9436, 310, 1908, 510, 3223, 597, 401, 16599, 11730, 1595, 510, 3223, 16, 315, 510, 6159, 8924, 30, 486, 25806, 394, 384, 3223, 8863, 203, 203, 363...
pragma solidity 0.5.17; pragma experimental ABIEncoderV2; // Contracts import "./DynamicUpgradeableStorage.sol"; /*****************************************************************************************************/ /** WARNING *...
****************************************************************************************************/* WARNING **/* THIS CONTRACT IS AN UPGRADEABLE FACET! **/* --------------...
contract DynamicUpgradeable is DynamicUpgradeableStorage { import "./DynamicUpgradeableStorage.sol"; function upgradeProxyTo(address newImplementation) public { require(msg.sender == address(logicRegistry), "MUST_BE_LOGIC_REGISTRY"); implementationStored = newImplementation; _implementation...
1,035,751
[ 1, 4625, 348, 7953, 560, 30, 19756, 5021, 636, 5549, 14, 4766, 2398, 9744, 4766, 2398, 2826, 20308, 17311, 20676, 8020, 2849, 1268, 4437, 8175, 7376, 24554, 1639, 2782, 478, 6312, 56, 5, 11794, 2826, 20308, 225, 8879, 1271, 7620, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 12208, 10784, 429, 353, 12208, 10784, 429, 3245, 288, 203, 203, 5666, 25165, 9791, 10784, 429, 3245, 18, 18281, 14432, 203, 565, 445, 8400, 3886, 774, 12, 2867, 394, 13621, 13, 1071, 288, 203, 3639, 2583, 12, 3576, 18, 15330...
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.11; /** * @title Simple vote system * @dev Implements voting process. */ contract SimpleVote { struct Voter { bool voted; // if true, that person already voted uint vote; // index of the voted proposal } struct Proposal { ...
number of accumulated votes
uint voteCount;
398,305
[ 1, 4625, 348, 7953, 560, 30, 225, 1300, 434, 24893, 19588, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 12501, 1380, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: MIT /** */ pragma solidity ^0.8.4; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data....
Token name Token symbol Mapping from token ID to owner address Mapping from token ID to approved address Mapping from owner to operator approvals
contract STACFlyer is Context, ERC165, IERC721, IERC721Metadata, Ownable { using Address for address; using Strings for uint256; string private _name; string private _symbol; mapping(uint256 => address) private _owners; mapping(uint256 => address) private _tokenApprovals; mapping(addres...
13,377,943
[ 1, 4625, 348, 7953, 560, 30, 225, 3155, 508, 3155, 3273, 9408, 628, 1147, 1599, 358, 3410, 1758, 9408, 628, 1147, 1599, 358, 20412, 1758, 9408, 628, 3410, 358, 3726, 6617, 4524, 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, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2347, 2226, 42, 715, 264, 353, 1772, 16, 4232, 39, 28275, 16, 467, 654, 39, 27, 5340, 16, 467, 654, 39, 27, 5340, 2277, 16, 14223, 6914, 288, 203, 565, 1450, 5267, 364, 1758, 31, 203, 565, 1450, 8139, 364, 2254, 5034, ...
pragma solidity 0.4.13; /** * @title Wallet Getter Library * @author Majoolr.io * * version 1.0.0 * Copyright (c) 2017 Majoolr, LLC * The MIT License (MIT) * https://github.com/Majoolr/ethereum-libraries/blob/master/LICENSE * * The Wallet Library family is inspired by the multisig wallets built by Consensys ...
set the index to the index of the existing transaction
_number--;
2,063,541
[ 1, 4625, 348, 7953, 560, 30, 225, 444, 326, 770, 358, 326, 770, 434, 326, 2062, 2492, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1850, 389, 2696, 413, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract GovToken is ERC20, Ownable { /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fro...
First check most recent balance Next check implicit zero balance
function getPriorVotes(address account, uint blockNumber) public view returns (uint256) { require(blockNumber < block.number, "GovToken::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } if (...
5,415,884
[ 1, 4625, 348, 7953, 560, 30, 225, 5783, 866, 4486, 8399, 11013, 4804, 866, 10592, 3634, 11013, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 1689, 2432, 29637, 12, 2867, 2236, 16, 2254, 1203, 1854, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 2629, 1854, 411, 1203, 18, 2696, 16, 315, 43, 1527, 1345, 2866, 588, 25355, 29637, 30, 486, ...
./partial_match/137/0xABa4Aa7376a5c4dbF9D0ed14Ac867fb9c40AdD5b/sources/PepemonFactory.sol
**********************************|* @notice Transfers amount amount of an _id from the _from address to the _to address specified @param _from Source address @param _to Target address @param _id ID of the token type @param _amount Transfered amount @param _data Additional data with no specified format...
{ require((msg.sender == _from) || isApprovedForAll(_from, msg.sender), "ERC1155#safeTransferFrom: INVALID_OPERATOR"); require(_to != address(0),"ERC1155#safeTransferFrom: INVALID_RECIPIENT"); _safeTransferFrom(_from, _to, _id, _amount); _callonERC1155Received(_from, _to, _id, _amou...
3,520,480
[ 1, 4625, 348, 7953, 560, 30, 20210, 14, 96, 14, 632, 20392, 2604, 18881, 3844, 3844, 434, 392, 389, 350, 628, 326, 389, 2080, 1758, 358, 326, 389, 869, 1758, 1269, 632, 891, 389, 2080, 565, 4998, 1758, 632, 891, 389, 869, 1377, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12443, 3576, 18, 15330, 422, 389, 2080, 13, 747, 353, 31639, 1290, 1595, 24899, 2080, 16, 1234, 18, 15330, 3631, 315, 654, 39, 2499, 2539, 7, 4626, 5912, 1265, 30, 10071, 67, 26110, 8863, 203, 3639, 258...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be...
* @dev Transfer farm to a new controller @param _farmAddress Contract address of farm to transfer @param _newController The new controller which receives the farm/ Validate parameters Load state Validate state Update state Register this farm in the new controller Remove this farm from controller
function transferFarm(address _farmAddress, address _newController) public onlyOwner { require(_newController != address(0), 'newController = 0'); require(_newController != address(this), 'newController = this'); Farm storage farm = farms[_farmAddress]; require(farm.farmStartedAtBlock > 0,...
11,739,325
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 12279, 284, 4610, 358, 279, 394, 2596, 632, 891, 389, 74, 4610, 1887, 13456, 1758, 434, 284, 4610, 358, 7412, 632, 891, 389, 2704, 2933, 1021, 394, 2596, 1492, 17024, 326, 284, 4610, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 7412, 42, 4610, 12, 2867, 389, 74, 4610, 1887, 16, 1758, 389, 2704, 2933, 13, 203, 565, 1071, 203, 565, 1338, 5541, 203, 225, 288, 203, 565, 2583, 24899, 2704, 2933, 480, 1758, 12, 20, 3631, 296, 2704, 2933, 273, 374,...
/** * This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net * * Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt * ** Code Modified by : TokenMagic ** Change Log: *** Solidity version upgra...
* Allow crowdsale owner to close early or extend the crowdsale. This is useful e.g. for a manual soft cap implementation: - after X amount is reached determine manual closing This may put the crowdsale to an invalid state, but we trust owners know what they are doing./
function setEndsAt(uint time) onlyOwner public { require(now < time && startsAt < time); endsAt = time; emit EndsAtChanged(endsAt); }
1,815,189
[ 1, 4625, 348, 7953, 560, 30, 380, 7852, 276, 492, 2377, 5349, 3410, 358, 1746, 11646, 578, 2133, 326, 276, 492, 2377, 5349, 18, 1220, 353, 5301, 425, 18, 75, 18, 364, 279, 11297, 8971, 3523, 4471, 30, 300, 1839, 1139, 3844, 353, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 19743, 87, 861, 12, 11890, 813, 13, 1338, 5541, 1071, 288, 203, 565, 2583, 12, 3338, 411, 813, 597, 2542, 861, 411, 813, 1769, 203, 565, 3930, 861, 273, 813, 31, 203, 565, 3626, 1374, 2377, 861, 5033, 12, 5839, 861, ...
pragma solidity ^0.8.0; import "../token/SyntheticToken.sol"; import "./UniProxy.sol"; import "../utils/math/SafeMath.sol"; import "./CompProxy.sol"; import "./LandOracleProxy.sol"; import "../access/Ownable.sol"; import "../token/ProperlyToken.sol"; contract CollateralAndMint is Ownable { using SafeMath for uint2...
User sends ETH as collateral though this function. We set his balance and borrow limit. We re-direct the deposit to Compound Protocol. We get the new balance total of Comp on our smart contract. Connect the amount that belongs to user with his wallet address. We replace the last balance with the new balance.
function collateralizeEth() public payable { calculateCollateralBalance(msg.value, 0); uint256 cETHNewBalance = ICompProxy(compAddress).balanceOf(address(this)); cETH[msg.sender] = cETHNewBalance.sub(cETHCurrentBalance); cETHCurrentBalance = cETHNewBalance; }
12,920,632
[ 1, 4625, 348, 7953, 560, 30, 225, 2177, 9573, 512, 2455, 487, 4508, 2045, 287, 11376, 333, 445, 18, 225, 1660, 444, 18423, 11013, 471, 29759, 1800, 18, 1660, 283, 17, 7205, 326, 443, 1724, 358, 21327, 4547, 18, 1660, 336, 326, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4508, 2045, 287, 554, 41, 451, 1435, 1071, 8843, 429, 288, 203, 3639, 4604, 13535, 2045, 287, 13937, 12, 3576, 18, 1132, 16, 374, 1769, 203, 3639, 2254, 5034, 276, 1584, 44, 1908, 13937, 273, 203, 5411, 467, 2945, 3886,...
./full_match/137/0xE45d523E93C9C5Ceb3cB1fdfa90e2bbEE9DCc324/sources/ForgeToken.sol
* @dev Implementation of the {IERC165} interface. Contracts may inherit from this and call {_registerInterface} to declare their support of an interface./
abstract contract ERC165 is IERC165 { bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; mapping(bytes4 => bool) private _supportedInterfaces; } constructor() { _registerInterface(_INTERFACE_ID_ERC165); } function supportsInterface(bytes4 interfaceId) public view ...
4,771,119
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 434, 326, 288, 45, 654, 39, 28275, 97, 1560, 18, 30131, 2026, 6811, 628, 333, 471, 745, 288, 67, 4861, 1358, 97, 358, 14196, 3675, 2865, 434, 392, 1560, 18, 19, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17801, 6835, 4232, 39, 28275, 353, 467, 654, 39, 28275, 288, 203, 565, 1731, 24, 3238, 5381, 389, 18865, 67, 734, 67, 654, 39, 28275, 273, 374, 92, 1611, 1403, 71, 29, 69, 27, 31, 203, 203, 565, 2874, 12, 3890, 24, 516, 1426,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, s...
Number of tokens can't be 0. Check that the number of tokens requested doesn't exceed the max. allowed. Check that the number of tokens requested wouldn't exceed what's left. Check that the right amount of Ether was sent. For each token requested, mint one.
function mint(uint256 numberOfTokens) public payable { require(numberOfTokens != 0, 'You need to mint at least 1 token'); require(numberOfTokens <= maxMint, 'You can only mint 10 tokens at a time'); require(totalSupply().add(numberOfTokens) <= MAX_TOKENS, 'Minting would exceed max. supply...
1,679,619
[ 1, 4625, 348, 7953, 560, 30, 225, 3588, 434, 2430, 848, 1404, 506, 374, 18, 2073, 716, 326, 1300, 434, 2430, 3764, 3302, 1404, 9943, 326, 943, 18, 2935, 18, 2073, 716, 326, 1300, 434, 2430, 3764, 4102, 82, 1404, 9943, 4121, 1807, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 4202, 445, 312, 474, 12, 11890, 5034, 7922, 5157, 13, 1071, 8843, 429, 288, 203, 3639, 2583, 12, 2696, 951, 5157, 480, 374, 16, 296, 6225, 1608, 358, 312, 474, 622, 4520, 404, 1147, 8284, 203, 3639, 2583, 12, 2696, 951, 5157, 1...
pragma solidity ^0.4.19; // DELEGATION SC v1.1 // (c) SecureVote 2018 // Author: Max Kaye <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5b363a231b283e382e293e752d342f3e">[email&#160;protected]</a>> // Released under MIT licence // the most up-to-date version of the contract lives at delega...
but if we don&#39;t have a delegation in this contract then resolve according the prev contract
address _dlgt;
10,917,212
[ 1, 4625, 348, 7953, 560, 30, 225, 1496, 309, 732, 2727, 18642, 5520, 31, 88, 1240, 279, 23595, 316, 333, 6835, 1508, 2245, 4888, 326, 2807, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1758, 389, 5761, 4521, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.7; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzep...
update user index for each reward, used to calculate the correct reward amount of rewards for each user
_updateUserIdx(_user, _amount);
11,824,167
[ 1, 4625, 348, 7953, 560, 30, 225, 1089, 729, 770, 364, 1517, 19890, 16, 1399, 358, 4604, 326, 3434, 19890, 3844, 434, 283, 6397, 364, 1517, 729, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 389, 2725, 1299, 4223, 24899, 1355, 16, 389, 8949, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.17; pragma experimental ABIEncoderV2; /* Taken from https://github.com/jbaylina/ecsol and https://github.com/1Address/ecsol License: GPL-3.0 */ contract Secp256k1 { uint256 constant public gx = 0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798; uint256 constant public gy...
We follow the equations described in https:pdfs.semanticscholar.org/5c64/29952e08025a9649c2b0ba32518e9a7fb5c2.pdf Section 5 u1, s1, u2, s2 In case of zs[0] == zs[2] && zs[1] == zs[3], double function should be usedhrh^2 h^3 qx = -h^3 -2u1h^2+r^2 qy = -s1*z1*h^3+r(u1*h^2 -x^3) qz = h*z1*z2
function jacAdd( uint256 _x1, uint256 _y1, uint256 _z1, uint256 _x2, uint256 _y2, uint256 _z2, uint256 _pp) internal pure returns (uint256, uint256, uint256) { if (_x1==0 && _y1==0) return (_x2, _y2, _z2); if (_x2==0 && _y2==0) return (_x1, _y1, _z1); zs[0]...
12,997,043
[ 1, 4625, 348, 7953, 560, 30, 225, 1660, 2805, 326, 30369, 11893, 316, 2333, 30, 7699, 87, 18, 18756, 343, 355, 297, 18, 3341, 19, 25, 71, 1105, 19, 22, 2733, 9401, 73, 20, 3672, 2947, 69, 29, 1105, 29, 71, 22, 70, 20, 12124, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 1377, 445, 20138, 986, 12, 203, 565, 2254, 5034, 389, 92, 21, 16, 203, 565, 2254, 5034, 389, 93, 21, 16, 203, 565, 2254, 5034, 389, 94, 21, 16, 203, 565, 2254, 5034, 389, 92, 22, 16, 203, 565, 2254, 5034, 389, 93, 22, 16, ...
./full_match/5/0x5137ABFf24ad5b7f8079F7f9BfCDB5645e490526/sources/project_/contracts/ERC1410/ERC1410Basic.sol
@notice Transfer the ownership of tokens from sender's partition to receiver's partition @param _partition The sender's partititon @param _to Receiver's address @param _value Amount of tokens to transfer @param _data Additional transfer metadata @return Receiver's partition @dev If the receiver's partition doesn't exi...
function transferByPartition(bytes32 _partition, address _to, uint256 _value, bytes calldata _data) external returns (bytes32) { _transferByPartition(msg.sender, _to, _partition, _value, _data, address(0), ""); }
11,594,594
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 12279, 326, 23178, 434, 2430, 628, 5793, 1807, 3590, 358, 5971, 1807, 3590, 632, 891, 389, 10534, 1021, 5793, 1807, 1087, 305, 26949, 632, 891, 389, 869, 31020, 1807, 1758, 632, 891, 389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7412, 858, 7003, 12, 3890, 1578, 389, 10534, 16, 1758, 389, 869, 16, 2254, 5034, 389, 1132, 16, 1731, 745, 892, 389, 892, 13, 3903, 1135, 261, 3890, 1578, 13, 288, 203, 3639, 389, 13866, 858, 7003, 12, 3576, 18, 15330...
./partial_match/42/0x4B6F0A6f4EF25C465449B9A35B587b994EceDC04/sources/Depot.sol
* @notice Calculate how many SNX you will receive if you transfer an amount of ether. @param amount The amount of ether (in wei) you want to ask about/ How much is the ETH they sent us worth in sUSD (ignoring the transfer fee)? Now, how many SNX will that USD amount buy?
function synthetixReceivedForEther(uint amount) public view returns (uint) { uint valueSentInSynths = amount.multiplyDecimal(exchangeRates().rateForCurrency(ETH)); return synthetixReceivedForSynths(valueSentInSynths); }
3,462,277
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 9029, 3661, 4906, 14204, 60, 1846, 903, 6798, 309, 1846, 7412, 540, 392, 3844, 434, 225, 2437, 18, 632, 891, 3844, 1021, 3844, 434, 225, 2437, 261, 267, 732, 77, 13, 1846, 2545, 358, 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, 6194, 451, 278, 697, 8872, 1290, 41, 1136, 12, 11890, 3844, 13, 1071, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 2254, 460, 7828, 382, 10503, 451, 87, 273, 3844, 18, 7027, 1283, 5749, 12, 16641, 20836, 7675, 5141, 1290...
/** *Submitted for verification at Etherscan.io on 2021-08-21 */ // SPDX-License-Identifier: MIT pragma solidity =0.7.6; pragma abicoder v2; library FullMath { function mulDiv( uint256 a, uint256 b, uint256 denominator ) internal pure returns (uint256 result) { uint256 prod0; ...
@notice Add liquidity to an initialized pool compute the liquidity amount
function _addLiquidity(uint amount0Desired, uint amount1Desired, uint amount0Min, uint amount1Min) internal returns ( uint128 liquidity, uint256 amount0, uint256 amount1 ) { PoolAddress.PoolKey memory poolKey = { ...
8,062,828
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1436, 4501, 372, 24237, 358, 392, 6454, 2845, 3671, 326, 4501, 372, 24237, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1289, 48, 18988, 24237, 12, 11890, 3844, 20, 25683, 16, 2254, 3844, 21, 25683, 16, 2254, 3844, 20, 2930, 16, 2254, 3844, 21, 2930, 13, 203, 3639, 2713, 203, 3639, 1135, 261, 203, 5411, 2254, 10392, 4501, 372, 24237...
pragma solidity ^0.5.0; contract Betting { enum colorChoices {red, blue, green, yellow, purple, orange} // feel free to change the colors, it has no impact on the code at all. struct Bets { colorChoices colorSelected; uint256 amountBet; address payable gambler; } mapping(bytes32...
divide the pool by the amount of winners.
uint256 splitWinnings = poolAmount / index;
1,839,129
[ 1, 4625, 348, 7953, 560, 30, 225, 12326, 326, 2845, 635, 326, 3844, 434, 5657, 9646, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 2254, 5034, 1416, 18049, 82, 899, 273, 2845, 6275, 342, 770, 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, -1...
./full_match/137/0xD37090B6f8ba11196986fa931500A57Fd99ab3FB/sources/Multicall.sol
@notice A fork of Uniswap Interface Multicall2 @title NftShopInterfaceMulticall - Aggregate results from multiple read-only function calls
contract Multicall { pragma solidity ^0.8.9; struct Call { address target; uint256 gasLimit; bytes callData; } struct Result { bool success; uint256 gasUsed; bytes returnData; } function getCurrentBlockTimestamp() public view returns (uint256 timesta...
3,767,254
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 432, 12515, 434, 1351, 291, 91, 438, 6682, 7778, 335, 454, 22, 632, 2649, 423, 1222, 7189, 1358, 5049, 335, 454, 300, 18059, 1686, 628, 3229, 855, 17, 3700, 445, 4097, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7778, 335, 454, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 29, 31, 203, 565, 1958, 3049, 288, 203, 3639, 1758, 1018, 31, 203, 3639, 2254, 5034, 16189, 3039, 31, 203, 3639, 1731, 745, 751, 31, 203, 565, 289, ...
./full_match/1/0x938E344420E20E7EfdDfF1A687676508302Dd68B/sources/contracts/crowdsale.sol
UPDATE REMAINING TOKENS
remainingTokens -= amount * 10**18;
8,286,692
[ 1, 4625, 348, 7953, 560, 30, 225, 11028, 2438, 19803, 1360, 14275, 55, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 4463, 5157, 3947, 3844, 380, 1728, 636, 2643, 31, 540, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x8a0F72aABfeE510e9D88bCc6D426Fd47b8694176/sources/contracts/libraries/Proxy.sol
* @notice Queries the implementation address. @return Implementation address./
function implementation() external proxyCallIfNotAdmin returns (address) { return _getImplementation(); }
3,111,040
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 30189, 326, 4471, 1758, 18, 632, 2463, 25379, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4471, 1435, 3903, 2889, 1477, 10288, 4446, 1135, 261, 2867, 13, 288, 203, 3639, 327, 389, 588, 13621, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; import "../interface/IERC721.sol"; import "../interface/IERC721Receiver.sol"; import "../utils/Address.sol"; import "./ERC165.sol"; /** * @dev ERC721 Non-Fungible Token Implementation * * Exert uniqueness of owner: one owner can only have one token ...
* @dev See {IERC721}.{getApproved}/
function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721: getApproved for nonexistent tokenId"); return _tokenIdOperator[tokenId]; }
880,022
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 27, 5340, 19654, 588, 31639, 4004, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 31639, 12, 11890, 5034, 1147, 548, 13, 1071, 1476, 3849, 1135, 261, 2867, 13, 288, 203, 3639, 2583, 24899, 1808, 12, 2316, 548, 3631, 315, 654, 39, 27, 5340, 30, 336, 31639, 364, 1661, 19041, 1147, 548, 8863, 203, ...
./full_match/80001/0x8478c30b251FdFCC5935E33aa7205759C38d0d2b/sources/contracts/AchieveMint.sol
* @dev Event admin can toggle open minting (public mint)/
function setOpenMinting(uint256 _tokenId, bool _open) public onlyAdmin(_tokenId) { _tokens[_tokenId].openMinting = _open; }
845,081
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2587, 3981, 848, 10486, 1696, 312, 474, 310, 261, 482, 312, 474, 13176, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 3678, 49, 474, 310, 12, 11890, 5034, 389, 2316, 548, 16, 1426, 389, 3190, 13, 203, 3639, 1071, 203, 3639, 1338, 4446, 24899, 2316, 548, 13, 203, 565, 288, 203, 3639, 389, 7860, 63, 67, 2316, 548, 8009, 3190, 49, ...
/* * @title Origin Dollar Governance Vote Escrow Token (veOGV) * @author Origin Protocol Labs * * Origin Protocol * https://originprotocol.com * https://ousd.com * * Released under the MIT license * https://github.com/OriginProtocol/origin-dollar * https://github.com/OriginProtocol/ousd-governance * * Copyr...
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; constructor(string memory name_, string memory s...
82,636
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 16, 467, 654, 39, 3462, 2277, 288, 203, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 2874, 12, 2867, 516, 2874, 12, 2867, 516, 22...
pragma solidity 0.4.24; contract ERC20TokenInterface { function totalSupply () external constant returns (uint); function balanceOf (address tokenOwner) external constant returns (uint balance); function transfer (address to, uint tokens) external returns (bool success); function transferFrom (address...
* Setup array with vesting stages dates and percents./
function initVestingStages () internal { uint256 halfOfYear = 183 days; uint256 year = halfOfYear * 2; stages[0].date = vestingStartTimestamp; stages[1].date = vestingStartTimestamp + halfOfYear; stages[2].date = vestingStartTimestamp + year; stages[3].date = vestingS...
1,110,514
[ 1, 4625, 348, 7953, 560, 30, 380, 10939, 526, 598, 331, 10100, 20298, 7811, 471, 5551, 87, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1208, 58, 10100, 31359, 1832, 2713, 288, 203, 3639, 2254, 5034, 8816, 19091, 273, 6549, 23, 4681, 31, 203, 3639, 2254, 5034, 3286, 273, 8816, 19091, 380, 576, 31, 203, 3639, 20298, 63, 20, 8009, 712, 273, 331, 10100, 16...
//Contract based on https://docs.openzeppelin.com/contracts/3.x/erc721 // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721.sol"; import "./Ownable.sol"; import "./SafeMath.sol"; import "./EnumerableMap.sol"; import "./ERC721Enumerable.sol"; contract FrankiesMansion is ERC721Enumerable, Ownable {...
Define if sale is active
bool public saleIsActive = true;
34,707
[ 1, 4625, 348, 7953, 560, 30, 225, 13184, 309, 272, 5349, 353, 2695, 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, 1426, 1071, 272, 5349, 2520, 3896, 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, -100, -100, -...
./full_match/1/0x4A51BF4fF315c02d79f68B8911EB9329F7302982/sources/shibpochi.sol
Anti-bot and anti-whale mappings and variables Seller Map Blacklist Map block number of opened trading exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount
contract ShibPochiInu is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; bool private swapping; address public marketingWallet; address public devWallet; uint256 public maxTransactionAmount; ...
3,214,971
[ 1, 4625, 348, 7953, 560, 30, 225, 18830, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 4352, 749, 1635, 22467, 1098, 1635, 1203, 1300, 434, 10191, 1284, 7459, 4433, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2638, 495, 52, 9842, 77, 382, 89, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 7010, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, ...
./full_match/56/0x605fea03721738F372E5f30Da043722f7CdBc4e6/sources/project_/contracts/DTLaunchPad.sol
35% Liquidity Vault
uint256 private constant B_PERCENTAGE = 35 / TOTAL_DISTRIBUTION;
3,240,767
[ 1, 4625, 348, 7953, 560, 30, 225, 13191, 9, 511, 18988, 24237, 17329, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 3238, 5381, 605, 67, 3194, 19666, 2833, 273, 13191, 342, 399, 19851, 67, 31375, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./partial_match/3/0x0AAbC283782fDeb20B7B4F224686083bE632732b/sources/ElysiaAssetTokenPhase0.sol
Get EL Amount in 'from' wallet
uint _qty0 = elysia.balanceOf(account);
5,224,563
[ 1, 4625, 348, 7953, 560, 30, 225, 968, 14801, 16811, 316, 296, 2080, 11, 9230, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 202, 11890, 389, 85, 4098, 20, 273, 415, 1900, 1155, 18, 12296, 951, 12, 4631, 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, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IFreeFromUpTo.sol"; /** * @dev the gsve deployer has two purposes * it deploys gsve smart wrappers, keeping track of the owners * it allows users to deploy smart contracts using create and create2 *...
* @dev add support for trusted gas tokens - those we wrapped/
function addGasToken(address gasToken, uint256 freeUpValue) public onlyOwner{ _compatibleGasTokens[gasToken] = 1; _freeUpValue[gasToken] = freeUpValue; }
13,983,903
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 527, 2865, 364, 13179, 16189, 2430, 300, 5348, 732, 5805, 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, 527, 27998, 1345, 12, 2867, 16189, 1345, 16, 2254, 5034, 4843, 1211, 620, 13, 1071, 1338, 5541, 95, 203, 3639, 389, 10943, 27998, 5157, 63, 31604, 1345, 65, 273, 404, 31, 203, 3639, 389, 9156, 1211, 620, 63, 31604, 1345...
pragma solidity ^0.4.11; contract Ballot { //Ballot Item object, each ballot is made up of several Ballot Items struct BallotItem { uint8 itemID; uint8 voteType; //1=ranked, 2=simple majority, 3=pick 2 uint8[] entries; uint32[] results; } //Hash table using (BallotItemID, BallotItem O...
1=ranked, 2=simple majority, 3=pick 2
uint8 voteType;
5,504,288
[ 1, 4625, 348, 7953, 560, 30, 404, 33, 11500, 329, 16, 576, 33, 9647, 7888, 560, 16, 890, 33, 11503, 576, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 1377, 2254, 28, 12501, 559, 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, ...