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/43114/0x600eD08Cc2A1AD68f6227fcA9de0030720Ee71e3/sources/contracts/PRESALE.sol
1 - ENDED (FINISHED SUCCESSFULLY, BUT NOT YET FINALIZED) 2 - CANCELLED = USER CAN NOW CLAIM REFUNDS! 3 - FINALIZED = USER CAN NOW CLAIM TOKENS! 4 - WHITELISTED = ONLY WHITELISTED PEOPLE CAN BUY! 5 - LIVE = EVERYONE CAN BUY! 6 - NOT_YET_BUYABLE
function presaleState() public view returns (string memory STATE) { uint256 state = PrezaleInterface(parentContract).getPresaleState( tokenAddress ); if (state == 1) { return "ENDED"; return "CANCELLED"; return "FINALIZED"; return "...
4,643,397
[ 1, 4625, 348, 7953, 560, 30, 225, 404, 300, 6693, 7660, 261, 23259, 2056, 16561, 18111, 61, 16, 605, 1693, 4269, 1624, 1584, 17563, 1013, 24131, 13, 576, 300, 29641, 6687, 273, 7443, 22709, 3741, 59, 29859, 3445, 20557, 2124, 3948, 5,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4075, 5349, 1119, 1435, 1071, 1476, 1135, 261, 1080, 3778, 7442, 13, 288, 203, 3639, 2254, 5034, 919, 273, 2962, 94, 5349, 1358, 12, 2938, 8924, 2934, 588, 12236, 5349, 1119, 12, 203, 5411, 1147, 1887, 203, 3639, 11272, ...
./partial_match/1/0x75fb693DaFafFFCCc9b5a5f93B723DEb4AddD2a7/sources/Token.sol
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to f...
function approve(address spender, uint256 value) public returns (bool) { require(spender != address(0)); _allowed[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; }
4,139,815
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1716, 685, 537, 326, 2275, 1758, 358, 17571, 326, 1269, 3844, 434, 2430, 603, 12433, 6186, 434, 1234, 18, 15330, 18, 605, 359, 834, 716, 12770, 392, 1699, 1359, 598, 333, 707, 5186, 899, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6617, 537, 12, 2867, 17571, 264, 16, 2254, 5034, 460, 13, 1071, 1135, 261, 6430, 13, 288, 203, 565, 2583, 12, 87, 1302, 264, 480, 1758, 12, 20, 10019, 7010, 203, 565, 389, 8151, 63, 3576, 18, 15330, 6362, 87, 1302, ...
./partial_match/84531/0xAABeead2Aa1Dc97dbbf44e7daC50e43c50f71DF9/sources/contracts/src/diamond/proxy/Proxy.sol
solhint-disable-next-line no-inline-assembly
function _fallback() internal { address facet = _getImplementation(); if (!Address.isContract(facet)) revert Proxy__ImplementationIsNotContract(); assembly { calldatacopy(0, 0, calldatasize()) let result := delegatecall(gas(), facet, 0, calldatasize(), 0, 0) returndatacopy(0, 0, return...
16,682,112
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 1158, 17, 10047, 17, 28050, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 16471, 1435, 2713, 288, 203, 565, 1758, 11082, 273, 389, 588, 13621, 5621, 203, 203, 565, 309, 16051, 1887, 18, 291, 8924, 12, 21568, 3719, 15226, 7659, 972, 13621, 28041, 8924, 5621, 203, 203, 565, 19931, 288, 203, ...
./full_match/1/0xA943510c723333CD56D109805EA0bd955b2bcBB5/sources/contracts/MNRY_MV_1/Moonray_MiiumVaronis_AlphaBase.sol
* @notice Mint tokens (Phase Two) - purchase bound by terms & conditions of project. @param proof the merkle proof for this purchase. @param count the number of tokens to mint. @param flavorId the type of tokens to mint./
function phaseTwoMintTokens( bytes32[] calldata proof, uint256 count, uint256 flavorId ) external payable nonReentrant isPhaseTwo { if (0 >= count || count > PHASE_TWO_BATCH_SIZE) revert ExceedsBatchSize(); TokenFlavor memory updatedFlavor = _canMint(count, flavorId, tru...
17,186,528
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 490, 474, 2430, 261, 11406, 16896, 13, 300, 23701, 2489, 635, 6548, 473, 4636, 434, 1984, 18, 632, 891, 14601, 326, 30235, 14601, 364, 333, 23701, 18, 632, 891, 1056, 326, 1300, 434, 243...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 565, 445, 6855, 11710, 49, 474, 5157, 12, 203, 3639, 1731, 1578, 8526, 745, 892, 14601, 16, 203, 3639, 2254, 5034, 1056, 16, 203, 3639, 2254, 5034, 19496, 548, 203, 565, 262, 3903, 8843, 429, 1661, 426, 8230, 970, 353, 11406, 117...
./partial_match/1/0xd9b7eC74C06c558A59AfdE6a16E614950730F44d/sources/contracts/engine/V3/GenArt721CoreV3_Engine_Flex.sol
setup immutable `autoApproveArtistSplitProposals` config record contracts starting project ID casting-up is safe set AdminACL management contract as owner initialize default base URI initialize next project ID register contract as an Engine contract
) ERC721_PackedHashSeed(_tokenName, _tokenSymbol) { _onlyNonZeroAddress(_renderProviderAddress); _onlyNonZeroAddress(_platformProviderAddress); _onlyNonZeroAddress(_randomizerContract); _onlyNonZeroAddress(_adminACLContract); autoApproveArtistSplitProposals = _autoApproveArti...
3,903,841
[ 1, 4625, 348, 7953, 560, 30, 225, 3875, 11732, 1375, 6079, 12053, 537, 4411, 376, 5521, 626, 22536, 68, 642, 1409, 20092, 5023, 1984, 1599, 27660, 17, 416, 353, 4183, 444, 7807, 9486, 11803, 6835, 487, 3410, 4046, 805, 1026, 3699, 404...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 4232, 39, 27, 5340, 67, 4420, 329, 2310, 12702, 24899, 2316, 461, 16, 389, 2316, 5335, 13, 288, 203, 3639, 389, 3700, 3989, 7170, 1887, 24899, 5902, 2249, 1887, 1769, 203, 3639, 389, 3700, 3989, 7170, 1887, 24899, 9898, ...
./full_match/1/0x9C1dC986D786534c13Ec32eFA6C7A1631898d102/sources/inari1.sol
withdraw `amount` of `crSushiToken` from BENTO into this contract
bento.withdraw(IERC20(crSushiToken), msg.sender, address(this), amount, 0);
3,116,909
[ 1, 4625, 348, 7953, 560, 30, 225, 598, 9446, 1375, 8949, 68, 434, 1375, 3353, 55, 1218, 77, 1345, 68, 628, 605, 2222, 51, 1368, 333, 6835, 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...
[ 1, 1, 1, 1, 1, 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, 3639, 324, 29565, 18, 1918, 9446, 12, 45, 654, 39, 3462, 12, 3353, 55, 1218, 77, 1345, 3631, 1234, 18, 15330, 16, 1758, 12, 2211, 3631, 3844, 16, 374, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/4/0x4767dd7aD034c6Db23363ac9F32cDBD5449C3424/sources/contracts/mm/tcr/WhitelistedTCR.sol
* @notice Helper function to help the UI code check user signatures. @dev This should not reveal any secrets since the voter's nonce is still required to be able to "guess" the vote. @param challengeID the ID of the challenge where the user has voted @param voter the address of the voter @return bytes32 representing th...
function getVoteCommit(uint256 challengeID, address voter) public view returns (bytes32) { return challenges[challengeID].voteCommits[voter]; }
674,058
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 9705, 445, 358, 2809, 326, 6484, 981, 866, 729, 14862, 18, 632, 5206, 1220, 1410, 486, 283, 24293, 1281, 14612, 3241, 326, 331, 20005, 1807, 7448, 353, 4859, 1931, 358, 506, 7752, 358, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 11031, 1168, 5580, 12, 11890, 5034, 12948, 734, 16, 1758, 331, 20005, 13, 1071, 1476, 1135, 261, 3890, 1578, 13, 288, 203, 565, 327, 462, 7862, 2852, 63, 25092, 734, 8009, 25911, 23072, 63, 90, 20005, 15533, 203, 225, 2...
./full_match/3/0x60D14b09C42BBEEc04E13F0580f544193e35eA9E/sources/blackjack.sol
PHASE THREE - DISTRIBUTE CARD if loop to keep track of number of Acescheck if game already meet winning condition after inital card distrubution
function distribute(address user) external { require( msg.sender == casino, "Only the casino may call this function." ); require( mapGamestate[user] == GameState.Car_Distribution, "This is not the proper phase to distribute cards." ); ...
14,196,593
[ 1, 4625, 348, 7953, 560, 30, 15490, 4429, 18979, 300, 3690, 15765, 8885, 385, 8085, 309, 2798, 358, 3455, 3298, 434, 1300, 434, 432, 764, 1893, 309, 7920, 1818, 18721, 5657, 2093, 2269, 1839, 1208, 287, 5270, 1015, 313, 373, 1421, 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, 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, 25722, 12, 2867, 729, 13, 3903, 288, 203, 3639, 2583, 12, 203, 5411, 1234, 18, 15330, 422, 8697, 15020, 16, 203, 5411, 315, 3386, 326, 8697, 15020, 2026, 745, 333, 445, 1199, 203, 3639, 11272, 203, 3639, 2583, 12, 203, ...
pragma solidity 0.5.7; import "./SafeMath.sol"; import "./ERC223Interface.sol"; import "./ERC223ReceivingContract.sol"; /** * @title Implementation of the ERC223 standard token * @dev https://github.com/ethereum/EIPs/issues/223 */ contract ERC223Token is ERC223Interface { using SafeMath for uint256; a...
* @title Implementation of the ERC223 standard token/
contract ERC223Token is ERC223Interface { using SafeMath for uint256; address private _owner; string public constant name = "ERC223"; string public constant symbol = "ERC223"; uint8 public constant decimals = 18; uint256 private constant _totalSupply = 10000000 * (uint256(10) **...
13,120,804
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 25379, 434, 326, 4232, 39, 3787, 23, 4529, 1147, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 4232, 39, 3787, 23, 1345, 353, 4232, 39, 3787, 23, 1358, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 377, 203, 565, 1758, 3238, 389, 8443, 31, 203, 377, 203, 565, 533, 225, 1071, 225, 5381, 508, 273, 315...
pragma solidity 0.5.12; contract BColor { function getColor() external view returns (bytes32); } contract BBronze is BColor { function getColor() external view returns (bytes32) { return bytes32("BRONZE"); } } contract BConst is BBronze { uin...
Subtract `reserves`.
function swapExactAmountIn( address tokenIn, uint tokenAmountIn, address tokenOut, uint minAmountOut, uint maxPrice ) external _logs_ _lock_ returns (uint tokenAmountOut, uint spotPriceAfter) { require(_records[tok...
7,337,842
[ 1, 4625, 348, 7953, 560, 30, 225, 2592, 1575, 1375, 455, 264, 3324, 8338, 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, 7720, 14332, 6275, 382, 12, 203, 203, 3639, 1758, 1147, 382, 16, 203, 203, 3639, 2254, 1147, 6275, 382, 16, 203, 203, 3639, 1758, 1147, 1182, 16, 203, 203, 3639, 2254, 1131, 6275, 1182, 16, 203, 203, 3639, 2254, 943, ...
pragma solidity ^0.4.20; /* * ---------------------------- * * ____ ____ ___ ____ * * / __ \/ __ \/ | / __ \ * * / /_/ / / / / /| | / /_/ / * * / ____/ /_/ / ___ |/ ____/ * * /_/ \____/_/ |_/_/ * *---------------------------- * * PROOF OF APPLICATION * Earn Masternode commission...
---------- ADMINISTRATOR ONLY FUNCTIONS ----------*/* In case the amassador quota is not met, the administrator can manually disable the ambassador phase./
function disableInitialStage() onlyAdministrator() public { onlyAmbassadors = false; }
8,042,357
[ 1, 4625, 348, 7953, 560, 30, 12181, 225, 25969, 18643, 3575, 20747, 13690, 55, 225, 12181, 5549, 14, 657, 648, 326, 2125, 428, 23671, 13257, 353, 486, 5100, 16, 326, 22330, 848, 10036, 4056, 326, 13232, 428, 23671, 6855, 18, 19, 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, 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, 4056, 4435, 8755, 1435, 203, 3639, 1338, 4446, 14207, 1435, 203, 3639, 1071, 203, 565, 288, 203, 3639, 1338, 30706, 428, 361, 1383, 273, 629, 31, 203, 565, 289, 203, 377, 203, 1377, 203, 2, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @notice Allows each token to be associated with a creator. */ contract Participants is Ownable { mapping(address => uint256) public seed; mapping(address => uint256) public private1; mappi...
2127.6595744681 DDAO | $ 1000
private2[0xDc6c3d081691f7ef4ae25f488098aD0350052D43] = 2127659574468100000000;
13,044,261
[ 1, 4625, 348, 7953, 560, 30, 282, 576, 14260, 18, 26, 6162, 25, 5608, 8749, 11861, 463, 18485, 571, 271, 4336, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3238, 22, 63, 20, 17593, 71, 26, 71, 23, 72, 6840, 2313, 12416, 74, 27, 10241, 24, 8906, 2947, 74, 8875, 3672, 10689, 69, 40, 4630, 12483, 9401, 40, 8942, 65, 273, 576, 2138, 6669, 6162, 25, 5608, 8749, 11861, 12648, 31, ...
/** * Copyright 2017-2021, bZeroX, LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0. */ pragma solidity 0.5.17; pragma experimental ABIEncoderV2; import "./LoanTokenSettingsLowerAdmin.sol"; import "./interfaces/ProtocolLike.sol"; import "./interfaces/FeedsLike.sol"; import "../../modules/...
* @notice Borrow and immediately get into a position. Trading on margin is used to increase an investor's buying power. Margin is the amount of money required to open a position, while leverage is the multiple of exposure to account equity. Leverage allows you to trade positions LARGER than the amount of money in your ...
function marginTrade( uint256 loanTokenSent, uint256 collateralTokenSent, address collateralTokenAddress, address trader, ) public payable returns ( uint256, ) { _checkPause(); if (collateralTokenAddress == address(0)) { collateralTokenAddress = wrbtcTokenAddress; } require(collateral...
13,047,626
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 605, 15318, 471, 7636, 336, 1368, 279, 1754, 18, 2197, 7459, 603, 7333, 353, 1399, 358, 10929, 392, 2198, 395, 280, 1807, 30143, 310, 7212, 18, 490, 5243, 353, 326, 3844, 434, 15601, 193...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7333, 22583, 12, 203, 202, 202, 11890, 5034, 28183, 1345, 7828, 16, 203, 202, 202, 11890, 5034, 4508, 2045, 287, 1345, 7828, 16, 203, 202, 202, 2867, 4508, 2045, 287, 1345, 1887, 16, 203, 202, 202, 2867, 1284, 765, 16, ...
./full_match/43113/0xeDD1B00AcD804299CdC8dEb52576E9FCF74B1c0d/sources/NFTs/ERC1155AttentionSeeker.sol
* @notice Get the Member ID of an account. @param owner The address of the token holder. @return The owner's balance of the Token type requested./
function attentionSeekerIdOf(address owner) external view returns (uint256) { uint256 id = _attentionSeekerIdOf(owner); return id; }
13,154,310
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 968, 326, 8596, 1599, 434, 392, 2236, 18, 632, 891, 3410, 225, 1021, 1758, 434, 326, 1147, 10438, 18, 632, 2463, 4202, 1021, 3410, 1807, 11013, 434, 326, 3155, 618, 3764, 18, 19, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17278, 31691, 548, 951, 12, 2867, 3410, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 540, 203, 3639, 2254, 5034, 612, 273, 389, 17899, 31691, 548, 951, 12, 8443, 1769, 203, 3639, 327, 612, 31, 203, 565, 289, ...
pragma solidity 0.4.24; /** @title Ownable @dev The Ownable contract has an owner address, and provides basic authorization control functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; /** @dev The Ownable constructor sets the original owner of the contr...
loop through to addresses and send value
returns (bool _success) { assert(_to.length == _value.length); assert(_to.length <= 150); uint decimals = Token(_tokenAddr).decimals(); for (uint8 i = 0; i < _to.length; i++) { assert((Token(_tokenAddr).transfer(_to[i], _value[i] * (10 ** decimals))) == true); } return true; }
10,906,754
[ 1, 4625, 348, 7953, 560, 30, 225, 2798, 3059, 358, 6138, 471, 1366, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 6154, 261, 6430, 389, 4768, 13, 288, 203, 11231, 24899, 869, 18, 2469, 422, 389, 1132, 18, 2469, 1769, 203, 11231, 24899, 869, 18, 2469, 1648, 18478, 1769, 203, 203, 11890, 15105, 273, 3155, 24899, 2316, 3178, 2934, 31734, 5621, 20...
// SPDX-License-Identifier: MIT pragma solidity =0.8.10; pragma experimental ABIEncoderV2; import "../ActionBase.sol"; import "../../utils/TokenUtils.sol"; import "./helpers/BalancerV2Helper.sol"; /// @title Return LP tokens to Balancer Vault in exchange for underlying tokens contract BalancerV2Withdraw is ActionBas...
return any leftover LP tokens
function _balancerWithdraw(Params memory _inputData) internal returns (uint256 poolLPTokensSent, bytes memory logData){ require(_inputData.to != address(0), ADDR_MUST_NOT_BE_ZERO); address poolAddress = _getPoolAddress(_inputData.poolId); uint256 poolLPTokensBefore = poolAddress.getBalance(a...
886,376
[ 1, 4625, 348, 7953, 560, 30, 225, 327, 1281, 29709, 511, 52, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18770, 1190, 9446, 12, 1370, 3778, 389, 2630, 751, 13, 2713, 1135, 261, 11890, 5034, 2845, 48, 1856, 3573, 7828, 16, 1731, 3778, 613, 751, 15329, 203, 3639, 2583, 24899, 2630, 751, 18, 869, 480, 1758, 12, 20, 3631,...
./partial_match/1/0xcCf3621E609dE45d1230d23c02fd00f67Fa088C7/sources/contracts/smart-contracts-dev/main/MentaportVerify.sol
---------------------------------------------------------------------------- Public functions that are View Verifies if message was signed by owner to give access to _add for this contract.
function isValidSigner( address _account, uint _timestamp, uint256 _rule, bytes memory _signature) view public returns (bool) { bytes32 hash = keccak256(abi.encodePacked(address(this), _account, _timestamp, _rule)); bytes32 message = ECDSA.toEthSignedMessageHash(hash); (address recove...
3,916,921
[ 1, 4625, 348, 7953, 560, 30, 8879, 13849, 7224, 4186, 716, 854, 4441, 6160, 5032, 309, 883, 1703, 6726, 635, 3410, 358, 8492, 2006, 358, 389, 1289, 364, 333, 6835, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 4908, 15647, 12, 203, 565, 1758, 389, 4631, 16, 203, 565, 2254, 389, 5508, 16, 203, 565, 2254, 5034, 389, 5345, 16, 203, 565, 1731, 3778, 389, 8195, 13, 203, 225, 1476, 1071, 1135, 261, 6430, 13, 203, 225, 288, 203, ...
./partial_match/3/0x3CE28459D39508f42ceE4040780b324206BfB13C/sources/NXMToken.sol
* @dev Transfer token for a specified address @param to The address to transfer to. @param value The amount to be transferred./
function transfer(address to, uint256 value) public canTransfer(to) returns (bool) { require(value <= _balances[msg.sender]); _transfer(to, value); return true; }
5,328,568
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 12279, 1147, 364, 279, 1269, 1758, 632, 891, 358, 1021, 1758, 358, 7412, 358, 18, 632, 891, 460, 1021, 3844, 358, 506, 906, 4193, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 12, 2867, 358, 16, 2254, 5034, 460, 13, 1071, 848, 5912, 12, 869, 13, 1135, 261, 6430, 13, 288, 203, 203, 3639, 2583, 12, 1132, 1648, 389, 70, 26488, 63, 3576, 18, 15330, 19226, 203, 3639, 389, 13866, 12, 869, ...
./full_match/1313161554/0x9552e9dfe52FF7598eee675F30eb2d7072D45c7a/sources/contracts/Oracle/TwapFeed.sol
/ is safe, and - overflow is desired convert decimals to 18 (not use pairDecimalsDelta because wBTC-wNEAR has only 2 decimals)
function latestAnswer() external view returns (uint) { uint256 priceCumulativeCurrent = getPriceCumulativeCurrent(pair.asToken0); uint priceCumulativeLast = pair.latestIsSlotA ? pair.priceCumulativeSlotB : pair.priceCumulativeSlotA; uint3...
13,230,585
[ 1, 4625, 348, 7953, 560, 30, 225, 342, 353, 4183, 16, 471, 300, 9391, 353, 6049, 1765, 15105, 358, 6549, 261, 902, 999, 3082, 31809, 9242, 2724, 341, 38, 15988, 17, 91, 5407, 985, 711, 1338, 576, 15105, 13, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4891, 13203, 1435, 3903, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 2254, 5034, 6205, 39, 11276, 3935, 273, 203, 5411, 25930, 39, 11276, 3935, 12, 6017, 18, 345, 1345, 20, 1769, 203, 203, 3639, 2254, 6205, 39, 11276, 3...
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.8.0; // ==================================================================== // | ______ _______ | // | / _____________ __ __ / ____(_____ ____ _____ ________ | // | / /_ / ___/ __ `| |/_/ /...
Free collat, native precision
allocations[1] = collateral_token.balanceOf(address(this));
12,750,679
[ 1, 4625, 348, 7953, 560, 30, 225, 15217, 4508, 270, 16, 6448, 6039, 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, 23804, 63, 21, 65, 273, 4508, 2045, 287, 67, 2316, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/42/0x58D6128e8dE011E8d821d09A8431b9DA0405392e/sources/KlerosGovernor.sol
* @dev Takes up to the total amount required to fund a side of an appeal. Reimburses the rest. Creates an appeal if at least two lists are funded. TRUSTED. @param _submissionID Submission's index in the array of submitted lists of the current sesssion. Note that submissionID can be swapped with an ID of a withdrawn li...
function fundAppeal(uint _submissionID) public payable { Session storage session = sessions[sessions.length - 1]; require(_submissionID <= session.submittedLists.length - 1, "SubmissionID is out of bounds."); require(session.status == Status.DisputeCreated, "No dispute to appeal."); ...
3,377,905
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 23004, 731, 358, 326, 2078, 3844, 1931, 358, 284, 1074, 279, 4889, 434, 392, 7226, 287, 18, 868, 381, 70, 295, 2420, 326, 3127, 18, 10210, 392, 7226, 287, 309, 622, 4520, 2795, 6035, 85...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 284, 1074, 1294, 347, 287, 12, 11890, 389, 12684, 734, 13, 1071, 8843, 429, 288, 203, 3639, 3877, 2502, 1339, 273, 8856, 63, 16794, 18, 2469, 300, 404, 15533, 203, 3639, 2583, 24899, 12684, 734, 1648, 1339, 18, 31575, 7...
pragma solidity 0.5.15; pragma experimental ABIEncoderV2; import {PredicateRegistry} from 'ROOT/matic/PredicateRegistry.sol'; import {BytesLib} from 'ROOT/matic/libraries/BytesLib.sol'; import {RLPEncode} from 'ROOT/matic/libraries/RLPEncode.sol'; import {RLPReader} from 'ROOT/matic/libraries/RLPReader.sol'; import {P...
try to give as many shares from escrow as possible
function processExitForMarket( IMarket market, address exitor, uint256 exitId ) internal { IShareToken shareToken = lookupExit[exitId].exitShareToken; uint256 numOutcomes = market.getNumberOfOutcomes(); uint256 completeSetsToBuy; uint256[] memory outcomes ...
983,625
[ 1, 4625, 348, 7953, 560, 30, 225, 775, 358, 8492, 487, 4906, 24123, 628, 2904, 492, 487, 3323, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1207, 6767, 1290, 3882, 278, 12, 203, 3639, 467, 3882, 278, 13667, 16, 203, 3639, 1758, 431, 1811, 16, 203, 3639, 2254, 5034, 2427, 548, 203, 565, 262, 2713, 288, 203, 3639, 467, 9535, 1345, 7433, 1345, 273, 3689, 6767,...
pragma solidity >= 0.5.0; contract WinyDice { address payable private OWNER; // Each bet is deducted 0.98% in favour of the house, but no less than some minimum. // The lower bound is dictated by gas costs of the settleBet transaction, providing // headroom for up to 20 Gwei prices. uint public co...
Refund transaction - return the bet amount of a roll that was not processed in a due timeframe. in a situation like this, just contact us, however nothing precludes you from invoking this method yourself. Check that bet is in 'active' state. Move bet into 'processed' state, release funds.
function RefundBet(uint betId) external onlyOwner { Bet storage bet = bets[betId]; uint amount = bet.Amount; if(amount == 0) revert("Bet should be in an 'active' state"); bet.Amount = 0; uint diceWinAmount; uint jackpotFee; (diceWinAmount, jackpotFee) = Get...
12,857,674
[ 1, 4625, 348, 7953, 560, 30, 225, 3941, 1074, 2492, 300, 327, 326, 2701, 3844, 434, 279, 5824, 716, 1703, 486, 5204, 316, 279, 6541, 813, 3789, 18, 316, 279, 20886, 3007, 333, 16, 2537, 5388, 584, 16, 14025, 5083, 675, 8993, 1846, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3941, 1074, 38, 278, 12, 11890, 2701, 548, 13, 3903, 1338, 5541, 288, 203, 3639, 605, 278, 2502, 2701, 273, 324, 2413, 63, 70, 278, 548, 15533, 203, 3639, 2254, 3844, 273, 2701, 18, 6275, 31, 203, 203, 3639, 309, 12, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.5.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/ownership/Ownable.sol"; // ANY staking smart contract // stak...
ANY staking smart contract staking reward is from the owner of this contract Info of each user.
contract Stake is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; pragma solidity ^0.5.0; struct UserInfo { uint256 amount; uint256 rewardDebt; string nodeID; } mapping (address => UserInfo) public userInfo; IERC20 public stakeToken; uint256 publi...
6,440,960
[ 1, 4625, 348, 7953, 560, 30, 225, 16743, 384, 6159, 13706, 6835, 384, 6159, 19890, 353, 628, 326, 3410, 434, 333, 6835, 3807, 434, 1517, 729, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 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, 16351, 934, 911, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 25, 18, 20, 31, 203, ...
pragma solidity ^0.4.18; contract owned { address public owner; constructor() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address newOwner) onlyOwner public { owner = newOwner; } } inte...
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 generates a public event on the blockchain that will notify clients
contract TokenERC20 { string public name; string public symbol; uint8 public decimals = 18; uint256 public totalSupply; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; event Transfer(address indexed from, address indexed to...
11,963,306
[ 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, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3155, 654, 39, 3462, 288, 203, 565, 533, 1071, 508, 31, 203, 565, 533, 1071, 3273, 31, 203, 565, 2254, 28, 1071, 15105, 273, 6549, 31, 203, 565, 2254, 5034, 1071, 2078, 3088, 1283, 31, 203, 203, 565, 2874, 261, 2867, 516...
./full_match/97/0xc90b9469AC9c529c9E78E66DE4B9183B16e6717a/sources/project_/contracts/Viddly.sol
External Functions* @notice Retrieves the total Earning of the platform. @dev get the total Earning of the platform. @return _totalEarnings The Total Earning./
@notice Receive function that allows the contract to receive Ether. @dev This function is called when the contract receives Ether without a specific function call. It allows the contract to accept payments. @notice Fallback function that allows the contract to receive Ether. @dev This function is calle...
3,291,629
[ 1, 4625, 348, 7953, 560, 30, 225, 11352, 15486, 14, 632, 20392, 20507, 326, 2078, 512, 9542, 434, 326, 4072, 18, 632, 5206, 336, 326, 225, 2078, 512, 9542, 434, 326, 4072, 18, 632, 2463, 389, 4963, 41, 1303, 899, 1021, 10710, 512, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 282, 632, 20392, 17046, 445, 716, 5360, 326, 6835, 358, 6798, 512, 1136, 18, 203, 282, 632, 5206, 1220, 445, 353, 2566, 1347, 326, 6835, 17024, 512, 1136, 2887, 279, 2923, 445, 745, 18, 203, 282, 2597, 5360, 326, 6835, 358, 2791,...
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.6.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "./FeeOwner.sol"; import "./Fee1155.sol"; /** @title A basic smart contract for tracking the ownership of SuperFarm Items. @author Ti...
Emit an event indicating a successful purchase.
emit ItemPurchased(poolId, itemIds, assetId, amounts, msg.sender);
1,272,115
[ 1, 4625, 348, 7953, 560, 30, 225, 16008, 392, 871, 11193, 279, 6873, 23701, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3626, 4342, 10262, 343, 8905, 12, 6011, 548, 16, 761, 2673, 16, 3310, 548, 16, 30980, 16, 1234, 18, 15330, 1769, 203, 2, -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 "./lib/nf-token.sol"; import "./clock-auction-base.sol"; /// @title Clock auction for non-fungible tokens. /// @notice We omit a fallback function to prevent accidental sends to this contract. contract ClockAuction is ClockAuctionBase { /** * @dev Li...
@dev Bids on an open auction, completing the auction and transferring ownership of the NFT if enough Ether is supplied. @param _tokenId - ID of token to bid on. _bid will throw if the bid or funds transfer fails
function bid(uint256 _tokenId) external payable whenNotPaused { _bid(_tokenId, msg.value); _transfer(msg.sender, _tokenId); }
12,779,935
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 605, 2232, 603, 392, 1696, 279, 4062, 16, 2302, 310, 326, 279, 4062, 471, 906, 74, 20245, 225, 23178, 434, 326, 423, 4464, 309, 7304, 512, 1136, 353, 4580, 18, 632, 891, 389, 2316, 548,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9949, 12, 11890, 5034, 389, 2316, 548, 13, 3903, 8843, 429, 1347, 1248, 28590, 288, 203, 565, 389, 19773, 24899, 2316, 548, 16, 1234, 18, 1132, 1769, 203, 565, 389, 13866, 12, 3576, 18, 15330, 16, 389, 2316, 548, 1769, ...
./full_match/8453/0x979791C607a388702690599120c46332f61f592C/sources/contracts/DLN/DlnDestination.sol
Setting and emitting for EVM count
function setMaxOrderCountsPerBatch(uint256 _newEvmCount, uint256 _newSolanaCount) external onlyAdmin { uint256 oldEvmValue = maxOrderCountPerBatchEvmUnlock; maxOrderCountPerBatchEvmUnlock = _newEvmCount; if(oldEvmValue != _newEvmCount) { emit MaxOrderCountPerBatchEvmUnlockChanged...
11,545,583
[ 1, 4625, 348, 7953, 560, 30, 225, 13274, 471, 3626, 1787, 364, 512, 7397, 1056, 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, 10851, 2448, 9211, 2173, 4497, 12, 11890, 5034, 389, 2704, 41, 3489, 1380, 16, 2254, 5034, 389, 2704, 20608, 13848, 1380, 13, 3903, 1338, 4446, 288, 203, 3639, 2254, 5034, 1592, 41, 3489, 620, 273, 943, 2448, 1380, 2173, ...
// Dependency file: @chainlink/contracts/src/v0.6/vendor/SafeMathChainlink.sol // SPDX-License-Identifier: MIT // pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bug...
* Get one participant by index @param _index Index of the participants array/
function getParticipant(uint256 _index) external view returns(address) { return participants[_index]; }
225,656
[ 1, 4625, 348, 7953, 560, 30, 380, 968, 1245, 14188, 635, 770, 632, 891, 389, 1615, 1171, 3340, 434, 326, 22346, 526, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 13657, 14265, 12, 11890, 5034, 389, 1615, 13, 3903, 1476, 1135, 12, 2867, 13, 288, 203, 3639, 327, 22346, 63, 67, 1615, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity 0.4.21; // File: contracts/ERC20Basic.sol /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns ...
can be called only once mint tokens for team founders in timelocked vaults update releaseTime according to the step create tokentimelock keep address in memory mint tokens in tokentimelock generate event
function preallocate() onlyOwner public { require(!isPreallocated); uint numTimelocks = 4; uint256 releaseTime = endTime; for(uint256 i=0; i < numTimelocks; i++) { releaseTime = releaseTime.add(stepLockedToken); TokenTimelock timeLock = new TokenTimelock(token, wallet,...
6,253,325
[ 1, 4625, 348, 7953, 560, 30, 225, 848, 506, 2566, 1338, 3647, 312, 474, 2430, 364, 5927, 1392, 414, 316, 1658, 292, 975, 329, 9229, 87, 1089, 3992, 950, 4888, 358, 326, 2235, 752, 946, 319, 381, 292, 975, 3455, 1758, 316, 3778, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 675, 16247, 1435, 1338, 5541, 1071, 288, 203, 1377, 2583, 12, 5, 291, 1386, 28172, 1769, 203, 203, 1377, 2254, 818, 10178, 292, 20641, 273, 1059, 31, 203, 1377, 2254, 5034, 3992, 950, 273, 13859, 31, 203, 1377, 364, 12,...
// SPDX-License-Identifier: MIT /** * @authors: [@fnanni-0] * @reviewers: [] * @auditors: [] * @bounties: [] * @deployments: [] * @tools: [] */ /** * @title Implementation of the Evidence Standard with Moderated Submissions */ pragma solidity ^0.8; // TODO: standard interfaces should be placed in a s...
* @dev Indicate that a party has to pay a fee or would otherwise be considered as losing. @param _evidenceID The ID of the evidence being moderated. @param _currentWinner The party who is currently winning./
event ModerationStatusChanged(bytes32 indexed _evidenceID, Party _currentWinner);
6,368,763
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 9223, 2659, 716, 279, 18285, 711, 358, 8843, 279, 14036, 578, 4102, 3541, 506, 7399, 487, 437, 2470, 18, 225, 632, 891, 389, 23431, 734, 1021, 1599, 434, 326, 14481, 3832, 681, 19007, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 565, 871, 3431, 7067, 1482, 5033, 12, 3890, 1578, 8808, 389, 23431, 734, 16, 6393, 93, 389, 2972, 59, 7872, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x85A9dfc968B1551b731bae7FD193A64a6211a846/sources/TokenERC20.sol
@notice Create `mintedAmount` tokens and send it to `target` @param target Address to receive the tokens @param mintedAmount the amount of tokens it will receive
function mintToken(address target, uint256 mintedAmount) onlyOwner public { balanceOf[target] = SafeMath.safeAdd(balanceOf[target], mintedAmount); totalSupply = SafeMath.safeAdd(totalSupply, mintedAmount); emit Transfer(0, this, mintedAmount); emit Transfer(this, target, mintedAmount...
16,183,606
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1788, 1375, 81, 474, 329, 6275, 68, 2430, 471, 1366, 518, 358, 1375, 3299, 68, 632, 891, 1018, 5267, 358, 6798, 326, 2430, 632, 891, 312, 474, 329, 6275, 326, 3844, 434, 2430, 518, 903...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 1345, 12, 2867, 1018, 16, 2254, 5034, 312, 474, 329, 6275, 13, 1338, 5541, 1071, 288, 203, 3639, 11013, 951, 63, 3299, 65, 273, 14060, 10477, 18, 4626, 986, 12, 12296, 951, 63, 3299, 6487, 312, 474, 329, 627...
./full_match/43114/0xD79a51f3253c2f55424455fC419E20087Cd8F50e/sources/ChillyChef.sol
Add a new lp to the pool. Can only be called by the owner. valid ERC20 token
function add(uint256 _allocPoint, IBEP20 _lpToken, uint16 _depositFeeBP, bool _withUpdate) external onlyOwner nonDuplicated(_lpToken) { _lpToken.balanceOf(address(this)); require(_depositFeeBP <= 400, "add: invalid deposit fee basis points"); if (_withUpdate) { massUpdatePools()...
4,593,935
[ 1, 4625, 348, 7953, 560, 30, 225, 1436, 279, 394, 12423, 358, 326, 2845, 18, 4480, 1338, 506, 2566, 635, 326, 3410, 18, 923, 4232, 39, 3462, 1147, 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, 527, 12, 11890, 5034, 389, 9853, 2148, 16, 467, 5948, 52, 3462, 389, 9953, 1345, 16, 2254, 2313, 389, 323, 1724, 14667, 30573, 16, 1426, 389, 1918, 1891, 13, 3903, 1338, 5541, 1661, 19682, 690, 24899, 9953, 1345, 13, 28...
./partial_match/56/0xbF5C8994ecdca41f1Ca1b55724d9815502141BB3/sources/MasterChef.sol
Add a new lp to the pool. Can only be called by the owner. XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
function add(uint256 _allocPoint, IBEP20 _lpToken, uint16 _depositFeeBP, bool _withUpdate) public onlyOwner nonDuplicated(_lpToken) { require(_depositFeeBP <= 10000, "add: invalid deposit fee basis points"); if (_withUpdate) { massUpdatePools(); } uint256 lastRewardBlock ...
11,166,226
[ 1, 4625, 348, 7953, 560, 30, 225, 1436, 279, 394, 12423, 358, 326, 2845, 18, 4480, 1338, 506, 2566, 635, 326, 3410, 18, 11329, 5467, 4269, 527, 326, 1967, 511, 52, 1147, 1898, 2353, 3647, 18, 534, 359, 14727, 903, 506, 15216, 730, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 12, 11890, 5034, 389, 9853, 2148, 16, 467, 5948, 52, 3462, 389, 9953, 1345, 16, 2254, 2313, 389, 323, 1724, 14667, 30573, 16, 1426, 389, 1918, 1891, 13, 1071, 1338, 5541, 1661, 19682, 690, 24899, 9953, 1345, 13, 28...
./partial_match/1313161554/0xca9511B610bA5fc7E311FDeF9cE16050eE4449E9/sources/AuETH.sol
* @dev Multiply an Exp by a scalar, returning a new Exp./
function mulScalar(Exp a, uint scalar) pure internal returns (Exp) { return Exp.wrap(Exp.unwrap(a) * scalar); }
16,916,095
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 5991, 1283, 392, 7784, 635, 279, 4981, 16, 5785, 279, 394, 7784, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 14064, 13639, 12, 2966, 279, 16, 2254, 4981, 13, 16618, 2713, 1135, 261, 2966, 13, 288, 203, 3639, 327, 7784, 18, 4113, 12, 2966, 18, 318, 4113, 12, 69, 13, 380, 4981, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -...
// SPDX-License-Identifier:MIT pragma solidity ^0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "../interfaces/IForwarder.sol"; import "../utils/RSKAddrValidator.sol"; /* solhint-disable no-inline-assemb...
If any balance has been added then trasfer it to the owner EOA
uint256 balanceToTransfer = address(this).balance;
5,388,754
[ 1, 4625, 348, 7953, 560, 30, 971, 1281, 11013, 711, 2118, 3096, 1508, 433, 345, 586, 518, 358, 326, 3410, 512, 28202, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 5411, 2254, 5034, 11013, 774, 5912, 273, 1758, 12, 2211, 2934, 12296, 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, ...
./full_match/432204/0xDD23b1253020B8C66DB630fc091D1cC3E984A878/sources/contracts/TradePairs.sol
EMIT order status. if no fills, the status will be NEW, if any fills status will be either PARTIAL or FILLED
emitStatusUpdate(order.id);
16,381,214
[ 1, 4625, 348, 7953, 560, 30, 225, 512, 6068, 1353, 1267, 18, 309, 1158, 21652, 16, 326, 1267, 903, 506, 12887, 16, 309, 1281, 21652, 1267, 903, 506, 3344, 20814, 6365, 578, 8445, 6687, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3626, 1482, 1891, 12, 1019, 18, 350, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.18; // File: zeppelin-solidity/contracts/math/SafeMath.sol /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a ...
This method is used for definition of discountTokens borderlines
function defineDiscountBorderLines() internal onlyOwner { discountTokens[25] = 95 * (100000 ether); discountTokens[20] = 285 * (100000 ether); discountTokens[15] = 570 * (100000 ether); discountTokens[10] = 950 * (100000 ether); discountTokens[5] = 1425 * (100000 ether); }
2,199,037
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 707, 353, 1399, 364, 2379, 434, 12137, 5157, 5795, 3548, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 4426, 9866, 8107, 5763, 1435, 2713, 1338, 5541, 288, 203, 565, 12137, 5157, 63, 2947, 65, 273, 16848, 380, 261, 21, 11706, 225, 2437, 1769, 203, 565, 12137, 5157, 63, 3462, 65, 273, 576, 7140, 380, 261, 21, 11706, 225, ...
pragma solidity 0.5.12; import "./ERC20.sol"; /// @title ALY ERC-20 contract /// @author Raphael Pinto Gregorio /// @notice Basic ERC-20 token based on OpenZepellin ERC-20 standard /// @dev The token has all classic ERC-20 functions: totalSupply(), balanceOf(), transfer(), allowance(), approve(), transferFrom(). It h...
@title ALY ERC-20 contract @author Raphael Pinto Gregorio @notice Basic ERC-20 token based on OpenZepellin ERC-20 standard @dev The token has all classic ERC-20 functions: totalSupply(), balanceOf(), transfer(), allowance(), approve(), transferFrom(). It has two decimals.
contract TokenERC20Aly is ERC20 { string public name; string public symbol; uint256 public decimals; uint256 public _totalSupply; address private _owner; constructor() public { name = "ERC20 Token Aly"; symbol = "ALY"; decimals = 2; _owner = msg.sender; ...
13,019,935
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 432, 7076, 4232, 39, 17, 3462, 6835, 632, 4161, 534, 438, 3395, 292, 453, 18591, 611, 13430, 1594, 632, 20392, 7651, 4232, 39, 17, 3462, 1147, 2511, 603, 3502, 62, 881, 1165, 267, 4232, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3155, 654, 39, 3462, 37, 715, 353, 4232, 39, 3462, 288, 203, 565, 533, 1071, 508, 31, 203, 565, 533, 1071, 3273, 31, 203, 565, 2254, 5034, 1071, 15105, 31, 203, 565, 2254, 5034, 1071, 389, 4963, 3088, 1283, 31, 203, 565,...
//Address: 0x3e516824a408c7029c3f870510d59442143c2db9 //Contract name: Version //Balance: 0 Ether //Verification Date: 2/23/2018 //Transacion Count: 2 // CODE STARTS HERE pragma solidity ^0.4.13; interface FundInterface { // EVENTS event PortfolioContent(uint holdings, uint price, uint decimals); even...
@notice Give melon tokens to receive shares of this fund @dev Recommended to give some leeway in prices to account for possibly slightly changing prices @param giveQuantity Quantity of Melon token times 10 ** 18 offered to receive shareQuantity @param shareQuantity Quantity of shares times 10 ** 18 requested to be rec...
{ function enableInvestment() external pre_cond(isOwner()) { isInvestAllowed = true; } function disableInvestment() external pre_cond(isOwner()) { isInvestAllowed = false; } function enableRedemption() external pre_cond(isOwner()) { isRedeemAllowed = true; } function disableRedemption() external p...
12,885,088
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 22374, 312, 292, 265, 2430, 358, 6798, 24123, 434, 333, 284, 1074, 632, 5206, 25546, 3934, 358, 8492, 2690, 884, 359, 528, 316, 19827, 358, 2236, 364, 10016, 21980, 12770, 19827, 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, 288, 203, 203, 203, 565, 445, 4237, 3605, 395, 475, 1435, 3903, 675, 67, 10013, 12, 291, 5541, 10756, 288, 353, 3605, 395, 5042, 273, 638, 31, 289, 203, 565, 445, 4056, 3605, 395, 475, 1435, 3903, 675, 67, 10013, 12, 291, ...
./partial_match/1/0x7cD905A4727E5f0Df155980D6f5b231faC070BF1/sources/Ferrari.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract Ferrari is Context, IERC20, Ownable, AntiWhale { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; string private _name = "Ferrari"; string private _symbol = "RARI"; uint8 private _decimals = 18; uint256 constant maxCa...
2,863,309
[ 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, 478, 370, 12954, 353, 1772, 16, 467, 654, 39, 3462, 16, 14223, 6914, 16, 18830, 77, 2888, 5349, 288, 203, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 2874, 12, 2867, 516, 2874, 12, ...
./full_match/4/0x76926C9311c472D8C9DC7edC9ad7F9a6D703218d/sources/fatpunks.sol
Mint first 15 fat punks to owner
constructor(string memory baseURI) ERC721("Fat Punks", "FATTY") { setBaseURI(baseURI); mint(msg.sender, 15); }
646,355
[ 1, 4625, 348, 7953, 560, 30, 225, 490, 474, 1122, 4711, 284, 270, 293, 1683, 87, 358, 3410, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 1080, 3778, 1026, 3098, 13, 4232, 39, 27, 5340, 2932, 42, 270, 453, 1683, 87, 3113, 315, 42, 789, 5538, 7923, 225, 288, 203, 3639, 26435, 3098, 12, 1969, 3098, 1769, 203, 540, 203, 540, 312, 474, 12, 3576, 18, ...
pragma solidity ^0.5.16; import "./CToken.sol"; import "./ComptrollerStorage.sol"; /** * @title Cream's Comptroller interface extension */ interface ComptrollerInterfaceExtension { function checkMembership(address account, CToken cToken) external view returns (bool); function updateCTokenVersion(address cT...
* @notice The liquidator liquidates the borrowers collateral. The collateral seized is transferred to the liquidator. @param borrower The borrower of this cToken to be liquidated @param liquidator The address repaying the borrow and seizing collateral @param cTokenCollateral The market in which to seize collateral fro...
function liquidateBorrowFresh(address liquidator, address borrower, uint repayAmount, CTokenInterface cTokenCollateral) internal returns (uint, uint) { uint allowed = comptroller.liquidateBorrowAllowed(address(this), address(cTokenCollateral), liquidator, borrower, repayAmount); if (allowed != 0) { ...
1,264,948
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1021, 4501, 26595, 639, 4501, 26595, 815, 326, 29759, 414, 4508, 2045, 287, 18, 225, 1021, 4508, 2045, 287, 695, 1235, 353, 906, 4193, 358, 326, 4501, 26595, 639, 18, 632, 891, 29759, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4501, 26595, 340, 38, 15318, 42, 1955, 12, 2867, 4501, 26595, 639, 16, 1758, 29759, 264, 16, 2254, 2071, 528, 6275, 16, 385, 1345, 1358, 276, 1345, 13535, 2045, 287, 13, 2713, 1135, 261, 11890, 16, 2254, 13, 288, 203, ...
pragma solidity ^0.4.19; contract FrikandelToken { address public contractOwner = msg.sender; //King Frikandel bool public ICOEnabled = true; //Enable selling new Frikandellen bool public Killable = true; //Enabled when the contract can commit suicide (In case of a problem with the contract in its e...
Lets note the tokens
totalSupply += tokensIssued;
905,705
[ 1, 4625, 348, 7953, 560, 30, 511, 2413, 4721, 326, 2430, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2078, 3088, 1283, 1011, 2430, 7568, 5957, 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,...
./partial_match/1/0x7837d182a80d9eec653cd39ab63454e819BEE55B/sources/EthericeStaking.sol
Get the loan from storage again and check its cleard before we move on
require(_loan.filledBy == address(0), "Stake has unpaid loan");
11,004,350
[ 1, 4625, 348, 7953, 560, 30, 225, 968, 326, 28183, 628, 2502, 3382, 471, 866, 2097, 1619, 1060, 1865, 732, 3635, 603, 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, 3639, 2583, 24899, 383, 304, 18, 13968, 858, 422, 1758, 12, 20, 3631, 315, 510, 911, 711, 640, 29434, 28183, 8863, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.9; import "./DelightKnightItemInterface.sol"; import "./Standard/ERC721.sol"; import "./Standard/ERC721TokenReceiver.sol"; import "./Util/SafeMath.sol"; contract DelightKnightItem is DelightKnightItemInterface, ERC721 { using SafeMath for uint; // The two addresses below are the addresses of ...
ERC721: Gets the wallet address of the item owner.ERC721: 아이템 소유주의 지갑 주소를 가져옵니다.
function ownerOf(uint itemId) view public returns (address) { return itemIdToOwner[itemId]; }
5,381,219
[ 1, 4625, 348, 7953, 560, 30, 4232, 39, 27, 5340, 30, 11881, 326, 9230, 1758, 434, 326, 761, 3410, 18, 654, 39, 27, 5340, 30, 225, 173, 248, 231, 173, 256, 117, 174, 232, 255, 225, 173, 233, 239, 173, 255, 259, 173, 101, 125, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3410, 951, 12, 11890, 18424, 13, 1476, 1071, 1135, 261, 2867, 13, 288, 203, 202, 202, 2463, 18424, 774, 5541, 63, 1726, 548, 15533, 203, 202, 97, 203, 202, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/80001/0x35813D5bAA41bF06540eD735B8aD69360Af733b4/sources/contracts/LotteryV2.sol
Puede crear problemas en lugar de hacerlo en el for indice por indice?
_allTokens += amount;
868,382
[ 1, 4625, 348, 7953, 560, 30, 225, 453, 344, 323, 1519, 297, 6199, 345, 570, 328, 18481, 443, 366, 10598, 383, 570, 415, 364, 1547, 1812, 22471, 1547, 1812, 35, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 454, 5157, 1011, 3844, 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, ...
pragma solidity ^0.6.2; // SPDX-License-Identifier: MIT ...
inject NONSTANDARD NAMING
function BALANCEOF616(address owner) external view returns (uint);
1,820,576
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 605, 1013, 4722, 3932, 26, 2313, 12, 2867, 3410, 13, 3903, 1476, 1135, 261, 11890, 1769, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/56/0x190C5b004Fa239C98d1f8A0065Cfa0105e6B308c/sources/NexusBNB.sol
* @dev Calculate token sell value. It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation; Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code./ underflow attempts BTFO
function tokensToBNB_(uint256 _tokens) internal view returns (uint256) { uint256 tokens_ = (_tokens + 1e18); uint256 _tokenSupply = (tokenSupply_ + 1e18); uint256 _bnbReceived = ( SafeMath.sub( ( ( ( ...
11,118,256
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 9029, 1147, 357, 80, 460, 18, 225, 2597, 1807, 392, 4886, 16, 27370, 4095, 732, 314, 836, 1846, 326, 600, 305, 881, 7294, 598, 518, 316, 888, 1979, 1507, 12155, 31, 225, 10548, 22586, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 2430, 774, 15388, 38, 67, 12, 11890, 5034, 389, 7860, 13, 2713, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 2430, 67, 273, 261, 67, 7860, 397, 404, 73, 2643, 1769, 203, 3639, 2254, 5034, 389, 2316, 3...
pragma solidity 0.4.25; import '../plcrvoting/PLCRVoting.sol'; import 'openzeppelin-solidity/contracts/math/SafeMath.sol'; import 'openzeppelin-solidity/contracts/ownership/Ownable.sol'; contract OceanRegistry is Ownable { using SafeMath for uint; // ------ // EVENTS // ------ event _Applicatio...
/ Cannot exit during ongoing challenge Remove listingHash & return tokens
function exit(bytes32 _listingHash) external { Listing storage listing = listings[_listingHash]; require(msg.sender == listing.owner, 'caller needs ot be listing owner'); require(isWhitelisted(_listingHash), 'not whitelisted'); require(listing.challengeID == 0 || challenges[listing...
2,576,743
[ 1, 4625, 348, 7953, 560, 30, 342, 14143, 2427, 4982, 30542, 12948, 3581, 11591, 2310, 473, 327, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2427, 12, 3890, 1578, 389, 21228, 2310, 13, 3903, 288, 203, 3639, 987, 310, 2502, 11591, 273, 666, 899, 63, 67, 21228, 2310, 15533, 203, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 11591, 18, 8443, 16, 296, 16140, 4260, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.7; import "./strategy-base.sol"; import "../../interfaces/minichefv2.sol"; import "../../interfaces/IRewarder.sol"; abstract contract StrategySushiFarmBase is StrategyBase { // Token addresses address public constant sushi = 0xd4d42F0b6DEF4CE0383636770eF773...
Anyone can harvest it at any given time. I understand the possibility of being frontrun But ETH is a dark forest, and I wanna see how this plays out i.e. will be be heavily frontrunned? if so, a new strategy will be deployed. Collects SUSHI tokens 10% is locked up for future gov Collect reward tokens Swap half WE...
function harvest() public override onlyBenevolent { IMiniChefV2(miniChef).harvest(poolId, address(this)); uint256 _sushi = IERC20(sushi).balanceOf(address(this)); if (_sushi > 0) { uint256 _keepSUSHI = _sushi.mul(keepSUSHI).div(keepMax); IERC20(sushi).safeTransfer( ...
5,521,427
[ 1, 4625, 348, 7953, 560, 30, 225, 5502, 476, 848, 17895, 26923, 518, 622, 1281, 864, 813, 18, 467, 22413, 326, 25547, 434, 3832, 284, 1949, 313, 318, 12484, 512, 2455, 353, 279, 23433, 30763, 16, 471, 467, 341, 1072, 69, 2621, 3661,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17895, 26923, 1435, 1071, 3849, 1338, 38, 4009, 15416, 319, 288, 203, 203, 3639, 467, 2930, 77, 39, 580, 74, 58, 22, 12, 1154, 77, 39, 580, 74, 2934, 30250, 26923, 12, 6011, 548, 16, 1758, 12, 2211, 10019, 203, 3639, ...
/* * Copyright 2021 ConsenSys Software Inc * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
* Connect this ERC20 Bridge contract to an ERC20 Bridge contract on another blockchain. Requirements: - the caller must have the `MAPPING_ROLE`. @param _otherBcId Blockchain ID where the corresponding ERC 20 bridge contract resides. @param _otherErc20Bridge Address of ERC 20 Bridge contract on other bloc...
function addRemoteERC20Bridge(uint256 _otherBcId, address _otherErc20Bridge) external { require( hasRole(MAPPING_ROLE, _msgSender()), "ERC20 Bridge: Must have MAPPING role" ); remoteErc20Bridges[_otherBcId] = _otherErc20Bridge; }
15,785,244
[ 1, 4625, 348, 7953, 560, 30, 380, 8289, 333, 4232, 39, 3462, 24219, 6835, 358, 392, 4232, 39, 3462, 24219, 6835, 603, 4042, 16766, 18, 29076, 30, 300, 326, 4894, 1297, 1240, 326, 1375, 20450, 67, 16256, 8338, 632, 891, 389, 3011, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 527, 5169, 654, 39, 3462, 13691, 12, 11890, 5034, 389, 3011, 38, 71, 548, 16, 1758, 389, 3011, 41, 1310, 3462, 13691, 13, 203, 3639, 3903, 203, 565, 288, 203, 3639, 2583, 12, 203, 5411, 28335, 12, 20450, 67, 16256, 16...
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; // ███████╗███╗ ██╗███████╗ █████╗ ██╗ ██╗██╗ ██╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗███╗ ██╗███████╗ // ██╔════╝████╗ ██║██╔════╝██╔══██╗██║ ██╔╝╚██╗ ██╔╝ ██╔════╝ ██╔═══██╗██╔══██╗██║ ██║████╗ ██║██╔════╝ // ███████╗██╔██╗ ██║█████╗ ██████...
* @notice Unauthorises addresses. @param addressToUnAuth The address to unauthorise./
function unauthorise(address addressToUnAuth) public onlyOwner { _isAuthorised[addressToUnAuth] = false; }
13,958,131
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1351, 4161, 6141, 6138, 18, 632, 891, 1758, 774, 984, 1730, 1021, 1758, 358, 640, 4161, 784, 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, ...
[ 1, 1, 1, 1, 1, 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, 640, 4161, 784, 12, 2867, 1758, 774, 984, 1730, 13, 1071, 1338, 5541, 288, 203, 565, 389, 291, 3594, 5918, 63, 2867, 774, 984, 1730, 65, 273, 629, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.7; contract SafeTransfer { function _SAFETRANSFER911(ERC20Token _token, address _to, uint256 _value) internal returns (bool result) { //inject NONSTANDARD NAMING _token.TRANSFER494(_to, _value); assembly { ...
inject NONSTANDARD NAMING
function TRANSFER494(address _to, uint256 _value) external returns (bool success);
12,593,783
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4235, 17598, 7616, 24, 12, 2867, 389, 869, 16, 2254, 5034, 389, 1132, 13, 3903, 1135, 261, 6430, 2216, 1769, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/42161/0xEB5C537eE9cc09e55556ea4FDee34D366405dE09/sources/contracts/core/vaults/TokenizedVault.sol
============================================================= Initialize ============================================================= Set the default values for minimum and maximum deposits in the constructor
constructor(address _depostiableToken) ERC20("TokenizedVault", "TKNV") { _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); depositableToken = IERC20(_depostiableToken); uint8 decimals = ERC20(_depostiableToken).decimals(); }
16,303,196
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 20775, 1432, 12275, 13491, 9190, 422, 20775, 1432, 12275, 1000, 326, 805, 924, 364, 5224, 471, 4207, 443, 917, 1282, 316, 326, 3885, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 2867, 389, 323, 2767, 2214, 1345, 13, 4232, 39, 3462, 2932, 1345, 1235, 12003, 3113, 315, 56, 47, 11679, 7923, 288, 203, 3639, 389, 8401, 2996, 12, 5280, 67, 15468, 67, 16256, 16, 1234, 18, 15330, 1769, 203, 3639, ...
./full_match/42/0xAE91AEbAD26C099Da1FA005841401b140c15269a/sources/Users/kasidejphulsuksombati/ALPHA/alphaperp/contracts/AlphaPerp.sol
@dev Update the slot boundary variable and perform kill on bad slots. Handle long side
function _moveSlots() internal { uint _prevMaxSafeLongSlot = maxSafeLongSlot; uint _nextMaxSafeLongSlot = getSlot(mark.fmul(SAFE_THRESHOLD)); while (_prevMaxSafeLongSlot > _nextMaxSafeLongSlot) { uint strike = getStrike(_prevMaxSafeLongSlot); uint ident = getLongIdent(_prevMaxSafeLongSlot); ...
16,273,832
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2315, 326, 4694, 7679, 2190, 471, 3073, 8673, 603, 5570, 12169, 18, 5004, 1525, 4889, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 8501, 16266, 1435, 2713, 288, 203, 565, 2254, 389, 10001, 2747, 9890, 3708, 8764, 273, 943, 9890, 3708, 8764, 31, 203, 565, 2254, 389, 4285, 2747, 9890, 3708, 8764, 273, 17718, 352, 12, 3355, 18, 74, 16411, 12, 222...
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.8.2; struct BassetPersonal { // Address of the bAsset address addr; // Address of the bAsset address integrator; // An ERC20 can charge transfer fee, for example USDT, DGX tokens. bool hasTxFee; // takes a byte in storage // S...
* @dev Collects gov fees from fPools in the form of fPtoken, then converts to mAsset and sends directly to the SavingsManager, where it will be picked up and converted to mBPT upon the next collection/ 1. Collect pending fees 2. If fpTokenBal > 0, convert to mAsset and transfer to savingsManager
function collectGovFees(address[] calldata _fPools) external onlyGovernor { uint256 len = _fPools.length; address savingsManager = _savingsManager(); for (uint256 i = 0; i < len; i++) { address fPool = _fPools[i]; IFeederPool(fPool).collectPendingFees(); ...
1,176,627
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 9302, 87, 31841, 1656, 281, 628, 284, 16639, 316, 326, 646, 434, 284, 52, 2316, 16, 1508, 7759, 358, 312, 6672, 471, 9573, 5122, 358, 326, 348, 27497, 1318, 16, 1625, 518, 903, 506, 255...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3274, 43, 1527, 2954, 281, 12, 2867, 8526, 745, 892, 389, 74, 16639, 13, 3903, 1338, 43, 1643, 29561, 288, 203, 3639, 2254, 5034, 562, 273, 389, 74, 16639, 18, 2469, 31, 203, 203, 3639, 1758, 4087, 899, 1318, 273, 389...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; pragma abicoder v2; import "./interfaces/IUniSwapV2.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol"; import "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol"; import '....
need to pass some data to trigger uniswapV2Call
function testFlashSwap(address _tokenA, address _tokenB, uint _amount) external { address pair = IUniswapV2Factory(FACTORY).getPair(_tokenA, _tokenB); require(pair != address(0), "!pair"); address token0 = IUniswapV2Pair(pair).token0(); address token1 = IUniswapV2Pair(pair).token1();...
12,913,055
[ 1, 4625, 348, 7953, 560, 30, 225, 1608, 358, 1342, 2690, 501, 358, 3080, 640, 291, 91, 438, 58, 22, 1477, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1842, 11353, 12521, 12, 2867, 389, 2316, 37, 16, 1758, 389, 2316, 38, 16, 2254, 389, 8949, 13, 3903, 288, 203, 3639, 1758, 3082, 273, 467, 984, 291, 91, 438, 58, 22, 1733, 12, 16193, 2934, 588, 4154, 24899, 2316, 37, ...
./partial_match/1/0x9F89dEf047bBcF5A4B8a53d2B13ac03437f5d645/sources/MemeBoxToken.sol
Set to false when it gets stable
bool public limitedMode = true;
2,868,993
[ 1, 4625, 348, 7953, 560, 30, 225, 1000, 358, 629, 1347, 518, 5571, 14114, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1426, 1071, 13594, 2309, 273, 638, 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, ...
pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return ...
* @dev Validation of an executed purchase. Observe state and use revert statements to undo rollback when valid conditions are not met. @param _beneficiary Address performing the token purchase @param _weiAmount Value in wei involved in the purchase/ optional override
function _postValidatePurchase(address _beneficiary, uint256 _weiAmount) internal { }
107,935
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 5684, 434, 392, 7120, 23701, 18, 21008, 919, 471, 999, 15226, 6317, 358, 15436, 8006, 1347, 923, 4636, 854, 486, 5100, 18, 632, 891, 389, 70, 4009, 74, 14463, 814, 5267, 14928, 326, 1147,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 389, 2767, 4270, 23164, 12, 2867, 389, 70, 4009, 74, 14463, 814, 16, 2254, 5034, 389, 1814, 77, 6275, 13, 2713, 288, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.13; /** .o. . .o8 .888. .o8 "888 .8"888. .oooo.o .o888oo oooo d8b .ooooo. .oooo888 oooo d8b .ooooo. oo.ooooo. .8' `888. ...
@notice Allows a champion to transfer their right to claim from this shrine to another address. The champion will effectively lose their shrine membership, so make sure the new owner is a trusted party. Only callable by the champion (if the right was never transferred) or the owner (that the original champion transfer...
function transferChampionClaimRight(Champion champion, address newOwner) external { _verifyChampionOwnership(champion); championClaimRightOwner[champion] = newOwner; emit TransferChampionStatus(champion, newOwner); }
15,818,213
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 25619, 279, 462, 931, 285, 358, 7412, 3675, 2145, 358, 7516, 628, 333, 699, 86, 558, 358, 4042, 1758, 18, 1021, 462, 931, 285, 903, 23500, 29612, 3675, 699, 86, 558, 12459, 16, 1427, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 782, 931, 285, 9762, 4726, 12, 782, 931, 285, 462, 931, 285, 16, 1758, 394, 5541, 13, 203, 3639, 3903, 203, 565, 288, 203, 203, 3639, 389, 8705, 782, 931, 285, 5460, 12565, 12, 343, 931, 285, 1769, 203, 203, 2...
pragma solidity 0.5.4; import {Ownable} from "./ownable.sol"; import {Editable} from "./editable.sol"; import "./base_space_interfaces.sol"; import {BaseAccessControlGroup} from "./base_access_control_group.sol"; import {BaseContentType} from "./base_content_type.sol"; import {BaseLibrary} from "./base_library.sol"; i...
TODO: similar issue as tx.origin in Ownable - can't use msg.sender here because it's the space. But as with ownable, don't think there's a legit spoofing attack here because the spoofee ends up with the rights. due to a (intentional?) limitation of the EVM, this stanza *needs* to be duplicated as-is. in particular, ...
function createContentType() public returns (address) { require(msg.sender == contentSpace); address payable newType = address(new BaseContentType(msg.sender)); BaseContentType theType = BaseContentType(newType); IUserSpace userSpaceObj = IUserSpace(contentSpace); address pa...
908,303
[ 1, 4625, 348, 7953, 560, 30, 225, 2660, 30, 7281, 5672, 487, 2229, 18, 10012, 316, 14223, 6914, 300, 848, 1404, 999, 1234, 18, 15330, 2674, 2724, 518, 1807, 326, 3476, 18, 12484, 487, 598, 4953, 429, 16, 225, 2727, 1404, 15507, 1915...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 752, 8046, 1435, 1071, 1135, 261, 2867, 13, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 913, 3819, 1769, 203, 3639, 1758, 8843, 429, 23319, 273, 1758, 12, 2704, 3360, 8046, 12, 3576, 18, 15330, 10019, 203, 3639, 336...
// File: contracts/Owned.sol pragma solidity ^0.6.0; /** * @title The Owned contract * @notice A contract with helpers for basic contract ownership. */ contract Owned { address payable public owner; address private pendingOwner; event OwnershipTransferRequested( address indexed from, address indexe...
* @title External Access Controlled Aggregator Proxy @notice A trusted proxy for updating where current answers are read from @notice This contract provides a consistent address for the Aggregator and AggregatorV3Interface but delegates where it reads from to the owner, who is trusted to update it. @notice Only access ...
contract EACAggregatorProxy is AggregatorProxy { AccessControllerInterface public accessController; constructor( address _aggregator, address _accessController ) public AggregatorProxy(_aggregator) { setController(_accessController); } function setController(address _accessController...
672
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 11352, 5016, 8888, 1259, 10594, 639, 7659, 632, 20392, 432, 13179, 2889, 364, 9702, 1625, 783, 12415, 854, 855, 628, 632, 20392, 1220, 6835, 8121, 279, 11071, 1758, 364, 326, 10594, 639, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 512, 2226, 17711, 3886, 353, 10594, 639, 3886, 288, 203, 203, 225, 25556, 1358, 1071, 2006, 2933, 31, 203, 203, 225, 3885, 12, 203, 565, 1758, 389, 10751, 639, 16, 203, 565, 1758, 389, 3860, 2933, 203, 225, 262, 203, 565, ...
pragma solidity ^0.5.0; //Functions for retrieving min and Max in 51 length array (requestQ) //Taken partly from: https://github.com/modular-network/ethereum-libraries-array-utils/blob/master/contracts/Array256Lib.sol library Utilities { /** * @dev Returns the minimum value in an array. */ function ge...
* @dev Unlocks the dispute fee @param _disputeId is the dispute id/if reported miner stake has not been slashed yet, slash them and return the fee to reporting partyChanging the currentStatus and startDate unstakes the reported miner and transfers the stakeAmountDecreases the stakerCount since the miner's stake is bein...
function unlockDisputeFee (TellorStorage.TellorStorageStruct storage self, uint _disputeId) public { bytes32 _hash = self.disputesById[_disputeId].hash; uint256 _finalId = self.disputeIdsByDisputeHash[_hash][self.disputeIdsByDisputeHash[_hash].length - 1]; TellorStorage.Dispute storage disp ...
12,579,102
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3967, 87, 326, 1015, 2507, 14036, 632, 891, 389, 2251, 2507, 548, 353, 326, 1015, 2507, 612, 19, 430, 14010, 1131, 264, 384, 911, 711, 486, 2118, 9026, 329, 4671, 16, 9026, 2182, 471, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7186, 1669, 2507, 14667, 261, 21009, 280, 3245, 18, 21009, 280, 3245, 3823, 2502, 365, 16, 2254, 389, 2251, 2507, 548, 13, 1071, 288, 203, 3639, 1731, 1578, 389, 2816, 273, 365, 18, 2251, 458, 281, 5132, 63, 67, 2251, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.7.3 <0.9.0; pragma experimental ABIEncoderV2; import {ISuperfluid, ISuperToken, SuperAppBase, SuperAppDefinitions} from "@superfluid-finance/ethereum-contracts/contracts/apps/SuperAppBase.sol"; import {IInstantDistributionAgreementV1} from "@superfluid-finance/ethere...
@dev ERC20._transfer override first try to do ERC20 transfer
function _transfer( address sender, address recipient, uint256 amount ) internal override { uint128 senderUnits = uint128(ERC20.balanceOf(sender)); uint128 recipientUnits = uint128(ERC20.balanceOf(recipient)); ERC20._transfer(sender, recipient, amount); _...
5,529,851
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 4232, 39, 3462, 6315, 13866, 3849, 1122, 775, 358, 741, 4232, 39, 3462, 7412, 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, 389, 13866, 12, 203, 3639, 1758, 5793, 16, 203, 3639, 1758, 8027, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 2713, 3849, 288, 203, 3639, 2254, 10392, 5793, 7537, 273, 2254, 10392, 12, 654, 39, 3462, 18, 12296, 951,...
./partial_match/1/0x2e06e7636f31F042492666c42f6c7ba6c08dc7e2/sources/DmmControllerV2.sol
* NOTE: THE STATE VARIABLES IN THIS CONTRACT CANNOT CHANGE NAME OR POSITION BECAUSE THIS CONTRACT IS USED IN UPGRADEABLE CONTRACTS./ ************************* ***** Events ************************* ************************* ***** Modifiers *************************
contract IOwnableOrGuardian is Initializable { event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); event GuardianTransferred(address indexed previousGuardian, address indexed newGuardian); modifier onlyOwnerOrGuardian { require( msg.sender == _owner...
2,604,242
[ 1, 4625, 348, 7953, 560, 30, 380, 5219, 30, 565, 12786, 7442, 22965, 55, 2120, 20676, 8020, 2849, 1268, 385, 16791, 26267, 6048, 4869, 26808, 9722, 3587, 8001, 20676, 8020, 2849, 1268, 4437, 14988, 40, 2120, 1850, 7376, 24554, 1639, 278...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 16351, 1665, 91, 6914, 1162, 16709, 2779, 353, 10188, 6934, 288, 203, 203, 203, 565, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808, 2416, 5541, 16, 1758, 8808, 394, 5541, 1769, 203, 565, 871, 22809, 2779, 1429, 4193, 12, 2867,...
./full_match/80001/0xfA648f03E25206F41b6CFAA6fC0F10DB971321c1/sources/contracts/StreamingFeeModule.sol
* Calculates streaming fee by multiplying streamingFeePercentage by the elapsed amount of time since the last fee was collected divided by one year in seconds, since the fee is a yearly fee. @param _setToken Address of Set to have feeState updated @return uint256 Streaming fee denominated in percen...
function _calculateStreamingFee(ISetToken _setToken) internal view returns(uint256) { uint256 timeSinceLastFee = block.timestamp.sub(_lastStreamingFeeTimestamp(_setToken)); return timeSinceLastFee.mul(_streamingFeePercentage(_setToken)).div(ONE_YEAR_IN_SECONDS); }
840,677
[ 1, 4625, 348, 7953, 560, 30, 380, 26128, 12833, 14036, 635, 10194, 310, 12833, 14667, 16397, 635, 326, 9613, 3844, 434, 813, 3241, 326, 1142, 14036, 1703, 12230, 26057, 635, 1245, 3286, 316, 3974, 16, 3241, 326, 14036, 353, 279, 3286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11162, 15973, 14667, 12, 45, 694, 1345, 389, 542, 1345, 13, 2713, 1476, 1135, 12, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 813, 9673, 3024, 14667, 273, 1203, 18, 5508, 18, 1717, 24899, 2722, 15973, 14667, 4921, ...
pragma solidity^0.4.16; import "https://github.com/econarchist/project_sexy-/Advanced.sol"; contract Econarchy is owned, TokenERC20, Advanced { struct Position { uint token_price; uint asset_price; uint volume; string direction; uint time; } //Each pla...
Each player can have a number of positions in different shadow assets. This is a mapping from ticker to Position(dir, vol,price, time)
mapping(string => Position) public positions;
6,487,862
[ 1, 4625, 348, 7953, 560, 30, 8315, 7291, 848, 1240, 279, 1300, 434, 6865, 316, 3775, 10510, 7176, 18, 1220, 353, 279, 2874, 628, 14063, 358, 11010, 12, 1214, 16, 6626, 16, 8694, 16, 813, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 1080, 516, 11010, 13, 1071, 6865, 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, -1...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While thes...
* @notice Adds a new token with a specific URI. If the token ID is already in use then this call will revert. This means that the URI can only be set once, so be sure it is correct./
function addToken( uint256 tokenId, string calldata uri ) external onlyOwner { if (bytes(tokenURIs[tokenId]).length > 0) { revert TokenAlreadyExists(); } tokenURIs[tokenId] = uri; }
13,596,284
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 15605, 279, 394, 1147, 598, 279, 2923, 3699, 18, 971, 326, 1147, 1599, 353, 1818, 316, 999, 1508, 333, 745, 903, 15226, 18, 1220, 4696, 716, 326, 3699, 848, 1338, 506, 444, 3647, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 527, 1345, 12, 203, 565, 2254, 5034, 1147, 548, 16, 203, 565, 533, 745, 892, 2003, 203, 225, 262, 3903, 1338, 5541, 288, 203, 565, 309, 261, 3890, 12, 2316, 1099, 2520, 63, 2316, 548, 65, 2934, 2469, 405, 374, 13, 2...
pragma solidity >=0.4.25 <0.6.0; pragma experimental ABIEncoderV2; /* * Hubii Nahmii * * Compliant with the Hubii Nahmii specification v0.12. * * Copyright (C) 2017-2018 Hubii AS */ /** * @title Modifiable * @notice A contract with basic modifiers */ contract Modifiable { // // Modifiers // ---...
@notice Get the number of non-fungible locks for the given wallet @param wallet The address of the locked wallet @return The number of non-fungible locks
function nonFungibleLocksCount(address wallet) public view returns (uint256) { return walletNonFungibleLocks[wallet].length; }
12,574,544
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 968, 326, 1300, 434, 1661, 17, 12125, 75, 1523, 13046, 364, 326, 864, 9230, 632, 891, 9230, 1021, 1758, 434, 326, 8586, 9230, 632, 2463, 1021, 1300, 434, 1661, 17, 12125, 75, 1523, 13046...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1661, 42, 20651, 1523, 19159, 1380, 12, 2867, 9230, 13, 203, 565, 1071, 203, 565, 1476, 203, 565, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 327, 9230, 3989, 42, 20651, 1523, 19159, 63, 19177, 8009, 2469, 31,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; pragma abicoder v2; import "./libraries/NFTDescriptor.sol"; import "./libraries/DetailHelper.sol"; import "base64-sol/base64.sol"; import "./interfaces/IYokaiChainDescriptor.sol"; import "./interfaces/IYokaiChain.sol"; /// @title Describes Yokai /// @notice Pro...
@dev Get item score based on his probability
function itemScoreProba(uint8 item, uint256[] memory ITEMS) private pure returns (uint256) { uint256 raw = ((item == 1 ? MAX : ITEMS[item - 2]) - ITEMS[item - 1]); return multiplicator(raw) / 100; }
1,012,696
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 968, 761, 4462, 2511, 603, 18423, 11331, 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, 761, 7295, 9152, 69, 12, 11890, 28, 761, 16, 2254, 5034, 8526, 3778, 467, 1448, 3537, 13, 3238, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 1831, 273, 14015, 1726, 422, 404, 692, 4552, 294, 467, 1448,...
./full_match/1/0x92A9f26e825161858C470A24211A1BA186dcCdC8/sources/contracts/Nft/Address.sol
* @dev Collection of functions related to the address type/
library Address { function isContract(address account) internal view returns (bool) { uint256 size; return size > 0; } assembly { size := extcodesize(account) } function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(tar...
2,970,638
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2200, 434, 4186, 3746, 358, 326, 1758, 618, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 5267, 288, 203, 203, 565, 445, 353, 8924, 12, 2867, 2236, 13, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 203, 3639, 2254, 5034, 963, 31, 203, 3639, 327, 963, 405, 374, 31, 203, 565, 289, 203, 203, 3639, 19931, 288, 963, ...
pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import '@openzeppelin/contracts/utils/math/SafeMath.sol'; import '@openzeppelin/contracts/interfaces/IERC721.sol'; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "./AnonymiceLibrary.sol"; import "./Origi...
* @dev Returns the token collection name./* @dev Returns the token collection symbol./* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token./ SPDX-License-Identifier: MIT* @dev Collection of functions related to the address type/
library Address { function _beforeTokenTransfer( address from, address to, uint256 tokenId } pragma solidity ^0.8.0; import "../IERC721.sol"; } pragma solidity ^0.8.0; } pragma solidity ^0.8.0; import "../IERC721.sol"; } pragma solidity ^0.8.0; function isContract(address a...
186,793
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 1147, 1849, 508, 18, 20308, 632, 5206, 2860, 326, 1147, 1849, 3273, 18, 20308, 632, 5206, 2860, 326, 1351, 6854, 2591, 10333, 261, 3098, 13, 364, 1375, 2316, 548, 68, 1147, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 5267, 288, 203, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 97, 203, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 20, 31, 20...
./full_match/3/0xe3E78C43980456568eE5902C155079e725dcBB99/sources/browser/ERC1400ERC20.sol
* [NOT MANDATORY FOR ERC1400Raw STANDARD] @dev Set validator contract address. The validator contract needs to verify "ERC1400TokensValidator" interface. Once setup, the validator will be called everytime a transfer is executed. @param validatorAddress Address of the validator contract. @param interfaceLabel Interface ...
function _setHookContract(address validatorAddress, string memory interfaceLabel) internal { ERC1820Client.setInterfaceImplementation(interfaceLabel, validatorAddress); }
14,141,525
[ 1, 4625, 348, 7953, 560, 30, 380, 306, 4400, 490, 4307, 3575, 61, 12108, 4232, 39, 3461, 713, 4809, 23255, 65, 632, 5206, 1000, 4213, 6835, 1758, 18, 1021, 4213, 6835, 4260, 358, 3929, 315, 654, 39, 3461, 713, 5157, 5126, 6, 1560, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 389, 542, 5394, 8924, 12, 2867, 4213, 1887, 16, 533, 3778, 1560, 2224, 13, 2713, 288, 203, 565, 4232, 39, 2643, 3462, 1227, 18, 542, 1358, 13621, 12, 5831, 2224, 16, 4213, 1887, 1769, 203, 225, 289, 203, 203, 2, -100,...
./full_match/1/0x12690d9Bf235E6D9b878d7329b325F6a2a3f359E/sources/BundleToken.sol
returns sorted token addresses, used to handle return values from pairs sorted in this order
library UniswapV2Library { function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES'); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); require(token0...
8,385,507
[ 1, 4625, 348, 7953, 560, 30, 225, 1135, 3115, 1147, 6138, 16, 1399, 358, 1640, 327, 924, 628, 5574, 3115, 316, 333, 1353, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 1351, 291, 91, 438, 58, 22, 9313, 288, 203, 565, 445, 1524, 5157, 12, 2867, 1147, 37, 16, 1758, 1147, 38, 13, 2713, 16618, 1135, 261, 2867, 1147, 20, 16, 1758, 1147, 21, 13, 288, 203, 3639, 2583, 12, 2316, 37, 480, 114...
./partial_match/1/0x903aF4B52BBec2D0e8895332cc8fdd46dc310054/sources/LendingPoolLiquidationManager.sol
* @dev internal function to save on code size for the onlyActiveReserve modifier/
function requireReserveActiveInternal(address _reserve) internal view { require(core.getReserveIsActive(_reserve), "Action requires an active reserve"); }
4,287,813
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2713, 445, 358, 1923, 603, 981, 963, 364, 326, 1338, 3896, 607, 6527, 9606, 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, 565, 445, 2583, 607, 6527, 3896, 3061, 12, 2867, 389, 455, 6527, 13, 2713, 1476, 288, 203, 3639, 2583, 12, 3644, 18, 588, 607, 6527, 2520, 3896, 24899, 455, 6527, 3631, 315, 1803, 4991, 392, 2695, 20501, 8863, 203, 565, 289, 203,...
./partial_match/42/0xC683c3481C669a35317590e4Efd08dE656715b12/sources/DoAn.sol
Tao danh sach cac team theo so luong co san
constructor(){ admin=msg.sender; }
3,486,693
[ 1, 4625, 348, 7953, 560, 30, 399, 6033, 302, 304, 76, 272, 497, 276, 1077, 5927, 326, 83, 1427, 20072, 932, 1825, 272, 304, 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, 3885, 1435, 95, 203, 3639, 3981, 33, 3576, 18, 15330, 31, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/1/0xc48AE836768e52e1DCa7Ad1F6105b0a96D9CA9BA/sources/ShoriVault.sol
used to view the current reward pool
function rewardPool() external view onlyOwner() returns(uint claimable) { return (IERC20(shori).balanceOf(address(this))).sub(totalStaked); }
9,345,748
[ 1, 4625, 348, 7953, 560, 30, 1399, 358, 1476, 326, 783, 19890, 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, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 19890, 2864, 1435, 3903, 1476, 1338, 5541, 1435, 1135, 12, 11890, 7516, 429, 13, 288, 203, 3639, 327, 261, 45, 654, 39, 3462, 12, 674, 280, 77, 2934, 12296, 951, 12, 2867, 12, 2211, 3719, 2934, 1717, 12, 4963, 510, 94...
/** *Submitted for verification at Etherscan.io on 2022-03-19 */ // SPDX-License-Identifier: GPL-3.0 // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal wi...
unreachable statement
revert("ERC721A: unable to determine the owner of token");
6,633,474
[ 1, 4625, 348, 7953, 560, 30, 225, 25132, 3021, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 15226, 2932, 654, 39, 27, 5340, 37, 30, 13496, 358, 4199, 326, 3410, 434, 1147, 8863, 203, 2, -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.23; /* *DivvyUp for Goo * * ====================================================================* *'||''|. || '||' '|' * || || ... .... ... .... ... .... ... , || | ... ... * || || || '|. | '|. | '|. | <> / || ...
* Converts all of caller's dividends to tokens./ fetch dividends pay out the dividends virtually dispatch a buy order with the virtualized "withdrawn dividends" if we have dividends fire event
function reinvestDividends() onlyDividendHolders() public returns (uint256) { uint256 dividends = myDividends(); address customerAddress = msg.sender; payoutsTo[customerAddress] += (int256) (dividends * magnitude); uint256 tokens = purcha...
957,393
[ 1, 4625, 348, 7953, 560, 30, 380, 20377, 777, 434, 4894, 1807, 3739, 350, 5839, 358, 2430, 18, 19, 2158, 3739, 350, 5839, 8843, 596, 326, 3739, 350, 5839, 331, 2714, 3452, 3435, 279, 30143, 1353, 598, 326, 5024, 1235, 315, 1918, 944...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 283, 5768, 395, 7244, 350, 5839, 1435, 203, 3639, 1338, 7244, 26746, 27003, 1435, 203, 3639, 1071, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 2254, 5034, 3739, 350, 5839, 273, 3399, 7244, 350, 5839, ...
pragma solidity ^0.5.16; // File: contracts/NFTfi/v1/openzeppelin/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 private _owner; ...
Transfer principal-plus-interest-minus-fees from borrower to lender
IERC20(loan.loanERC20Denomination).transferFrom(loan.borrower, lender, payoffAmount);
12,852,740
[ 1, 4625, 348, 7953, 560, 30, 225, 12279, 8897, 17, 10103, 17, 2761, 395, 17, 19601, 17, 3030, 281, 628, 29759, 264, 358, 328, 2345, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 467, 654, 39, 3462, 12, 383, 304, 18, 383, 304, 654, 39, 3462, 8517, 362, 1735, 2934, 13866, 1265, 12, 383, 304, 18, 70, 15318, 264, 16, 328, 2345, 16, 8843, 3674, 6275, 1769, 203, 2, -100, -100, -100, -100, -100, -100, ...
./full_match/80001/0xd3a64dcD4e302F934E50b379839F48f90E330605/sources/_openzeppelin/contracts-upgradeable/utils/introspection/ERC165CheckerUpgradeable.sol
* @dev Library used to query support of an interface declared via {IERC165}. Note that these functions return the actual result of the query: they do not `revert` if an interface is not supported. It is up to the caller to decide what to do in these cases./ As per the EIP-165 spec, no interface should ever match 0xffff...
library ERC165CheckerUpgradeable { bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff; function supportsERC165(address account) internal view returns (bool) { return _supportsERC165Interface(account, type(IERC165Upgradeable).interfaceId) && !_supportsERC165Interface(acc...
5,579,534
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 18694, 1399, 358, 843, 2865, 434, 392, 1560, 7886, 3970, 288, 45, 654, 39, 28275, 5496, 3609, 716, 4259, 4186, 327, 326, 3214, 563, 434, 326, 843, 30, 2898, 741, 486, 1375, 266, 1097, 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, 12083, 4232, 39, 28275, 8847, 10784, 429, 288, 203, 565, 1731, 24, 3238, 5381, 389, 18865, 67, 734, 67, 9347, 273, 374, 28857, 31, 203, 203, 203, 565, 445, 6146, 654, 39, 28275, 12, 2867, 2236, 13, 2713, 1476, 1135, 261, 6430, ...
pragma solidity ^0.4.10; /** * @title Interface to communicate with ICO token contract */ contract IToken { function balanceOf(address _address) constant returns (uint balance); function transferFromOwner(address _to, uint256 _value) returns (bool success); } /** * @title Presale token contract */ contract To...
First million of tokens will go 11210762331838 wei for 1 token
tokenSupplies[0] = TokenSupply(100000000, 0, 11428571428571);
13,038,990
[ 1, 4625, 348, 7953, 560, 30, 225, 5783, 312, 737, 285, 434, 2430, 903, 1960, 23543, 2163, 6669, 31026, 2643, 7414, 732, 77, 364, 404, 1147, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 202, 2316, 3088, 5259, 63, 20, 65, 273, 3155, 3088, 1283, 12, 21, 12648, 16, 374, 16, 21284, 6030, 10321, 3461, 6030, 10321, 21, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/1/0x669f16EFB456956354FF16FB32216E6B04571339/sources/src/tokens/FixedPriceToken.sol
@notice contruct a generic data URI from token data
function genericDataURI( string memory _name, string memory _description, string memory _animationURL, string memory _image ) public pure returns (string memory) { return string.concat( "data:application/json;base64,", Base64.en...
9,742,637
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 356, 8813, 279, 5210, 501, 3699, 628, 1147, 501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5210, 751, 3098, 12, 203, 3639, 533, 3778, 389, 529, 16, 203, 3639, 533, 3778, 389, 3384, 16, 203, 3639, 533, 3778, 389, 30822, 1785, 16, 203, 3639, 533, 3778, 389, 2730, 203, 565, 262, 1071, 16618, 1135, 261, 1080, 3...
pragma solidity ^0.5.0; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "../../flashloan/base/FlashLoanReceiverBase.sol"; import "../tokens/MintableERC20.sol"; contract MockFlashLoanReceiver is FlashLoanReceiverBase { using SafeMath for uint256; event ExecutedWithFail(address _reserve, uin...
mint to this contract the specific amountcheck the contract has the specified balancereturns amount + fee, but does not transfer back funds
function executeOperation( address _reserve, uint256 _amount, uint256 _fee) external returns(uint256 returnedAmount) { MintableERC20 token = MintableERC20(_reserve); require(_amount <= getBalanceInternal(address(this), _reserve), "Invalid balance for the contract"); ...
15,831,071
[ 1, 4625, 348, 7953, 560, 30, 312, 474, 358, 333, 6835, 326, 2923, 3844, 1893, 326, 6835, 711, 326, 1269, 14887, 851, 87, 3844, 397, 14036, 16, 1496, 1552, 486, 7412, 1473, 284, 19156, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1836, 2988, 12, 203, 3639, 1758, 389, 455, 6527, 16, 203, 3639, 2254, 5034, 389, 8949, 16, 203, 3639, 2254, 5034, 389, 21386, 13, 3903, 1135, 12, 11890, 5034, 2106, 6275, 13, 288, 203, 3639, 490, 474, 429, 654, 39, 34...
./partial_match/1/0x8a3515f5D127342fcBba56E13514D4A2391327e6/sources/contracts/protocol/libraries/configuration/ReserveConfiguration.sol
* @notice Gets the configuration parameters of the reserve from storage @param self The reserve configuration @return The state param representing ltv @return The state param representing liquidation threshold @return The state param representing liquidation bonus @return The state param representing reserve decimals @...
function getParams(DataTypes.ReserveConfigurationMap memory self) internal pure returns ( uint256, uint256, uint256, uint256, uint256 ) { uint256 dataLocal = self.data; return ( dataLocal & ~...
4,312,172
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 11881, 326, 1664, 1472, 434, 326, 20501, 628, 2502, 632, 891, 365, 1021, 20501, 1664, 632, 2463, 1021, 919, 579, 5123, 13489, 90, 632, 2463, 1021, 919, 579, 5123, 4501, 26595, 367, 5573, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13281, 12, 751, 2016, 18, 607, 6527, 1750, 863, 3778, 365, 13, 203, 3639, 2713, 203, 3639, 16618, 203, 3639, 1135, 261, 203, 5411, 2254, 5034, 16, 203, 5411, 2254, 5034, 16, 203, 5411, 2254, 5034, 16, 203, 5411, 2254, ...
./partial_match/1/0xe3BE0054Da2F8da5002E8bdD8AA4c7fDf851E86D/sources/ERC721CreatorMaxMint.sol
* Set royalties for all tokens of an extension/
function _setRoyaltiesExtension(address extension, address payable[] calldata receivers, uint256[] calldata basisPoints) internal { _checkRoyalties(receivers, basisPoints); delete _extensionRoyalty[extension]; _setRoyalties(receivers, basisPoints, _extensionRoyalty[extension]); if (e...
2,680,693
[ 1, 4625, 348, 7953, 560, 30, 380, 1000, 721, 93, 2390, 606, 364, 777, 2430, 434, 392, 2710, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 542, 54, 13372, 2390, 606, 3625, 12, 2867, 2710, 16, 1758, 8843, 429, 8526, 745, 892, 22686, 16, 2254, 5034, 8526, 745, 892, 10853, 5636, 13, 2713, 288, 203, 3639, 389, 1893, 54, 13372, 2390, 606, 12, 8606, 6760, ...
pragma solidity 0.6.2; pragma experimental ABIEncoderV2; import 'RLP.sol'; import 'StorageStructure.sol'; /// @title CertiÐApp Smart Contract /// @author Soham Zemse from The EraSwap Team /// @notice This contract accepts certificates signed by multiple authorised signers contract CertiDApp is StorageStructure { us...
@notice Sets up the CertiDApp manager address when deployed
constructor() public { _changeManager(msg.sender); }
6,458,681
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 11511, 731, 326, 11921, 77, 40, 3371, 3301, 1758, 1347, 19357, 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, 225, 3885, 1435, 1071, 288, 203, 565, 389, 3427, 1318, 12, 3576, 18, 15330, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-3.0-only // _______________ __ // ____ ___ __ _____________ / ____/__ __/ / / / // / __ __ \/ / ___/ ___/ __ \/ __/ / / / /__/ / // / / / / / / / /__/ / / /_/ / /___ / / / ___ / // /_/ /_/ /_/_/\___/_/ \____/_____/ /_/ /_/...
Map Wei to μETH at this rate
uint256 public constant ETH_CONVERSION = 1e6;
5,752,549
[ 1, 4625, 348, 7953, 560, 30, 225, 1635, 1660, 77, 358, 225, 143, 125, 1584, 44, 622, 333, 4993, 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, 565, 2254, 5034, 1071, 5381, 512, 2455, 67, 2248, 5757, 273, 404, 73, 26, 31, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0xc773343AdB95E3888D754C927e0eaaA20589F3b4/sources/contracts/BDERC1155Tradable.sol
/ Contract name Contract symbolMetadata URI (for backwards compat with old code, overrides URI functionality from openzeppelin)
contract BDERC1155Tradable is ERC1155PresetMinterPauser, Ownable { using Strings for string; address proxyRegistryAddress; uint256 private _currentTokenID = 0; mapping(uint256 => address) public creators; mapping(uint256 => uint256) public tokenSupply; string public name; string public symb...
3,651,562
[ 1, 4625, 348, 7953, 560, 30, 342, 13456, 508, 13456, 3273, 2277, 3699, 261, 1884, 12727, 4796, 598, 1592, 981, 16, 9515, 3699, 14176, 628, 1696, 94, 881, 84, 292, 267, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 605, 4179, 39, 2499, 2539, 1609, 17394, 353, 4232, 39, 2499, 2539, 18385, 49, 2761, 16507, 1355, 16, 14223, 6914, 288, 203, 565, 1450, 8139, 364, 533, 31, 203, 203, 565, 1758, 2889, 4243, 1887, 31, 203, 565, 2254, 5034, 32...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; enum RequestStatus {None, Pending, Completed, Cancelled} struct S_IssueRequest { address payable vault; // vault one address uint256 opentime; address payable requester; address btcAddress; // vault btc address bytes btcPublicKey; uint25...
Amount of ONE to be paid to the user from liquidated Vaults’ collateral
uint256 amountOne;
887,085
[ 1, 4625, 348, 7953, 560, 30, 225, 16811, 434, 15623, 358, 506, 30591, 358, 326, 729, 628, 4501, 26595, 690, 17329, 87, 163, 227, 252, 4508, 2045, 287, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 3844, 3335, 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, ...
./full_match/1/0x14b5Ceaf1957df0BC55c55A865470Ddd245857b5/sources/PAYMENTS_LOT22.sol
* @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 PAYMENTS_LOT22 is Context, Ownable { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); event EmergencyWithdr...
8,286,328
[ 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, 25095, 3212, 55, 67, 1502, 56, 3787, 353, 1772, 16, 14223, 6914, 288, 203, 565, 871, 13838, 1340, 8602, 12, 2867, 2236, 16, 2254, 5034, 24123, 1769, 203, 565, 871, 12022, 26363, 12, 2867, 358, 16, 2254, 5034, 3844, 1769, 2...
// SPDX-License-Identifier: AGPL-3.0 pragma solidity >=0.8.10; import {EnumerableMap} from "@openzeppelin/contracts/utils/structs/EnumerableMap.sol"; import "./types/OlympusAccessControlled.sol"; import "./interfaces/IOlympusAuthority.sol"; import "./interfaces/IOlympusPro.sol"; import "./interfaces/ITreasury.sol"; i...
SPDX-License-Identifier: AGPL-3.0 Info for market note
interface IProNoteKeeper { function create ( ) external returns (uint256 id_); function close(uint256 _id) external; } pragma solidity ^0.8.10; import "./IERC20.sol"; struct Note { } }
333,860
[ 1, 4625, 348, 7953, 560, 30, 225, 11405, 28826, 17, 13211, 17, 3004, 30, 432, 43, 6253, 17, 23, 18, 20, 3807, 364, 13667, 4721, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 626, 8067, 17891, 288, 203, 225, 445, 752, 261, 203, 225, 262, 3903, 1135, 261, 11890, 5034, 612, 67, 1769, 203, 203, 225, 445, 1746, 12, 11890, 5034, 389, 350, 13, 3903, 31, 203, 97, 203, 203, 683, 9454, 18035, 560,...
// SPDX-License-Identifier: Apache-2.0 // VolumeFi Software, Inc. pragma solidity 0.8.11; /// Imported from Openzeppelin interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Tra...
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but also transferring `value` wei to `target`. Requirements: - the calling contract must have an ETH balance of at least `value`. - the called Solidity function must be `payable`. _Available since v3.1._/
function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue( target, data, value, ); }
883,979
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 17795, 487, 288, 22044, 17, 1887, 17, 915, 1477, 17, 2867, 17, 3890, 17, 20294, 68, 915, 1477, 68, 6487, 1496, 2546, 906, 74, 20245, 1375, 1132, 68, 732, 77, 358, 1375, 3299, 8338, 2907...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 445, 26356, 620, 12, 203, 3639, 1758, 1018, 16, 203, 3639, 1731, 3778, 501, 16, 203, 3639, 2254, 5034, 460, 203, 565, 262, 2713, 1135, 261, 3890, 3778, 13, 288, 203, 3639, 327, 203, 5411, 445, 26356, 620, 12, 203, 773...
//SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol"; import "@openzeppelin/contracts/token/ERC721/IERC72...
* Destroys an amount of tokens from an account./
function burn( address account, uint256 id, uint256 amount ) public { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: Caller not owner nor approved" ); require(account != address(0), "ERC1155: Burn fro...
1,773,874
[ 1, 4625, 348, 7953, 560, 30, 380, 28510, 28599, 392, 3844, 434, 2430, 628, 392, 2236, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 18305, 12, 203, 3639, 1758, 2236, 16, 203, 3639, 2254, 5034, 612, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 1071, 288, 203, 3639, 2583, 12, 203, 5411, 2236, 422, 389, 3576, 12021, 1435, 747, 353, 31639, 1290, 1595...
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.10; import {FixedPointInt256 as FPI} from "../libs/FixedPointInt256.sol"; import {OracleInterface} from "../interfaces/OracleInterface.sol"; import {OpynPricerInterface} from "../interfaces/OpynPricerInterface.sol"; import {YearnVaultInterface} from "../interf...
@notice opyn oracle address @notice yToken that this pricer will a get price for @notice underlying asset for this yToken @notice decimals for the underlying asset* @param _yToken yToken asset @param _underlying underlying asset for this yToken @param _oracle Opyn Oracle contract address/
) public { require(_yToken != address(0), "YearnPricer: yToken address can not be 0"); require(_underlying != address(0), "YearnPricer: underlying address can not be 0"); require(_oracle != address(0), "YearnPricer: oracle address can not be 0"); ERC20Interface underlyingToken = ERC...
2,541,953
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1061, 878, 20865, 1758, 632, 20392, 677, 1345, 716, 333, 846, 21349, 903, 279, 336, 6205, 364, 632, 20392, 6808, 3310, 364, 333, 677, 1345, 632, 20392, 15105, 364, 326, 6808, 3310, 14, 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, 262, 1071, 288, 203, 3639, 2583, 24899, 93, 1345, 480, 1758, 12, 20, 3631, 315, 61, 73, 1303, 52, 1512, 264, 30, 677, 1345, 1758, 848, 486, 506, 374, 8863, 203, 3639, 2583, 24899, 9341, 6291, 480, 1758, 12, 20, 3631, 315, ...
pragma solidity ^0.5.0; import "./KIP17.sol"; import "./KIP17Metadata.sol"; import "./KIP17Enumerable.sol"; import "../../access/roles/MinterRole.sol"; import "../../math/SafeMath.sol"; import "../../utils/String.sol"; contract KIP17Syl is KIP17, KIP17Enumerable, KIP17Metadata, MinterRole{ // If someone burns NFT...
In blockchain, blocknumber is the standard of time.
uint256 private _mintStartBlockForSale;
5,500,457
[ 1, 4625, 348, 7953, 560, 30, 225, 657, 16766, 16, 1203, 2696, 353, 326, 4529, 434, 813, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 3238, 389, 81, 474, 1685, 1768, 1290, 30746, 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, -...
pragma solidity ^0.4.11; import './SafeMath.sol'; import './IBancorFormula.sol'; /* Open issues: - The formula is not yet super accurate, especially for very small/very high ratios - Possibly support dynamic precision in the future */ contract BancorFormula is IBancorFormula, SafeMath { uint8 constant...
From the result, we deduct the minimal increment, which is a function of R and precision.
return safeSub(result, _reserveBalance/0x100000000);
1,060,356
[ 1, 4625, 348, 7953, 560, 30, 6338, 326, 563, 16, 732, 11140, 853, 326, 16745, 5504, 16, 1492, 353, 279, 445, 434, 534, 471, 6039, 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, ...
[ 1, 1, 1, 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, 327, 4183, 1676, 12, 2088, 16, 389, 455, 6527, 13937, 19, 20, 92, 21, 12648, 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, ...
// File: contracts/base/ReentrancyGuard.sol // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be a...
@notice This function is used to reward those first 22 tokens which were minted before the staking contract was launched@param uint token-ids are taken in an array format
function rewardFromMint(uint[] memory tokenIds) external isNotPaused{ require(block.timestamp - punkXStart > 5 minutes, "It's not birthday yet"); uint totalAmount; for(uint i=0;i<tokenIds.length;i++){ require(tokenIds[i] < 22,"Reward only till 22"); require (Punkx.own...
6,293,574
[ 1, 4625, 348, 7953, 560, 30, 632, 20392, 1220, 445, 353, 1399, 358, 19890, 5348, 1122, 11201, 2430, 1492, 4591, 312, 474, 329, 1865, 326, 384, 6159, 6835, 1703, 28786, 36, 891, 2254, 1147, 17, 2232, 854, 9830, 316, 392, 526, 740, 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, 19890, 1265, 49, 474, 12, 11890, 8526, 3778, 1147, 2673, 13, 3903, 8827, 28590, 95, 203, 3639, 2583, 12, 2629, 18, 5508, 300, 293, 1683, 60, 1685, 405, 1381, 6824, 16, 315, 7193, 1807, 486, 29950, 4671, 8863, 203, 3639,...