file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
./full_match/1/0x41b84aea119E945f4C275BADA0eD38b8aFE864c8/sources/contracts/DataStructures.sol
* @notice Adds a value to a unique value list (a list with value index mapping) @param _list The list reference @param _indexMap The value index mapping reference @param _value The numeric value @param _sizeLimit The list size limit @return isChanged True if the list was changed, otherwise false/
) returns (bool isChanged) { isChanged = !_indexMap[_value].isSet; function uniqueListAdd( uint256[] storage _list, mapping(uint256 => OptionalValue) storage _indexMap, uint256 _value, uint256 _sizeLimit if (isChanged) { if (_list.length >= _sizeLimit) { revert ListSizeLimit...
17,168,980
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 15605, 279, 460, 358, 279, 3089, 460, 666, 261, 69, 666, 598, 460, 770, 2874, 13, 632, 891, 389, 1098, 1021, 666, 2114, 632, 891, 389, 1615, 863, 1021, 460, 770, 2874, 2114, 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, 13, 1135, 261, 6430, 353, 5033, 13, 288, 203, 565, 353, 5033, 273, 401, 67, 1615, 863, 63, 67, 1132, 8009, 291, 694, 31, 203, 203, 915, 3089, 682, 986, 12, 203, 565, 2254, 5034, 8526, 2502, 389, 1098, 16, 203, 565, 2874, 12, ...
pragma solidity ^0.4.15; /** * @title Ownable contract - base contract with an owner */ contract Ownable { address public owner; address public newOwner; event OwnershipTransferred(address indexed _from, address indexed _to); /** * @dev The Ownable constructor sets the original `owner`...
* @dev Set the contract that can call the invest other crypto function. @param _cryptoAgent crowdsale contract address/
function setCryptoAgent(address _cryptoAgent) public onlyOwner { require(!finalized); cryptoAgent = _cryptoAgent; }
6,416,782
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1000, 326, 6835, 716, 848, 745, 326, 2198, 395, 1308, 8170, 445, 18, 632, 891, 389, 18489, 3630, 276, 492, 2377, 5349, 6835, 1758, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 11440, 5486, 3630, 12, 2867, 389, 18489, 3630, 13, 1071, 1338, 5541, 288, 203, 565, 2583, 12, 5, 6385, 1235, 1769, 203, 565, 8170, 3630, 273, 389, 18489, 3630, 31, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.6.0; interface IPoolInitializer { /* ========== Events ========== */ event TokensContributed( address from, address token, uint256 amount, uint256 credit ); /* ========== Mutative ========== */ function initialize( address controller,...
* @dev Sets up the pre-deployment pool. @param controller_ Address of the pool controller @param poolAddress Address of the pool this pre-deployment pool is for @param tokens Array of desired tokens @param amounts Desired amounts of the corresponding `tokens`/
function initialize( address controller_, address poolAddress, address[] calldata tokens, uint256[] calldata amounts ) external override { require(_poolAddress == address(0), "ERR_INITIALIZED"); _poolAddress = poolAddress; controller = controller_; uint256 len = tokens.leng...
9,851,568
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11511, 731, 326, 675, 17, 21704, 2845, 18, 632, 891, 2596, 67, 5267, 434, 326, 2845, 2596, 632, 891, 2845, 1887, 5267, 434, 326, 2845, 333, 675, 17, 21704, 2845, 353, 364, 632, 891, 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, 225, 445, 4046, 12, 203, 565, 1758, 2596, 67, 16, 203, 565, 1758, 2845, 1887, 16, 203, 565, 1758, 8526, 745, 892, 2430, 16, 203, 565, 2254, 5034, 8526, 745, 892, 30980, 203, 225, 262, 203, 565, 3903, 203, 565, 3849, 203, 225, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import "./EnsResolve.sol"; import "./interfaces/IMiner.sol"; import "./interfaces/ITornadoProxy.sol"; contract ProposalSetMiningRates is EnsResolve { ITornadoProxy immutable public proxy = ITornadoProxy(0x722122dF12D4e14e13A...
Enable mining on tornado instances
function executeProposal() public { IMiner.Rate[] memory rates = new IMiner.Rate[](12); for (uint256 i = 0; i < rates.length; i++) { updateInstance(rates[i].instance, ITornadoProxy.InstanceState.MINEABLE); } }
14,106,856
[ 1, 4625, 348, 7953, 560, 30, 225, 9677, 1131, 310, 603, 25288, 3884, 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, 1836, 14592, 1435, 1071, 288, 203, 3639, 467, 2930, 264, 18, 4727, 8526, 3778, 17544, 273, 394, 467, 2930, 264, 18, 4727, 8526, 12, 2138, 1769, 203, 540, 203, 540, 203, 540, 203, 540, 203, 3639, 364, 261, 11890, 5034, ...
./partial_match/1/0xFC28B9670afFDC8eAf607Af9349e3a02622D6c8b/sources/airdropProxy.sol
======================
function withdrawUnlockedToken(uint _amount) public onlyOwner{ uint available = recieved - paid - totalWithdrawn; require(available >= _amount, "Balance Inssuficiant!"); totalWithdrawn = SafeMath.safeAdd(totalWithdrawn, _amount); remaining = SafeMath.safeSub(remain...
4,078,848
[ 1, 4625, 348, 7953, 560, 30, 225, 28562, 894, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 7087, 329, 1345, 12, 11890, 389, 8949, 13, 1071, 1338, 5541, 95, 7010, 3639, 2254, 2319, 273, 1950, 1385, 2155, 300, 30591, 300, 2078, 1190, 9446, 82, 31, 203, 3639, 2583, 12, 5699, 1545, 389, 8949, 16, 315, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error,...
SPDX-License-Identifier: GPL-3.0/ @title IComptroller Interface @author Enzyme Council <[email protected]>
interface IComptroller { function activate(bool) external; function calcGav() external returns (uint256); function calcGrossShareValue() external returns (uint256); function callOnExtension( address, uint256, bytes calldata ) external; function destructActivated(uint2...
122,416
[ 1, 4625, 348, 7953, 560, 30, 225, 11405, 28826, 17, 13211, 17, 3004, 30, 4948, 48, 17, 23, 18, 20, 19, 632, 2649, 467, 799, 337, 1539, 6682, 632, 4161, 1374, 94, 2942, 73, 385, 465, 71, 330, 411, 63, 3652, 131, 259, 1117, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5831, 467, 799, 337, 1539, 288, 203, 565, 445, 10235, 12, 6430, 13, 3903, 31, 203, 203, 565, 445, 7029, 43, 842, 1435, 3903, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 7029, 43, 3984, 9535, 620, 1435, 3903, 1135, 261, 11...
./partial_match/1/0x3B807162EaFD8637cA81D8CdAAFBF43c0df23972/sources/Superbowl.sol
get balance of liquidity pair calculate amount to burn pull tokens from pancakePair liquidity and move to dead address permanently
function autoBurnLiquidityPairTokens() internal returns (bool){ lastLpBurnTime = block.timestamp; uint256 liquidityPairBalance = this.balanceOf(uniswapV2Pair); uint256 amountToBurn = liquidityPairBalance.mul(p...
3,887,422
[ 1, 4625, 348, 7953, 560, 30, 225, 336, 11013, 434, 4501, 372, 24237, 3082, 4604, 3844, 358, 18305, 6892, 2430, 628, 2800, 23780, 4154, 4501, 372, 24237, 471, 3635, 358, 8363, 1758, 16866, 715, 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, 0, 0, 0, 0, 0, 0, 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, 445, 3656, 38, 321, 48, 18988, 24237, 4154, 5157, 1435, 2713, 1135, 261, 6430, 15329, 203, 1171, 203, 7734, 1142, 48, 84, 38, 321, 950, 273, 1203, 18, 5508, 31, 203, 1171, 203, 7734, 2254, 5034, 4501, 372, 24237, 4154, 1393...
./partial_match/1/0x3e9a668D590B92256bb8D926b147f310791b2B1E/sources/TimeCapsuleFactory.sol
from @openzeppelin String.sol uint256 length = Math.log10(value) + 1; => from @openzeppelin Math.sol/ @solidity memory-safe-assembly
function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = 0; length++; string memory buffer = new string(length); uint256 ptr; assembly { ptr := add(buffer, add(32, length)) }...
3,576,025
[ 1, 4625, 348, 7953, 560, 30, 225, 628, 632, 3190, 94, 881, 84, 292, 267, 514, 18, 18281, 2254, 5034, 769, 273, 2361, 18, 1330, 2163, 12, 1132, 13, 397, 404, 31, 516, 628, 632, 3190, 94, 881, 84, 292, 267, 2361, 18, 18281, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1762, 12, 11890, 5034, 460, 13, 2713, 16618, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 22893, 288, 203, 5411, 2254, 5034, 769, 273, 374, 31, 203, 5411, 769, 9904, 31, 203, 203, 5411, 533, 3778, 1613, 273, 394, 533, 1...
// SPDX-License-Identifier: MIT // Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier) pragma solidity >=0.8.0 <0.9.0; import "../utils/Monotonic.sol"; import "../utils/OwnerPausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Address....
/* ##### CHECKS/ solhint-disable-next-line avoid-tx-origin solhint-disable-next-line avoid-tx-origin solhint-disable-next-line avoid-tx-origin Using Address.sendValue() here would mask the revertMsg upon reentrancy, but we want to expose it to allow for more precise testing. This otherwise uses the exact same pattern a...
function _purchase( address to, uint256 requested, uint256 costMetadata ) internal nonReentrant whenNotPaused { SellerConfig memory config = sellerConfig; uint256 n = config.maxPerTx == 0 ? requested : Math.min(requested, config.maxPerTx); ...
1,800,747
[ 1, 4625, 348, 7953, 560, 30, 1748, 468, 1970, 14565, 55, 19, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 4543, 17, 978, 17, 10012, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 4543, 17, 978, 17, 10012, 3704, 11317, 17, 8394, 17, 4285...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12688, 12104, 12, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3764, 16, 203, 3639, 2254, 5034, 6991, 2277, 203, 565, 262, 2713, 1661, 426, 8230, 970, 1347, 1248, 28590, 288, 203, 3639, 4352, 749, 809, 3778, 64...
./full_match/1/0xf9A778B9473Df94E97bcf06580474d9e428A10CA/sources/contracts/Lottery.sol
* @dev Allows users to buy tickets using their previously owned ERC721 tokens. @param _ticketIds The array of ERC721 token IDs representing the tickets to be used. Validates the ownership of the tokens by the caller. Transfers the required token amount from the user to the contract. Associates the tickets with the user...
function buyTicketsWithPreviousNumbers( uint256[] memory _ticketIds ) external payable { require(_ticketIds.length <= 20, "Exceeded maximum ticket limit"); uint256 totalTickets = _ticketIds.length; for (uint256 i = 0; i < totalTickets; i++) { require(_ticketIds[i] <=...
3,117,198
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25619, 3677, 358, 30143, 24475, 1450, 3675, 7243, 16199, 4232, 39, 27, 5340, 2430, 18, 632, 891, 389, 16282, 2673, 1021, 526, 434, 4232, 39, 27, 5340, 1147, 7115, 5123, 326, 24475, 358, 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, 30143, 6264, 2413, 1190, 8351, 10072, 12, 203, 3639, 2254, 5034, 8526, 3778, 389, 16282, 2673, 203, 565, 262, 3903, 8843, 429, 288, 203, 3639, 2583, 24899, 16282, 2673, 18, 2469, 1648, 4200, 16, 315, 10069, 4207, 9322, 18...
./full_match/77/0xB1E153DA8b7d1fFe40257bc754FDA381128077da/sources/contracts/official/TCF1/TCF1Token.sol
get the balance of the user at this snapshot get the date the payment entered the system get the total amount of balance this user has in offers add the total amount the user has in offers get the total supply at this snapshot get value from index calculate how much he'll receive from this lot, based on the amount of ...
function getDividends(address _aInvestor, uint256 _nPaymentIndex) public view returns (uint256) { uint256 nTokenBalance = balanceOfAt(_aInvestor, _nPaymentIndex); uint256 nPaymentDate = mapPaymentDate[_nPaymentIndex]; uint256 nTotalOffers = getTotalInOffers(nPayme...
5,049,751
[ 1, 4625, 348, 7953, 560, 30, 225, 336, 326, 11013, 434, 326, 729, 622, 333, 4439, 336, 326, 1509, 326, 5184, 16219, 326, 2619, 336, 326, 2078, 3844, 434, 11013, 333, 729, 711, 316, 28641, 527, 326, 2078, 3844, 326, 729, 711, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2343, 427, 350, 5839, 12, 2867, 389, 69, 3605, 395, 280, 16, 2254, 5034, 389, 82, 6032, 1016, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 2254, 5034, 290, 134...
./full_match/3/0x2584834A5bD9A464643036bdfAC0bA2de505A838/sources/ERC721.sol
* @dev Internal function to safely mint a new token. Reverts if the given token ID already exists. If the target address is a contract, it must implement `onERC721Received`, which is called upon a safe transfer, and return the magic value `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise...
function _safeMint(address to, uint256 tokenId,uint256 propertyType,uint256 id) internal virtual { _safeMint(to, tokenId, "",propertyType,id); }
14,260,514
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3186, 445, 358, 15303, 312, 474, 279, 394, 1147, 18, 868, 31537, 309, 326, 864, 1147, 1599, 1818, 1704, 18, 971, 326, 1018, 1758, 353, 279, 6835, 16, 518, 1297, 2348, 1375, 265, 654, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 4626, 49, 474, 12, 2867, 358, 16, 2254, 5034, 1147, 548, 16, 11890, 5034, 21076, 16, 11890, 5034, 612, 13, 2713, 5024, 288, 203, 3639, 389, 4626, 49, 474, 12, 869, 16, 1147, 548, 16, 23453, 4468, 559, 16, 350, ...
./full_match/42220/0xff237aB978AF7f15Fc3eBDac87026fd9de851340/sources/contracts/microcredit/MicrocreditImplementation.sol
owner methods; to be deleted
function copy1(uint256 _start, uint256 _end) external onlyOwner { IMicrocreditOld _microcreditOld = IMicrocreditOld(0xEa4D67c757a6f50974E7fd7B5b1cc7e7910b80Bb); address _walletListAt; uint256 _loansLength; uint256 _walletId; uint256 _loanId; uint256 _walletsLength =...
16,336,050
[ 1, 4625, 348, 7953, 560, 30, 225, 3410, 2590, 31, 358, 506, 4282, 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, 1610, 21, 12, 11890, 5034, 389, 1937, 16, 2254, 5034, 389, 409, 13, 3903, 1338, 5541, 288, 203, 3639, 6246, 4616, 20688, 7617, 389, 14458, 20688, 7617, 273, 6246, 4616, 20688, 7617, 12, 20, 17432, 69, 24, 40, 9599, 71, ...
./full_match/43113/0xd6F1E1628398c4C2e992763fA29225363EeB32D4/sources/project_/contracts/Fold.sol
@title $Fold @author lileddie.eth / Enefte Studio/
contract Fold is ERC20, EnefteOwnership { INinety1 NINETY_ONE; ITwenty6Fifty2 TWENTY; IFoldStaking foldStaking; uint256 private constant MAX_SUPPLY = 2652000000 ether; uint256 private constant FOLD_TOKEN_PRECISION = 1e18; modifier onlyTwenty() { if(msg.sender != address(TWENTY))...
13,188,929
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 271, 15592, 632, 4161, 328, 398, 449, 1385, 18, 546, 342, 1374, 10241, 736, 934, 4484, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 478, 1673, 353, 4232, 39, 3462, 16, 1374, 10241, 736, 5460, 12565, 288, 203, 203, 565, 2120, 267, 14369, 21, 423, 18819, 61, 67, 5998, 31, 7010, 565, 467, 23539, 319, 93, 26, 42, 2136, 93, 22, 24722, 2222, 61, 31, 7010, ...
./full_match/80001/0xAf78b5Ba6AC07eA31D95cF00b9a37A6b32624480/sources/contracts/protocol/config/MarketConfig.sol
* @notice Returns all config values/
function fees() external view override returns ( uint256, uint256, uint256, uint256 ) { return ( burnFee, foundationFee, marketCreatorFee, verificationFee ); ...
5,626,843
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2860, 777, 642, 924, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1656, 281, 1435, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 3849, 203, 3639, 1135, 261, 203, 5411, 2254, 5034, 16, 203, 5411, 2254, 5034, 16, 203, 5411, 2254, 5034, 16, 203, 5411, 2254, 5034, 203, 3639, 262, 203, 565,...
./full_match/137/0xdc6ac48890586A83c17E4c95CaE1C867E56b8260/sources/project_/contracts/libraries/Withdrawing.sol
Validations If withdrawal is by asset symbol (most common) then resolve to asset address Update wallet balances Transfer funds from Custodian to wallet Replay prevention
{ require( Validations.isFeeQuantityValid( withdrawal.gasFeeInPips, withdrawal.grossQuantityInPips, Constants.maxFeeBasisPoints ), 'Excessive withdrawal fee' ); bytes32 withdrawalHash = Validations.validateWithdrawalSignature(withdrawal); require( ...
4,691,626
[ 1, 4625, 348, 7953, 560, 30, 225, 2364, 1012, 971, 598, 9446, 287, 353, 635, 3310, 3273, 261, 10329, 2975, 13, 1508, 2245, 358, 3310, 1758, 2315, 9230, 324, 26488, 12279, 284, 19156, 628, 385, 641, 369, 2779, 358, 9230, 868, 1601, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 288, 203, 565, 2583, 12, 203, 1377, 2364, 1012, 18, 291, 14667, 12035, 1556, 12, 203, 3639, 598, 9446, 287, 18, 31604, 14667, 382, 52, 7146, 16, 203, 3639, 598, 9446, 287, 18, 75, 3984, 12035, 382, 52, 7146, 16, 203, 3639,...
./partial_match/1/0x1E5900aA0444a00B3DAF5bD36d47dD191267CFF7/sources/prayge.sol
exclude from paying fees or having max transaction amount
constructor() ERC20("PRAYGE","PRAYGE") { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; uni...
16,128,483
[ 1, 4625, 348, 7953, 560, 30, 225, 4433, 628, 8843, 310, 1656, 281, 578, 7999, 943, 2492, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1435, 4232, 39, 3462, 2932, 52, 6722, 7113, 15937, 52, 6722, 7113, 7923, 288, 203, 4766, 1377, 203, 3639, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 389, 318, 291, 91, 438, 58, 22, 8259, 273, 467, 984, 291, 91, 43...
pragma solidity ^0.7.0; // SPDX-License-Identifier: MIT /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when d...
`owner` is the owners address
selfdestruct(payeeDevWallet);
10,647,538
[ 1, 4625, 348, 7953, 560, 30, 225, 1375, 8443, 68, 353, 326, 25937, 1758, 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, 3639, 365, 5489, 8813, 12, 10239, 1340, 8870, 16936, 1769, 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, -100, -100, -100, -100...
// SPDX-License-Identifier: MIT pragma solidity 0.6.11; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; //import "@openzeppe...
@notice return the total voting power @dev it represents total summed xDeposit of every client @return big number totalVotingPower
function getTotalVotingPower() external view returns(uint) { return totalVotingPower; }
12,915,807
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 327, 326, 2078, 331, 17128, 7212, 632, 5206, 518, 8686, 2078, 2142, 2937, 619, 758, 1724, 434, 3614, 1004, 632, 2463, 5446, 1300, 2078, 58, 17128, 13788, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 12831, 58, 17128, 13788, 1435, 3903, 1476, 1135, 12, 11890, 13, 288, 203, 565, 327, 2078, 58, 17128, 13788, 31, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.25; contract CryptoColors { uint32 public minBetMultiplier; uint32 public maxBetMultiplier; uint32 public maxTableNumber; uint32 public maxWaitingTimeForPlayers; uint256 public betConstantFinney; // 110 Colors cost 2.6M Gas, 220 Colors cost 4.8M Gas. No OracleRan...
Change the game vars. Only admin (owner) can change
function setGameVars(uint32 argMinBetMultiplier, uint32 argMaxBetMultiplier, uint32 argMaxTableNumber, uint256 argBetConstantFinney, uint32 argMaxWaitingTimeForPlayers) external onlyOwner { minBetMultiplier = argMinBetMultiplier; maxBetMultipli...
7,325,747
[ 1, 4625, 348, 7953, 560, 30, 225, 7576, 326, 7920, 4153, 18, 5098, 3981, 261, 8443, 13, 848, 2549, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 12496, 5555, 12, 11890, 1578, 1501, 2930, 38, 278, 23365, 16, 2254, 1578, 1501, 2747, 38, 278, 23365, 16, 2254, 1578, 1501, 2747, 1388, 1854, 16, 2254, 5034, 1501, 38, 278, 6902, 6187, 82, 402, 16, 7010, 7682, 2254...
./full_match/44787/0xBDb3FAF8fD6668cc92931191e9388B5335cbfBe1/sources/contracts/OffsetHelper.sol
* @notice Change or add eligible tokens and their addresses. @param _tokenSymbol The symbol of the token to add @param _address The address of the token to add/
function setEligibleTokenAddress(string memory _tokenSymbol, address _address) public virtual onlyOwner { eligibleTokenAddresses[_tokenSymbol] = _address; }
13,286,481
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 7576, 578, 527, 21351, 2430, 471, 3675, 6138, 18, 632, 891, 389, 2316, 5335, 1021, 3273, 434, 326, 1147, 358, 527, 632, 891, 389, 2867, 1021, 1758, 434, 326, 1147, 358, 527, 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, 225, 445, 444, 4958, 16057, 1345, 1887, 12, 1080, 3778, 389, 2316, 5335, 16, 1758, 389, 2867, 13, 1071, 5024, 1338, 5541, 288, 203, 565, 21351, 1345, 7148, 63, 67, 2316, 5335, 65, 273, 389, 2867, 31, 203, 225, 289, 203, 203, 2,...
./partial_match/1/0xA1F3aca66403D29b909605040C30ae1F1245d14c/sources/ProxyWrapper.sol
Needed for Etherscan verification
contract ProxyWrapper is ERC1967Proxy { pragma solidity ^0.8.18; constructor(address _logic, bytes memory _data) payable ERC1967Proxy(_logic, _data) {} }
15,656,803
[ 1, 4625, 348, 7953, 560, 30, 225, 26480, 364, 512, 29540, 4169, 11805, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7659, 3611, 353, 4232, 39, 3657, 9599, 3886, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 2643, 31, 203, 565, 3885, 12, 2867, 389, 28339, 16, 1731, 3778, 389, 892, 13, 8843, 429, 4232, 39, 3657, 9599, 3886, 248...
pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; // SPDX-License-Identifier: MIT OR Apache-2.0 import "./ReentrancyGuard.sol"; import "./SafeMath.sol"; import "./SafeMathUInt128.sol"; import "./SafeCast.sol"; import "./Utils.sol"; import "./Storage.sol"; import "./Config.sol"; import "./Events.sol"; imp...
incorrect priority op type
require(priorReqType == Operations.OpType.FullExit, "J");
6,337,011
[ 1, 4625, 348, 7953, 560, 30, 225, 11332, 4394, 1061, 618, 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, 2583, 12, 17927, 6113, 559, 422, 25938, 18, 3817, 559, 18, 5080, 6767, 16, 315, 46, 8863, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.16; library SafeMath { function ADD393(uint256 a, uint256 b) internal pure returns (uint256) { //inject NONSTANDARD NAMING uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; ...
inject NONSTANDARD NAMING
event EXECUTETRANSACTION906(bytes32 indexed txHash, address indexed target, uint value, string signature, bytes data, uint eta);
6,440,240
[ 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, 871, 24508, 9099, 22364, 29, 7677, 12, 3890, 1578, 8808, 2229, 2310, 16, 1758, 8808, 1018, 16, 2254, 460, 16, 533, 3372, 16, 225, 1731, 501, 16, 2254, 14251, 1769, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: GNU-GPL v3.0 or later pragma solidity ^0.8.0; import "./interfaces/IRewardsHandler.sol"; import "./utils/RevestAccessControl.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contr...
* Precondition: fee is already approved by msg sender This simple function increments the multiplier for everyone with existing positions Hence it covers the case where someone enters later, they start with a higher multiplier. We increment totalAllocPoint with new depositors, and increment curMul with new income./
function receiveFee(address token, uint amount) external override { require(token == WETH || token == RVST, "Only WETH and RVST supported"); IERC20(token).safeTransferFrom(msg.sender, address(this), amount); if(totalLPAllocPoint + totalBasicAllocPoint > 0) { uint basicMulInc = (a...
12,114,376
[ 1, 4625, 348, 7953, 560, 30, 380, 2962, 4175, 30, 14036, 353, 1818, 20412, 635, 1234, 5793, 1220, 4143, 445, 17071, 326, 15027, 364, 3614, 476, 598, 2062, 6865, 670, 802, 518, 25559, 326, 648, 1625, 18626, 3281, 414, 5137, 16, 2898, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6798, 14667, 12, 2867, 1147, 16, 2254, 3844, 13, 3903, 3849, 288, 203, 3639, 2583, 12, 2316, 422, 678, 1584, 44, 747, 1147, 422, 534, 58, 882, 16, 315, 3386, 678, 1584, 44, 471, 534, 58, 882, 3260, 8863, 203, 3639, ...
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControlUpgradeable.sol"; import "../utils/ContextUpgradeable.sol"; import "../utils/StringsUpgradeable.sol"; import "../utils/introspection/ERC165Upgradeable.sol"; import "../proxy/util...
* @dev Start tokensale process/
function start() public onlyRole(DEFAULT_ADMIN_ROLE) { require(bytes(_defaultUri).length > 0, "_defaultUri is undefined"); require(vault != address(0), "Vault is undefined"); saleActive = true; }
11,682,409
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3603, 2430, 5349, 1207, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 787, 1435, 1071, 1338, 2996, 12, 5280, 67, 15468, 67, 16256, 13, 288, 203, 3639, 2583, 12, 3890, 24899, 1886, 3006, 2934, 2469, 405, 374, 16, 4192, 1886, 3006, 353, 3109, 8863, 203, 3639, 2583, 12, 26983, 480, 1758, 12,...
./full_match/80001/0x723C045c3235cE1107071B62c4b0b821F306265e/sources/contracts/handler/CompatibilityFallbackHandler.sol
* @dev Performs a delegatecall on a targetContract in the context of self. Internally reverts execution to avoid side effects (making it static). Catches revert and returns encoded result as bytes. @param targetContract Address of the contract containing the code to execute. @param calldataPayload Calldata that should ...
function simulate(address targetContract, bytes calldata calldataPayload) external returns (bytes memory response) { targetContract; calldataPayload; assembly { let internalCalldata := mload(0x40) mstore(internalCalldata, "\xb4\xfa\xba\x09") calldatacopy(...
839,347
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 27391, 279, 7152, 1991, 603, 279, 1018, 8924, 316, 326, 819, 434, 365, 18, 31048, 1230, 15226, 87, 4588, 358, 4543, 4889, 16605, 261, 19718, 518, 760, 2934, 21984, 281, 15226, 471, 1135, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20089, 12, 2867, 1018, 8924, 16, 1731, 745, 892, 745, 892, 6110, 13, 3903, 1135, 261, 3890, 3778, 766, 13, 288, 203, 3639, 1018, 8924, 31, 203, 3639, 745, 892, 6110, 31, 203, 203, 3639, 19931, 288, 203, 5411, 2231, 27...
// SPDX-License-Identifier: MIT pragma solidity 0.6.11; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; //import "@openzeppe...
Global payment update
totalWithdrawalAmount = totalWithdrawalAmount.add(withdrawAmount);
12,915,817
[ 1, 4625, 348, 7953, 560, 30, 225, 8510, 5184, 1089, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2078, 1190, 9446, 287, 6275, 273, 2078, 1190, 9446, 287, 6275, 18, 1289, 12, 1918, 9446, 6275, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one...
@dev Returns whether a user has claimed from presale
function getPresaleClaimed(address user) external view returns (bool) { return presaleClaimed[user]; }
12,177,348
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2860, 2856, 279, 729, 711, 7516, 329, 628, 4075, 5349, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1689, 455, 5349, 9762, 329, 12, 2867, 729, 13, 7010, 565, 3903, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 4075, 5349, 9762, 329, 63, 1355, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -...
./partial_match/1/0xC8CdB0A09141881F3B8b55Cca5AaAD2c7B711684/sources/Funded.sol
@Owner - Callable by Owner contract in-case tokens get's stuck in the token contract.
function withdrawStuckToken(address _token, address _to) external onlyOwner { require(_token != address(0), "_token address cannot be 0"); uint256 _contractBalance = IERC20(_token).balanceOf(address(this)); IERC20(_token).transfer(_to, _contractBalance); }
15,567,233
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5541, 300, 10464, 635, 16837, 6835, 316, 17, 3593, 2430, 336, 1807, 384, 9031, 316, 326, 1147, 6835, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 510, 9031, 1345, 12, 2867, 389, 2316, 16, 1758, 389, 869, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 24899, 2316, 480, 1758, 12, 20, 3631, 4192, 2316, 1758, 2780, 506, 374, 8863, 203, 3639, 2254, 5034, 389, ...
/************************************************************************************** * This contract is an Experiment, and should be used at your own risk. * * Author: Stinky Fi & Twisted Tech * Name: Nightmare On Fantom St. * Desc: Knock on our door, and say the magic words, if you dare! * Minter...
From $FLOOT Inspired by OraclizeAPI's implementation - MIT license https:github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
function toString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(di...
952,359
[ 1, 4625, 348, 7953, 560, 30, 225, 6338, 271, 42, 1502, 1974, 657, 1752, 2921, 635, 531, 354, 830, 554, 2557, 1807, 4471, 300, 490, 1285, 8630, 2333, 30, 6662, 18, 832, 19, 280, 10150, 554, 19, 546, 822, 379, 17, 2425, 19, 10721, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1762, 12, 11890, 5034, 460, 13, 2713, 16618, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 309, 261, 1132, 422, 374, 13, 288, 203, 5411, 327, 315, 20, 14432, 203, 3639, 289, 203, 203, 3639, 2254, 5034, 1906, 273, 460, 31...
pragma solidity 0.4.24; /** * VOXTrader for the talketh.io ICO by Horizon-Globex.com of Switzerland. * * An ERC20 compliant DEcentralized eXchange [DEX] https://talketh.io/dex * * ICO issuers that utilize the Swiss token issuance standard from Horizon Globex * are supplied with a complete KYC+AML platform, a...
* @notice Modify the expiry date of an existing ask. @param expiry The new expiry date./
function setOfferExpiry(uint256 expiry) public { require(enforceKyc == false || isAllowedTrade(msg.sender), "You are unknown and not allowed to trade."); require(expiry > block.timestamp, "Cannot have an expiry date in the past."); TradeOrder memory order = orderBook[msg.sender]; or...
2,481,503
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 9518, 326, 10839, 1509, 434, 392, 2062, 6827, 18, 632, 891, 10839, 565, 1021, 394, 10839, 1509, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 10513, 14633, 12, 11890, 5034, 10839, 13, 1071, 288, 203, 3639, 2583, 12, 275, 5734, 47, 93, 71, 422, 629, 747, 21956, 22583, 12, 3576, 18, 15330, 3631, 315, 6225, 854, 5917, 471, 486, 2935, 358, 18542, 1199, 1769,...
pragma solidity ^0.4.4; contract Owned { address public contractOwner; address public pendingContractOwner; function Owned() { contractOwner = msg.sender; } modifier onlyContractOwner() { if (contractOwner == msg.sender) { _; } } /** * Prepares ow...
* Sets asset spending allowance for a specified spender. @param _spender holder address to set allowance to. @param _value amount to allow. @return success./
function approve(address _spender, uint _value) returns(bool) { return _approve(_spender, _value); }
2,297,537
[ 1, 4625, 348, 7953, 560, 30, 380, 11511, 3310, 272, 9561, 1699, 1359, 364, 279, 1269, 17571, 264, 18, 632, 891, 389, 87, 1302, 264, 10438, 1758, 358, 444, 1699, 1359, 358, 18, 632, 891, 389, 1132, 3844, 358, 1699, 18, 632, 2463, 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, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6617, 537, 12, 2867, 389, 87, 1302, 264, 16, 2254, 389, 1132, 13, 1135, 12, 6430, 13, 288, 203, 3639, 327, 389, 12908, 537, 24899, 87, 1302, 264, 16, 389, 1132, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -1...
./full_match/1/0x1bB02bB85d124430E078fAaDfCAAf4ED10992d9c/sources/contracts/ERC721A.sol
* @title ERC721A Non-Fungible Token Standard, including the Metadata extension. Optimized for lower gas during batch mints. Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) starting from `_startTokenId()`. Assumptions: - An owner cannot have more than 264 - 1 (max value of uint64) of supply. - The maximu...
contract ERC721A is IERC721A { struct TokenApprovalRef { address value; } 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; uint256 private constant _BITPOS_NUMBER_MINTED = 64;...
8,344,821
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 4232, 39, 27, 5340, 37, 3858, 17, 42, 20651, 1523, 3155, 8263, 16, 6508, 326, 6912, 2710, 18, 19615, 1235, 364, 2612, 16189, 4982, 2581, 312, 28142, 18, 3155, 7115, 854, 312, 474, 329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 27, 5340, 37, 353, 467, 654, 39, 27, 5340, 37, 288, 203, 565, 1958, 3155, 23461, 1957, 288, 203, 3639, 1758, 460, 31, 203, 565, 289, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, ...
pragma solidity ^0.6.0; import "../interface/IAccessDefinitions.sol"; /** * @title IOperableStorage * @dev The Operable storage * * @author Cyril Lapinte - <cyril.lapinte@openfiz.com> * SPDX-License-Identifier: MIT * * Error messages */ abstract contract IOperableStorage is IAccessDefinitions { struct Rol...
* @title IOperableStorage @dev The Operable storage @author Cyril Lapinte - <cyril.lapinte@openfiz.com> SPDX-License-Identifier: MIT Error messages/
abstract contract IOperableStorage is IAccessDefinitions { struct RoleData { mapping(bytes4 => bool) privileges; } struct OperatorData { bytes32 coreRole; mapping(address => bytes32) proxyRoles; } }
12,787,058
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 1665, 457, 429, 3245, 632, 5206, 1021, 7692, 429, 2502, 632, 4161, 22337, 86, 330, 511, 438, 474, 73, 300, 411, 2431, 86, 330, 18, 3762, 474, 73, 36, 3190, 74, 452, 18, 832, 34, 11405...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17801, 6835, 1665, 457, 429, 3245, 353, 467, 1862, 7130, 288, 203, 203, 225, 1958, 6204, 751, 288, 203, 565, 2874, 12, 3890, 24, 516, 1426, 13, 19583, 31, 203, 225, 289, 203, 203, 225, 1958, 11097, 751, 288, 203, 565, 1731, 157...
./partial_match/4/0x29F6E00e3dC9ddB9B73fDC42B595EAf159391082/sources/TokenLock.sol
unix unlock max extension allowed - prevents owner from extending indefinitely by mistake
contract TokenLock is Ownable { using SafeMath for uint; uint public unlockTime; uint public constant MAX_EXTENSION_ALLOWED = 30 days; constructor(uint initialUnlockTime) public { require(initialUnlockTime > now, "Cannot set an unlock time in past!"); unlockTime = initialUnlock...
8,762,720
[ 1, 4625, 348, 7953, 560, 30, 225, 9753, 7186, 943, 2710, 2935, 300, 17793, 3410, 628, 27147, 316, 536, 2738, 2357, 635, 27228, 911, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3155, 2531, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 377, 203, 565, 2254, 1071, 7186, 950, 31, 203, 565, 2254, 1071, 5381, 4552, 67, 12796, 67, 16852, 273, 5196, 4681, 31, 203, 377, 203, 565...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount o...
withdraw 3crv from pickleJar
_before = IERC20(want).balanceOf(address(this));
15,121,939
[ 1, 4625, 348, 7953, 560, 30, 225, 598, 9446, 890, 3353, 90, 628, 13379, 10813, 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, 3639, 389, 5771, 273, 467, 654, 39, 3462, 12, 17369, 2934, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.0; interface Hash { function get() public returns (bytes32); } /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; ...
automatically start new period
startNewPeriod();
999,794
[ 1, 4625, 348, 7953, 560, 30, 6635, 787, 394, 3879, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 787, 1908, 5027, 5621, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/1/0x35f470aEF8CE51dE53B4a835168726c4179b1132/sources/contracts/staking/LockedStaking/LockedStaking.sol
check availability to stake such amount, decreasing amount to max available
StakingPlan memory plan = _plans[stakingPlanId];
4,931,383
[ 1, 4625, 348, 7953, 560, 30, 866, 13395, 358, 384, 911, 4123, 3844, 16, 23850, 11730, 3844, 358, 943, 2319, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 934, 6159, 5365, 3778, 4995, 273, 389, 412, 634, 63, 334, 6159, 5365, 548, 15533, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This code has not been reviewed. * Do not use or deploy this code before reviewing it personally first. */ /*...
yes you can overwrite
return n.canAccess[addr] > 3;
13,029,543
[ 1, 4625, 348, 7953, 560, 30, 225, 12465, 1846, 848, 6156, 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, 540, 327, 290, 18, 4169, 1862, 63, 4793, 65, 405, 890, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/5/0x1E628de89FB46a3EdC7e2058867D3A805C13eE35/sources/contracts/Demo2EthPriceInsurance.sol
@notice Enables DeFi users to withdraw premiums paid (No questions asked) @dev Function uses Chainlink price feeds to check if $Eth price @dev is below insured amount, if true, pays holder require sender owns NFT OR he's on the insured list require(policyHolders[msg.sender].insuredPrice < ethPrice); require(policyHold...
function claimSettlement() public nonReentrant { require(insured[msg.sender] == true, "You're not entitled to this!"); uint amountToBePaid = policyHolders[msg.sender].premiumPaid; payable(msg.sender).transfer(amountToBePaid); insured[msg.sender] = false; policyHolders[msg.se...
1,957,225
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1374, 1538, 1505, 42, 77, 3677, 358, 598, 9446, 23020, 5077, 87, 30591, 261, 2279, 13494, 19279, 13, 632, 5206, 4284, 4692, 7824, 1232, 6205, 27684, 358, 866, 309, 271, 41, 451, 6205, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7516, 694, 88, 806, 1435, 1071, 1661, 426, 8230, 970, 288, 203, 3639, 2583, 12, 267, 2055, 72, 63, 3576, 18, 15330, 65, 422, 638, 16, 315, 6225, 4565, 486, 3281, 305, 1259, 358, 333, 4442, 1769, 203, 3639, 2254, 3844,...
// SPDX-License-Identifier: No License (None) pragma solidity ^0.8.0; // helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false library TransferHelper { function safeApprove(address token, address to, uint value) internal { // bytes4(keccak256(bytes('app...
charge company fee
amount = amount * 10000 / (10000 + companyFee);
477,488
[ 1, 4625, 348, 7953, 560, 30, 225, 13765, 9395, 14036, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3844, 273, 3844, 380, 12619, 342, 261, 23899, 397, 9395, 14667, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.5.0; contract Day1Registry { // define the struct Day1User struct Day1User { string name; string surname; address added_by; } // define the array of users Day1User[] public day1_users; function registerUser(string calldata _name, string calldata _surname)...
return the length of the day1_users array
function getNumberOfUsers() external view returns(uint) { return day1_users.length; }
12,833,732
[ 1, 4625, 348, 7953, 560, 30, 225, 327, 326, 769, 434, 326, 2548, 21, 67, 5577, 526, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 14981, 6588, 1435, 3903, 1476, 1135, 12, 11890, 13, 288, 203, 565, 327, 2548, 21, 67, 5577, 18, 2469, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/80001/0x12d8a7fB94b9D57da2F2C04bFBBD3558Fa138646/sources/project_/contracts/ERC20/USDC/ERC20/ERC20.sol
* @dev See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`./
function transfer(address recipient, uint256 amount) external virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
865,571
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 3462, 17, 13866, 5496, 29076, 30, 300, 1375, 20367, 68, 2780, 506, 326, 3634, 1758, 18, 300, 326, 4894, 1297, 1240, 279, 11013, 434, 622, 4520, 1375, 8949, 8338, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 12, 2867, 8027, 16, 2254, 5034, 3844, 13, 203, 3639, 3903, 203, 3639, 5024, 203, 3639, 3849, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 389, 13866, 24899, 3576, 12021, 9334, 8027, 16, 3844, 1769, 20...
./full_match/1/0x0FeE7ed5ae06d451cFded3e92Fcc9c0b5f93e5b4/sources/contracts/BlockpartyContract.sol
@notice Returns a hash of the given Voucher, prepared using EIP712 typed data hashing rules. @param voucher An Voucher to hash.
function _hash(Voucher calldata voucher) internal view returns (bytes32) { return _hashTypedDataV4(keccak256(abi.encode( keccak256("Voucher(string key,uint256 price,address from,address to,string uri,bool giveaway,uint256 deadline,uint256 platformFee)"), keccak256(bytes(voucher.key))...
2,976,530
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2860, 279, 1651, 434, 326, 864, 776, 14329, 16, 8208, 1450, 512, 2579, 27, 2138, 9092, 501, 24641, 2931, 18, 632, 891, 331, 14329, 1922, 776, 14329, 358, 1651, 18, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 2816, 12, 19585, 745, 892, 331, 14329, 13, 2713, 1476, 1135, 261, 3890, 1578, 13, 288, 203, 3639, 327, 389, 2816, 11985, 751, 58, 24, 12, 79, 24410, 581, 5034, 12, 21457, 18, 3015, 12, 203, 5411, 417, 24410, 581,...
./full_match/3/0x0467687F46F0cDd9E037BDE3F45507cC7eE83Ee6/sources/BNB.sol
pool_info.input_volumn.toString(), pool_info.output_volumn.toString()).call();
return 0x01B547630BF98c6EC57df5845520914CdD036c5d;
8,107,871
[ 1, 4625, 348, 7953, 560, 30, 2845, 67, 1376, 18, 2630, 67, 15416, 755, 18, 10492, 9334, 2845, 67, 1376, 18, 2844, 67, 15416, 755, 18, 10492, 1435, 2934, 1991, 5621, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 202, 2463, 374, 92, 1611, 38, 6564, 27, 4449, 20, 15259, 10689, 71, 26, 7228, 10321, 2180, 25, 5193, 2539, 3462, 29, 3461, 19728, 40, 4630, 26, 71, 25, 72, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity 0.4.18; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; /** * @dev The Ownable constructor sets ...
* @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; function Ownable() public { owner = msg.sender; } modifier onlyOwner() { if (msg.sender != owner) { revert(); } _; } modifier onlyOwner() { if (msg.sender != owner) { revert(); } _; } function transferOwnership(addr...
1,027,675
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 14223, 6914, 632, 5206, 1021, 14223, 6914, 6835, 711, 392, 3410, 1758, 16, 471, 8121, 5337, 6093, 3325, 4186, 16, 333, 9330, 5032, 326, 4471, 434, 315, 1355, 4371, 9654, 19, 2, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 14223, 6914, 288, 203, 225, 1758, 1071, 3410, 31, 203, 203, 203, 225, 445, 14223, 6914, 1435, 1071, 288, 203, 565, 3410, 273, 1234, 18, 15330, 31, 203, 225, 289, 203, 203, 203, 225, 9606, 1338, 5541, 1435, 288, 203, 565, ...
pragma solidity 0.6.7; import "./GebUniswapV3ManagerBaseTest.t.sol"; import "../GebUniswapV3LiquidityManager.sol"; contract GebUniswapV3LiquidityManagerTest is GebUniswapV3ManagerBaseTest { uint256 threshold = 200040; //~20% uint256 delay = 120 minutes; GebUniswapV3LiquidityManager manager; // -...
totalSupply should equal the sum of both liquidity amounts Getting new pool information Pool position shouldn't have changed Make the redemption price higher totalSupply should be equal to the sum of the liquidity amounts
function test_multiple_users_adding_liquidity() public { uint256 u1_tkn0Amount = 5 ether; uint256 u1_tkn1Amount = 5 ether; u1.doApprove(address(testRai), address(manager), u1_tkn0Amount); u1.doApprove(address(testWeth), address(manager), u1_tkn1Amount); (bytes32 id, int24 i...
1,034,711
[ 1, 4625, 348, 7953, 560, 30, 225, 2078, 3088, 1283, 1410, 3959, 326, 2142, 434, 3937, 4501, 372, 24237, 30980, 26602, 394, 2845, 1779, 8828, 1754, 12044, 1404, 1240, 3550, 4344, 326, 283, 19117, 375, 6205, 10478, 2078, 3088, 1283, 1410,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1842, 67, 9622, 67, 5577, 67, 3439, 67, 549, 372, 24237, 1435, 1071, 288, 203, 3639, 2254, 5034, 582, 21, 67, 16099, 82, 20, 6275, 273, 1381, 225, 2437, 31, 203, 3639, 2254, 5034, 582, 21, 67, 16099, 82, 21, 6275, 2...
./full_match/80001/0xD00026C7230c0A32a10864b5a0118BFA057c18d3/sources/contracts/Microderiv.sol
return only earnings ammount
function uPnL( uint256 c_id, uint256 price) private view returns (uint256, uint256) { uint256 ir =cM[c_id].ir * ( block.timestamp - cM[c_id].t0) * cM[c_id].qty / 31536000; uint256 uPnL_A; uint256 uPnL_B; if (cM[c_id].initiator == cM[c_id].p_A) { uPnL_B = ir; ...
5,616,717
[ 1, 4625, 348, 7953, 560, 30, 327, 1338, 425, 1303, 899, 2125, 4778, 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, 582, 52, 82, 48, 12, 2254, 5034, 276, 67, 350, 16, 2254, 5034, 6205, 13, 3238, 1476, 1135, 261, 11890, 5034, 16, 2254, 5034, 13, 288, 203, 3639, 2254, 5034, 9482, 273, 71, 49, 63, 71, 67, 350, 8009, 481, 380, 261, ...
pragma solidity ^0.4.10; /// @title A group expenses smart contract allowing you to settle up your debts and credits /// @author Adrien Arcuri /// @notice You can use this contract to record your group expenses, Payment participants, /// check the debts and credits of the groups and settle up. /// @dev No comments fo...
@notice Get balance of a participant @param _waddress the address of the participant @return the balance of the participant
function getBalance(address _waddress) public view returns (int) { return participants[_waddress].balance; }
14,106,491
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 968, 11013, 434, 279, 14188, 632, 891, 389, 91, 2867, 326, 1758, 434, 326, 14188, 632, 2463, 326, 11013, 434, 326, 14188, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2882, 6112, 12, 2867, 389, 91, 2867, 13, 1071, 1476, 1135, 261, 474, 13, 288, 203, 3639, 327, 22346, 63, 67, 91, 2867, 8009, 12296, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.21; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; } contract owned { address public owner; bool public ownershipTransferAllowed = false; constructor() public { owner = msg.sender; }...
send ether to seller
msg.sender.transfer(revenue);
5,410,318
[ 1, 4625, 348, 7953, 560, 30, 225, 1366, 225, 2437, 358, 29804, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1234, 18, 15330, 18, 13866, 12, 266, 24612, 1769, 4766, 5411, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.20; /* * Team Top Kek presents.. * ====================================* * KEK, KEK, KEK, KEK, KEK, KEK, KEK ( 7 KEKS ) * ====================================* * * PROOF OF Kek * -> What? * The last Ethereum pyramide which earns you ETH!!! * [x] Kek Dividends: 15% of every buy and 15% sell w...
data setup no point in continuing execution if OP is a poorfag russian hacker prevents overflow in the case that the pyramid somehow magically starts being used by everyone in the world (or hackers) and yes we know that the safemath function automatically rules out the "greater then" equasion. wealth redistribution no...
function purchaseTokens(uint256 _incomingEthereum, address _referredBy) antiEarlyWhale(_incomingEthereum) internal returns(uint256) { address _customerAddress = msg.sender; uint256 _undividedDividends = SafeMath.div(SafeMath.mul(_incomingEthereum, entryFee_), 100); ...
10,875,320
[ 1, 4625, 348, 7953, 560, 30, 225, 501, 3875, 1158, 1634, 316, 29702, 4588, 309, 7247, 353, 279, 8275, 280, 74, 346, 436, 5567, 2779, 11769, 264, 17793, 9391, 316, 326, 648, 716, 326, 2395, 23083, 28578, 4447, 6478, 2542, 3832, 1399, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23701, 5157, 12, 11890, 5034, 389, 31033, 41, 18664, 379, 16, 1758, 389, 266, 4193, 858, 13, 203, 3639, 30959, 41, 20279, 2888, 5349, 24899, 31033, 41, 18664, 379, 13, 203, 3639, 2713, 203, 3639, 1135, 12, 11890, 5034, ...
./partial_match/56/0x13a2012a176FC1052D28a9ac595B786E8bb7f155/sources/Corvetcoin.sol
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract Corvetcoin is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; constructor() public { symbol = "CVT"; ...
11,289,729
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 6835, 9557, 90, 278, 12645, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 16, 14060, 10477, 288, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2254, 1071, 3...
/** *Submitted for verification at Etherscan.io on 2021-05-31 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, t...
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; mapping(address=>bool) private _enable; I...
366,002
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 16, 467, 654, 39, 3462, 2277, 288, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 2874, 261, 2867, 516, 2874, 261, 2867, 516, ...
//SPDX-License-Identifier: MIT License pragma solidity ^0.8.0; contract AccessControl { address public owner; uint16 public totalStaff = 0; mapping(address => bool) public staff; modifier onlyOwner() { require(msg.sender == owner, 'You are not the owner'); _; } ...
* @dev Gets the balance of the specified address @param owner address to query the balance of @return uint256 representing the amount owned by the passed address/
function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), 'The owner cannot be the 0 address'); return _ownedTokensCount[owner]; }
1,079,345
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11881, 326, 11013, 434, 326, 1269, 1758, 632, 891, 3410, 1758, 358, 843, 326, 11013, 434, 632, 2463, 2254, 5034, 5123, 326, 3844, 16199, 635, 326, 2275, 1758, 19, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 11013, 951, 12, 2867, 3410, 13, 1071, 1476, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 8443, 480, 1758, 12, 20, 3631, 296, 1986, 3410, 2780, 506, 326, 374, 1758, 8284, 203, 3639, 327, 389, 995, 329, 5...
./full_match/56/0xbcbA219545356e4A6D100B7003A0DDc051BAbF15/sources/project_/contracts/CollectionUnlocker.sol
Returns index of collection if _addr is found in collections array. Also acts as an "isValidCollection" requirement Requiring the collection to be valid ensures that an index for collection _addr exists.
function getCollectionIndex(address _addr) public view returns (uint256) { require(isValidCollection(_addr), "Invalid collection."); for (uint256 i = 0; i < collections.length; i++) if (_addr == collections[i]) return i; }
3,234,713
[ 1, 4625, 348, 7953, 560, 30, 225, 2860, 770, 434, 1849, 309, 389, 4793, 353, 1392, 316, 6980, 526, 18, 8080, 22668, 487, 392, 315, 26810, 2532, 6, 12405, 868, 372, 11256, 326, 1849, 358, 506, 923, 11932, 716, 392, 770, 364, 1849, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 12075, 1016, 12, 2867, 389, 4793, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 26810, 2532, 24899, 4793, 3631, 315, 1941, 1849, 1199, 1769, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, 31, 2...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTA...
* @dev Adds address and amount of tokens of a user participating in vesting. Only in Airdrop type. Transfer redeem tokens to contract and mint new vesting tokens for recipient. @param _recipient Address of recipient. @param _amount Amount of tokens./
function addRecipient(address _recipient, uint256 _amount) external override onlyOwner inType(AddType.Airdrop) { require(_recipient != address(0), "Recipient cannot be zero address"); redeemToken.safeTransferFrom(_msgSender(), address(this), _amount); mi...
10,131,898
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 15605, 1758, 471, 3844, 434, 2430, 434, 279, 729, 30891, 1776, 316, 331, 10100, 18, 5098, 316, 432, 6909, 1764, 618, 18, 12279, 283, 24903, 2430, 358, 6835, 471, 312, 474, 394, 331, 10100...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 527, 18241, 12, 2867, 389, 20367, 16, 2254, 5034, 389, 8949, 13, 203, 3639, 3903, 203, 3639, 3849, 203, 3639, 1338, 5541, 203, 3639, 316, 559, 12, 986, 559, 18, 37, 6909, 1764, 13, 203, 565, 288, 203, 3639, 2583, 2489...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one...
@title Here we offer subscriptions to auto-renewing hourly bonds Funds are locked in for an 50 minutes per hour, while interest rates float issuer => holder => bond record
abstract contract HourlyBondSubscriptionLending is BaseLending { mapping(address => YieldAccumulator) hourlyBondYieldAccumulators; uint256 constant RATE_UPDATE_WINDOW = 10 minutes; uint256 public withdrawalWindow = 20 minutes; uint256 constant MAX_HOUR_UPDATE = 4; mapping(address => mapping(address...
563,838
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 13743, 732, 10067, 11912, 358, 3656, 17, 1187, 359, 310, 30662, 15692, 478, 19156, 854, 8586, 316, 364, 392, 6437, 6824, 1534, 6126, 16, 1323, 16513, 17544, 1431, 9715, 516, 10438, 516, 842...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17801, 6835, 20268, 715, 9807, 6663, 48, 2846, 353, 3360, 48, 2846, 288, 203, 565, 2874, 12, 2867, 516, 31666, 27361, 13, 30662, 9807, 16348, 8973, 5283, 3062, 31, 203, 203, 565, 2254, 5034, 5381, 534, 1777, 67, 8217, 67, 23407, ...
./full_match/5/0x701cfEcA9398a9093834BefBf8f5796878ad3BA4/sources/contracts/Contract.sol
return land details
function getLandDetails(string memory _state, string memory _district, string memory _city, uint _surveyNo) external view returns(address, uint256, uint, uint, uint){ address owner = landDetalsMap[_state][_district][_city][_surveyNo].owner; uint256 propertyid = landDetalsMap[_state][_distri...
1,863,350
[ 1, 4625, 348, 7953, 560, 30, 225, 327, 19193, 3189, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 9014, 464, 3790, 12, 1080, 3778, 389, 2019, 16, 533, 3778, 389, 22602, 16, 533, 3778, 389, 14240, 16, 2254, 389, 21448, 2279, 13, 3903, 1476, 1135, 12, 2867, 16, 2254, 5034, 16, 2254, 16, 2254, 16, 2254, 15329, 203, 5...
pragma solidity ^0.4.24; /** * @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 c) { // Gas optimization: this is cheaper than asser...
* @dev Get the NameTAOInfo given an ID @param _internalId The internal ID to be queried @return the name of Name/TAO @return the address of Name/TAO @return the parent name of Name/TAO @return type ID. 0 = TAO. 1 = Name/
function getByInternalId(uint256 _internalId) public view returns (string, address, string, uint256) { require (nameTAOInfos[_internalId].nameTAOAddress != address(0)); NameTAOInfo memory _nameTAOInfo = nameTAOInfos[_internalId]; return ( _nameTAOInfo.name, _nameTAOInfo.nameTAOAddress, _nameTAOInfo.pare...
10,007,064
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 968, 326, 1770, 9833, 51, 966, 864, 392, 1599, 632, 891, 389, 7236, 548, 1021, 2713, 1599, 358, 506, 23264, 632, 2463, 326, 508, 434, 1770, 19, 9833, 51, 632, 2463, 326, 1758, 434, 1770...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9979, 3061, 548, 12, 11890, 5034, 389, 7236, 548, 13, 1071, 1476, 1135, 261, 1080, 16, 1758, 16, 533, 16, 2254, 5034, 13, 288, 203, 202, 202, 6528, 261, 529, 9833, 51, 7655, 63, 67, 7236, 548, 8009, 529, 9833, 51, 1...
./full_match/56/0x48C0adD7A9d5D987Bda160F3333cFf47C3b18f0b/sources/project_/contracts/QuintexPair.sol
this low-level function should be called from a contract which performs important safety checks
function mint(address to) external lock returns (uint liquidity) { uint balance0 = IERC20(token0).balanceOf(address(this)); uint balance1 = IERC20(token1).balanceOf(address(this)); uint amount0 = balance0.sub(_reserve0); uint amount1 = balance1.sub(_reserve1); bool feeOn = _...
3,230,167
[ 1, 4625, 348, 7953, 560, 30, 225, 333, 4587, 17, 2815, 445, 1410, 506, 2566, 628, 279, 6835, 1492, 11199, 10802, 24179, 4271, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 12, 2867, 358, 13, 3903, 2176, 1135, 261, 11890, 4501, 372, 24237, 13, 288, 203, 3639, 2254, 11013, 20, 273, 467, 654, 39, 3462, 12, 2316, 20, 2934, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 3639, 2254, 11...
./full_match/1/0x7Cd8e8bA20cdb9339543f0e1BE772fF880d7E1b4/sources/contracts/pools/rwa/StablzCannavestPoolOneMonth.sol
@dev get the total amount staked (not including otc listings) @return uint Circulating supply
function _getCirculatingSupply() private view returns (uint) { return totalSupply() - totalAmountListed; }
9,614,148
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 336, 326, 2078, 3844, 384, 9477, 261, 902, 6508, 320, 5111, 666, 899, 13, 632, 2463, 2254, 13246, 1934, 1776, 14467, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 588, 10887, 1934, 1776, 3088, 1283, 1435, 3238, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 327, 2078, 3088, 1283, 1435, 300, 2078, 6275, 682, 329, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; pragma abicoder v2; /* solium-disable error-reason */ library ECVerify { function ecverify(bytes32 hash, bytes memory signature) internal pure returns (address signature_address) { require(signature.length == 65); ...
Optionally implemented function to show the number of decimals for the token
interface Token { function totalSupply() external view returns (uint256 supply); function balanceOf(address _owner) external view returns (uint256 balance); function transfer(address _to, uint256 _value) external returns (bool success); function transferFrom(address _from, address _to, uint256 _valu...
13,503,148
[ 1, 4625, 348, 7953, 560, 30, 225, 20720, 8249, 445, 358, 2405, 326, 1300, 434, 15105, 364, 326, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 3155, 288, 203, 203, 565, 445, 2078, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 5034, 14467, 1769, 203, 203, 565, 445, 11013, 951, 12, 2867, 389, 8443, 13, 3903, 1476, 1135, 261, 11890, 5034, 11013, 1769, 203, 203, 565, ...
/** */ // VIKGE, Doge the Viking wow such battle // glory for Wowdin much shibehalla // such conquer glory for unithor // dogetheviking.com (VIKGE) // DOGE'S Viking Alter Ego Official ERC 20 Con...
@dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for executi...
abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
1,449,215
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 28805, 1779, 2973, 326, 783, 4588, 819, 16, 6508, 326, 5793, 434, 326, 2492, 471, 2097, 501, 18, 21572, 4259, 854, 19190, 2319, 3970, 1234, 18, 15330, 471, 1234, 18, 892, 16, 2898, 1410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 1772, 288, 203, 7010, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 565, 445, 389, 3576, 12021, 1435, 2713, 1476, 5024, 1135, 261, 2867, 13, 288, 203, 3639, 327, 1234, 18, 15330, 31, 203, 565, 289, 20...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {ContractGuard} from '../utils/ContractGuard.sol'; import {Epoch} from '../utils/Epoch.sol'; import {FixedPoint} from '../lib/FixedPoint.sol'; import {IBoardroom} from '../interfaces/IBoardroom.sol'; import {IERC20} from '@openzeppelin/contracts/contracts...
we decide how much allocation to give to the boardrooms. there are currently two boardrooms; one for ARTH holders and the other for ARTH liqudity providers TODO: make one for maha holders and one for the various community pools the ecosystem fund recieves seigniorage before anybody else; this value decides how much of...
struct BoardroomState { IBoardroom arthArthLiquidityMlpBoardroom; IBoardroom arthMahaBoardroom; IBoardroom arthArthBoardroom; IBoardroom mahaArthLiquidityMlpBoardroom; IBoardroom mahaMahaBoardroom; IBoardroom mahaArthBoardroom; ISimpleERCFund ecosystemFund; ...
14,033,267
[ 1, 4625, 348, 7953, 560, 30, 225, 732, 16288, 3661, 9816, 13481, 358, 8492, 358, 326, 11094, 13924, 87, 18, 1915, 854, 4551, 2795, 11094, 13924, 87, 31, 1245, 364, 6052, 2455, 366, 4665, 471, 326, 1308, 364, 6052, 2455, 4501, 372, 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, 1958, 17980, 1060, 13924, 1119, 288, 203, 3639, 467, 22233, 13924, 419, 451, 686, 451, 48, 18988, 24237, 49, 9953, 22233, 13924, 31, 203, 3639, 467, 22233, 13924, 419, 451, 49, 69, 3395, 22233, 13924, 31, 203, 3639, 467, 22233...
./full_match/42220/0x28905e7fC007F1638d61AB488EaB71C4b33Ab53e/sources/project:/contracts-0.8/common/UsingRegistry.sol
solhint-disable state-visibility solhint-enable state-visibility
contract UsingRegistry is Ownable { event RegistrySet(address indexed registryAddress); bytes32 constant ACCOUNTS_REGISTRY_ID = keccak256(abi.encodePacked("Accounts")); bytes32 constant ATTESTATIONS_REGISTRY_ID = keccak256(abi.encodePacked("Attestations")); bytes32 constant DOWNTIME_SLASHER_REGISTRY_ID = kecca...
16,335,339
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 11317, 17, 8394, 919, 17, 14422, 3704, 11317, 17, 7589, 919, 17, 14422, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 11637, 4243, 353, 14223, 6914, 288, 203, 225, 871, 5438, 694, 12, 2867, 8808, 4023, 1887, 1769, 203, 203, 225, 1731, 1578, 5381, 29437, 55, 67, 5937, 25042, 67, 734, 273, 417, 24410, 581, 5034, 12, 21457, 18, 3015, 4420, 3...
// File: @openzeppelin/contracts/GSN/Context.sol // SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be...
* @title ERC1363 @dev Implementation of an ERC1363 interface/ Equals to `bytes4(keccak256("onTransferReceived(address,address,uint256,bytes)"))` which can be also obtained as `IERC1363Receiver(0).onTransferReceived.selector` Equals to `bytes4(keccak256("onApprovalReceived(address,uint256,bytes)"))` which can be also ob...
contract ERC1363 is ERC20, IERC1363, ERC165 { using Address for address; bytes4 internal constant _INTERFACE_ID_ERC1363_TRANSFER = 0x4bbee2df; bytes4 internal constant _INTERFACE_ID_ERC1363_APPROVE = 0xfb9ec8ce; bytes4 private constant _ERC1363_RECEIVED = 0x88a7ca5c; bytes4 private constant _ERC...
423,051
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 4232, 39, 3437, 4449, 632, 5206, 25379, 434, 392, 4232, 39, 3437, 4449, 1560, 19, 19344, 358, 1375, 3890, 24, 12, 79, 24410, 581, 5034, 2932, 265, 5912, 8872, 12, 2867, 16, 2867, 16, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3437, 4449, 353, 4232, 39, 3462, 16, 467, 654, 39, 3437, 4449, 16, 4232, 39, 28275, 288, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 1731, 24, 2713, 5381, 389, 18865, 67, 734, 67, 654, 39, 3437, 4449, ...
// SPDX-License-Identifier: MIT // _ ______________ ____________ // / | / / ____/_ __/__ / ____/ ____/_________ ____ ___ // / |/ / /_ / / / _ \/ / __/ / __ / ___/ __ \/ __ `__ \ // / /| / __/ / / / __/ /_/ / /_/ // /__/ /_/ / / / / / / // /_/ |_/_/ /_/ \___/\____/\_...
* @dev See {IERC721Enumerable-tokenByIndex}./
function tokenByIndex(uint256 index) external view override returns (uint256) { (uint256 tokenId, ) = _tokenOwners.at(index); return tokenId; }
1,094,370
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 27, 5340, 3572, 25121, 17, 2316, 21268, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1147, 21268, 12, 11890, 5034, 770, 13, 3903, 1476, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 261, 11890, 5034, 1147, 548, 16, 262, 273, 389, 2316, 5460, 414, 18, 270, 12, 1615, 1769, 203, 3639, 327, 1147, 548, ...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint25...
Verify OGList requirements
function ogMint(uint8 _mintAmount, bytes32[] calldata _merkleProof) public payable { require(phase == 1, "Sale has not started"); require(totalSupply() + _mintAmount <= supply, "You can't mint more then the total supply"); require(walletBuys[msg.sender] + _mintAmount <= ogMax, "Max presale minted for th...
11,891,073
[ 1, 4625, 348, 7953, 560, 30, 225, 8553, 531, 43, 682, 8433, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 22128, 49, 474, 12, 11890, 28, 389, 81, 474, 6275, 16, 1731, 1578, 8526, 745, 892, 389, 6592, 15609, 20439, 13, 1071, 8843, 429, 288, 203, 565, 2583, 12, 13961, 422, 404, 16, 315, 30746, 711, 486, 5746, 8863, 203, 565...
/* ____ __ __ __ _ / __/__ __ ___ / /_ / / ___ / /_ (_)__ __ _\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ / /___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\ /___/ * * Docs: https://docs.synthetix.io/ * * * MIT License * =========== * * Copyright (c) 2020 Synthetix * * Permission is hereb...
Token to be rewarded
contract StrikeFarmPool4 is LPTokenWrapper, IRewardDistributionRecipient { IERC20 public yfi = IERC20(address(0)); uint256 public constant DURATION = 15 days; uint256 public periodFinish = 0; uint256 public rewardRate = 0; uint256 public lastUpdateTime; uint256 public rewardPerTokenStored; ...
5,954,903
[ 1, 4625, 348, 7953, 560, 30, 225, 3155, 358, 506, 283, 11804, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3978, 2547, 42, 4610, 2864, 24, 353, 511, 52, 1345, 3611, 16, 15908, 359, 1060, 9003, 18241, 288, 203, 565, 467, 654, 39, 3462, 1071, 677, 22056, 273, 467, 654, 39, 3462, 12, 2867, 12, 20, 10019, 203, 565, 2254, 5034, 10...
// SPDX-License-Identifier: This smart contract is guarded by an angry ghost pragma solidity ^0.8.0; contract POWNFTv3{ //v2 Variables uint public UNMIGRATED = 0; uint public V2_TOTAL = 0; bytes32 public PREV_CHAIN_LAST_HASH; POWNFTv2 CONTRACT_V2; constructor(address contract_v2){ su...
Array of all tokens [hash,hash,...]
bytes32[] TOKENS;
5,517,786
[ 1, 4625, 348, 7953, 560, 30, 1510, 434, 777, 2430, 306, 2816, 16, 2816, 16, 2777, 65, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1731, 1578, 8526, 14275, 55, 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, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/80001/0x2d44703Fa6da3b82e92fdd999d4e30d0D04571B7/sources/contracts/Character.sol
Check if the character token ID exists Check if the caller is the owner of the character Check if the item tokenId is valid and the caller is the owner of the item Get the ItemType of the item Check if the item is not already equipped in the specified slot Unequip the previous item
function equipItem(uint256 characterTokenId, uint256 tokenId) public { require(characterTokenId < numCharacters, "Invalid character token ID"); require( ownerOf(characterTokenId) == msg.sender, "Not the owner of the character" ); require(battleItems.totalSup...
5,568,491
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 309, 326, 3351, 1147, 1599, 1704, 2073, 309, 326, 4894, 353, 326, 3410, 434, 326, 3351, 2073, 309, 326, 761, 1147, 548, 353, 923, 471, 326, 4894, 353, 326, 3410, 434, 326, 761, 968, 326, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1298, 625, 1180, 12, 11890, 5034, 3351, 1345, 548, 16, 2254, 5034, 1147, 548, 13, 1071, 288, 203, 3639, 2583, 12, 11560, 1345, 548, 411, 818, 11600, 16, 315, 1941, 3351, 1147, 1599, 8863, 203, 203, 3639, 2583, 12, 203, ...
./full_match/80001/0xcFDaa7F44a9aDadAB78c3ecC8Ad65C23cbC109AC/sources/project_/contracts/libs/Product020802Lib.sol
else if (keccak256(abi.encodePacked((endorsmentParams.key))) == "selectedCoverages") { allPolicies[onChainPolicyId].selectedCoverages = selectedCoverages; }
function endorsePolicy( string memory onChainPolicyId, EndorsementParamsStruct memory endorsmentParams, mapping(string => Policy) storage allPolicies ) public { if (keccak256(abi.encodePacked((endorsmentParams.key))) == "riskType") { allPolicies[onChainPolicyId].riskT...
5,564,760
[ 1, 4625, 348, 7953, 560, 30, 225, 469, 309, 261, 79, 24410, 581, 5034, 12, 21457, 18, 3015, 4420, 329, 12443, 409, 1383, 475, 1370, 18, 856, 20349, 422, 315, 8109, 8084, 1023, 7923, 288, 377, 777, 8825, 63, 265, 3893, 2582, 548, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 679, 23035, 2582, 12, 203, 3639, 533, 3778, 603, 3893, 2582, 548, 16, 203, 3639, 4403, 23035, 475, 1370, 3823, 3778, 679, 1383, 475, 1370, 16, 203, 3639, 2874, 12, 1080, 516, 7436, 13, 2502, 777, 8825, 203, 565, 262, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0 <0.9.0; import "./libraries/math/WadRayMath.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/...
* @dev See {IERC20-transfer}./ up to ray
function transfer(address recipient, uint256 amount) public override returns (bool) { uint256 transferAmount = amount.wadToRay(); transferAmount = transferAmount.rayDiv(liquidityIndex); _transfer(_msgSender(), recipient, transferAmount); emit Transfer(_msgSender(), recipient, amount)...
15,853,193
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 3462, 17, 13866, 5496, 19, 731, 358, 14961, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 12, 2867, 8027, 16, 2254, 5034, 3844, 13, 1071, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 5034, 7412, 6275, 273, 3844, 18, 91, 361, 774, 54, 528, 5621, 203, 3639, 7412, 6275, 273, 7412, 6275, 18, 435, 724...
pragma solidity ^0.4.23; // File: @ensdomains/dnssec-oracle/contracts/BytesUtils.sol library BytesUtils { /* * @dev Returns the keccak-256 hash of a byte range. * @param self The byte string to hash. * @param offset The position to start hashing at. * @param len The number of bytes to hash. * ...
@dev Returns the n byte value at the specified index of self. @param self The byte string. @param idx The index into the bytes. @param len The number of bytes. @return The specified 32 bytes of the string./
function readBytesN(bytes memory self, uint idx, uint len) internal pure returns (bytes20 ret) { require(idx + len <= self.length); assembly { let mask := not(sub(exp(256, sub(32, len)), 1)) ret := and(mload(add(add(self, 32), idx)), mask) } }
1,413,823
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2860, 326, 290, 1160, 460, 622, 326, 1269, 770, 434, 365, 18, 632, 891, 365, 1021, 1160, 533, 18, 632, 891, 2067, 1021, 770, 1368, 326, 1731, 18, 632, 891, 562, 1021, 1300, 434, 1731, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25825, 50, 12, 3890, 3778, 365, 16, 2254, 2067, 16, 2254, 562, 13, 2713, 16618, 1135, 261, 3890, 3462, 325, 13, 288, 203, 3639, 2583, 12, 3465, 397, 562, 1648, 365, 18, 2469, 1769, 203, 3639, 19931, 288, 203, 5411, 22...
./partial_match/1/0x508efB44A06a64Bd4020e8c5e8Ecf1A9236C75aE/sources/oracle.sol
@notice Verify the signed HTTP date header. @param _dateHeader extracted date string e.g. Wed, 12 Sep 2018 15:18:14 GMT. @param _lastUpdate timestamp of the last time the requested token was updated. called by verifyProof(), _dateHeader is always a string of length = 20 Split the date string and get individual date co...
function _verifyDate(string memory _dateHeader, uint256 _lastUpdate) private pure returns (bool, uint256) { assert(abi.encodePacked(_dateHeader).length == 20); strings.slice memory date = _dateHeader.toSlice(); strings.slice memory timeDelimiter = ":".toSlice(); strings.slice memory...
3,597,787
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 8553, 326, 6726, 2239, 1509, 1446, 18, 632, 891, 389, 712, 1864, 9438, 1509, 533, 425, 18, 75, 18, 678, 329, 16, 2593, 18032, 14863, 4711, 30, 2643, 30, 3461, 21706, 18, 632, 891, 389,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 8705, 1626, 12, 1080, 3778, 389, 712, 1864, 16, 2254, 5034, 389, 2722, 1891, 13, 3238, 16618, 1135, 261, 6430, 16, 2254, 5034, 13, 288, 203, 3639, 1815, 12, 21457, 18, 3015, 4420, 329, 24899, 712, 1864, 2934, 2469,...
/** *Submitted for verification at Etherscan.io on 2022-03-17 */ // SPDX-License-Identifier: UNLICENSED // File: contracts/abstract/OwnableDelegateProxy.sol pragma solidity 0.8.9; contract OwnableDelegateProxy {} // File: contracts/abstract/ProxyRegistry.sol pragma solidity 0.8.9; // Part: ProxyRegistry cont...
* @dev This method will: 1/ retrieve staked amount of MEEDs that should already been approved on ERC20 MEED Token 2/ Send back some xMEED ERC20 Token for staker/ Retrieve MEEDs from Reserve Fund (TokenFactory)
function _stake(uint256 _amount) internal { require(rewardDistribution.sendReward(address(this)) == true, "Error retrieving funds from reserve"); uint256 totalMeed = meed.balanceOf(address(this)); uint256 totalShares = totalSupply(); if (totalShares == 0 || totalMeed == 0) { ...
10,756,001
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1220, 707, 903, 30, 404, 19, 4614, 384, 9477, 3844, 434, 7733, 2056, 87, 716, 1410, 1818, 2118, 20412, 603, 4232, 39, 3462, 7733, 2056, 3155, 576, 19, 2479, 1473, 2690, 619, 958, 2056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 334, 911, 12, 11890, 5034, 389, 8949, 13, 2713, 288, 203, 3639, 2583, 12, 266, 2913, 9003, 18, 4661, 17631, 1060, 12, 2867, 12, 2211, 3719, 422, 638, 16, 315, 668, 17146, 284, 19156, 628, 20501, 8863, 203, 203, 3...
pragma solidity ^0.4.18; // Owned contract // ---------------------------------------------------------------------------- contract Owned { address public owner; modifier onlyOwner() { require(msg.sender == owner); _; } function Owned() public { owner = msg.sender; } fu...
@dev Calculate exchange
function buyPriceAt(uint256 _time) internal constant returns(uint256) { if (_time >= startTimeRoundOne && _time <= stopTimeRoundOne) { return exchangeRateRoundOne; return 0; } }
48,199
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 9029, 7829, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 30143, 5147, 861, 12, 11890, 5034, 389, 957, 13, 2713, 5381, 1135, 12, 11890, 5034, 13, 288, 203, 3639, 309, 261, 67, 957, 1545, 8657, 11066, 3335, 597, 389, 957, 1648, 2132, 950, 11066, 3335, 13, 288, 203, 5411, 327, ...
./partial_match/1/0xe717Ec34b2707fc8c226b34be5eae8482d06ED03/sources/OracleJob.sol
See if the spot price changes
spotter.poke(ilk);
15,521,113
[ 1, 4625, 348, 7953, 560, 30, 225, 2164, 309, 326, 16463, 6205, 3478, 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, 5411, 16463, 387, 18, 84, 3056, 12, 330, 79, 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...
// File: @openzeppelin/contracts/GSN/Context.sol // SPDX-License-Identifier: MIT pragma solidity ^0.7.0; ...
inject NONSTANDARD NAMING
function _TOBYTES32816(string memory serviceName) private pure returns (bytes32) {
12,985,174
[ 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, 389, 4296, 13718, 1578, 28, 2313, 12, 1080, 3778, 6773, 13, 3238, 16618, 1135, 261, 3890, 1578, 13, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2021-04-16 */ // File: contracts/interfaces/IBridgeValidators.sol pragma solidity 0.4.24; interface IBridgeValidators { function isValidator(address _validator) external view returns (bool); function requiredSignatures() external view returns (uint256); ...
* @dev Internal function for validating pre-execution requirements. @param _data bytes to be relayed. @param _signatures bytes blob with signatures to be validated./ this checks prevents execution of other messages, while some other message is being processed nested executeSignatures is considered to be unsafe, since i...
function _allowMessageExecution(bytes _data, bytes _signatures) internal { require(messageId() == bytes32(0)); Message.hasEnoughValidSignatures(_data, _signatures, validatorContract(), true); }
2,188,964
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3186, 445, 364, 18075, 675, 17, 16414, 8433, 18, 632, 891, 389, 892, 1731, 358, 506, 18874, 329, 18, 632, 891, 389, 30730, 1731, 4795, 598, 14862, 358, 506, 10266, 18, 19, 333, 4271, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 5965, 1079, 3210, 12, 3890, 389, 892, 16, 1731, 389, 30730, 13, 2713, 288, 203, 3639, 2583, 12, 2150, 548, 1435, 422, 1731, 1578, 12, 20, 10019, 203, 203, 3639, 2350, 18, 5332, 664, 4966, 1556, 23918, 24899, 892, ...
pragma solidity ^0.5.10; import {TBTCDepositToken} from "../system/TBTCDepositToken.sol"; import {TBTCToken} from "../system/TBTCToken.sol"; import {FeeRebateToken} from "../system/FeeRebateToken.sol"; import {VendingMachine} from "../system/VendingMachine.sol"; import {Deposit} from "../deposit/Deposit.sol"; import {...
@notice A one-click script for redeeming TBTC into BTC. @dev Wrapper script for VendingMachine.tbtcToBtc.
contract RedemptionScript { using BytesLib for bytes; TBTCToken tbtcToken; VendingMachine vendingMachine; FeeRebateToken feeRebateToken; constructor( address _VendingMachine, address _TBTCToken, address _FeeRebateToken import {TBTCDepositToken} from "../system/TBTCDepos...
1,806,790
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 432, 1245, 17, 7475, 2728, 364, 283, 24903, 310, 399, 38, 15988, 1368, 605, 15988, 18, 632, 5206, 18735, 2728, 364, 776, 2846, 6981, 18, 18587, 5111, 774, 38, 5111, 18, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 868, 19117, 375, 3651, 288, 203, 565, 1450, 5985, 5664, 364, 1731, 31, 203, 377, 203, 565, 399, 38, 56, 1268, 969, 8739, 5111, 1345, 31, 203, 565, 776, 2846, 6981, 331, 2846, 6981, 31, 203, 565, 30174, 426, 70, 340, 1345...
pragma solidity ^0.5.0; // ---------------------------------------------------------------------------- // ERC Token Standard #20 Interface // // ---------------------------------------------------------------------------- contract ERC20Interface { function totalSupply() public view returns (uint); function ba...
* Constrctor function Initializes contract with initial supply tokens to the creator of the contract/
constructor() public { name = "iDosGamesToken"; symbol = "IGT"; decimals = 18; _totalSupply = 1000000000000000000000000000; balances[msg.sender] = _totalSupply; emit Transfer(address(0), msg.sender, _totalSupply); }
1,350,300
[ 1, 4625, 348, 7953, 560, 30, 380, 735, 701, 30206, 445, 10188, 3128, 6835, 598, 2172, 14467, 2430, 358, 326, 11784, 434, 326, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 1071, 288, 203, 3639, 508, 273, 315, 77, 40, 538, 43, 753, 1345, 14432, 203, 3639, 3273, 273, 315, 3047, 56, 14432, 203, 3639, 15105, 273, 6549, 31, 203, 3639, 389, 4963, 3088, 1283, 273, 2130, 12648, 12648, 2787...
./full_match/4/0x919febb6648cE9015dC71E924FedFc91A56b9a0b/sources/contracts/Comptroller.sol
* @notice Calculate COMP accrued by a borrower and possibly transfer it to them @dev Borrowers will not begin to accrue until after the first interaction with the protocol. @param cToken The market in which the borrower is interacting @param borrower The address of the borrower to distribute COMP to/ TODO: Don't distri...
function distributeBorrowerComp(address cToken, address borrower, Exp memory marketBorrowIndex) internal { CompMarketState storage borrowState = compBorrowState[cToken]; uint borrowIndex = borrowState.index; uint borrowerIndex = compBorrowerIndex[cToken][borrower]; compBorrowerInde...
770,294
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 9029, 13846, 4078, 86, 5957, 635, 279, 29759, 264, 471, 10016, 7412, 518, 358, 2182, 632, 5206, 605, 15318, 414, 903, 486, 2376, 358, 4078, 86, 344, 3180, 1839, 326, 1122, 13581, 598, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 25722, 38, 15318, 264, 2945, 12, 2867, 276, 1345, 16, 1758, 29759, 264, 16, 7784, 3778, 13667, 38, 15318, 1016, 13, 2713, 288, 203, 203, 3639, 5427, 3882, 278, 1119, 2502, 29759, 1119, 273, 1161, 38, 15318, 1119, 63, 71...
./partial_match/1/0xeb285c5f92488B3d86Aa1B19880d3749e7424d1A/sources/OlympusIndex.sol
----------------------------- STEP PROVIDER -----------------------------
function initializeOrContinueStep(bytes32 category) internal returns(uint) { return StepInterface(getComponentByName(STEP)).initializeOrContinue(category); }
4,162,369
[ 1, 4625, 348, 7953, 560, 30, 225, 12146, 7620, 25538, 4629, 20059, 12146, 7620, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4046, 1162, 12378, 4160, 12, 3890, 1578, 3150, 13, 2713, 1135, 12, 11890, 13, 288, 203, 3639, 327, 225, 8693, 1358, 12, 588, 1841, 5911, 12, 26951, 13, 2934, 11160, 1162, 12378, 12, 4743, 1769, 203, 565, 289, 203, 203, ...
./partial_match/1/0x0429D0A028D6A8a6Ea50eAaCfe1137bB30156E9d/sources/TradeAccounting.sol
File: contracts/interface/ISetToken.sol function getUnits() external view returns (uint256[] memory);
interface ISetToken { function unitShares() external view returns(uint); function naturalUnit() external view returns(uint); function currentSet() external view returns(address); }
2,670,623
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 30, 20092, 19, 5831, 19, 45, 694, 1345, 18, 18281, 445, 336, 7537, 1435, 3903, 1476, 1135, 261, 11890, 5034, 8526, 3778, 1769, 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, 5831, 467, 694, 1345, 288, 203, 565, 445, 2836, 24051, 1435, 3903, 1476, 1135, 12, 11890, 1769, 203, 565, 445, 15145, 2802, 1435, 3903, 1476, 1135, 12, 11890, 1769, 203, 565, 445, 783, 694, 1435, 3903, 1476, 1135, 12, 2867, 1769, ...
pragma solidity 0.4.24; import "../../lib/ownership/Claimable.sol"; import "../interfaces/TokenInterface.sol"; import "../interfaces/ProxySupportedERC20Interface.sol"; import "../interfaces/ProxyInterface.sol"; /** * @title Contains admin functions for interactor. * * @notice * - Set token and proxy contracts * ...
@notice Token contract address. @notice Token Proxy contract address. @notice Appointed first admin address. @notice Appointed second admin address. @notice Allow only if Admin 1 is sending the transaction.
modifier onlyAdmin1() { require(msg.sender == admin1, "Only allowed for Admin1"); _; }
12,877,166
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3155, 6835, 1758, 18, 632, 20392, 3155, 7659, 6835, 1758, 18, 632, 20392, 1716, 1153, 329, 1122, 3981, 1758, 18, 632, 20392, 1716, 1153, 329, 2205, 3981, 1758, 18, 632, 20392, 7852, 1338, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 4446, 21, 1435, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 3981, 21, 16, 315, 3386, 2935, 364, 7807, 21, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/1/0xcC3c4A84a11E80752B217Fbb3b2DD9f99DE512f5/sources/contracts/H2HVRF2.sol
normalized (0-Entries array size) random number generated by the VRF
uint48 randomNumber;
15,489,655
[ 1, 4625, 348, 7953, 560, 30, 225, 5640, 261, 20, 17, 5400, 526, 963, 13, 2744, 1300, 4374, 635, 326, 776, 12918, 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,...
[ 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, 3639, 2254, 8875, 2744, 1854, 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,...
./partial_match/1/0x9a86B5A9224243039e057BD2F837A150FdE3f45c/sources/StabilizeStrategyBTCArbV3.sol
This is the gain of wBTC
_amount = tokenList[1].token.balanceOf(address(this)).sub(_before);
15,728,895
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 353, 326, 17527, 434, 341, 38, 15988, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 7734, 389, 8949, 273, 1147, 682, 63, 21, 8009, 2316, 18, 12296, 951, 12, 2867, 12, 2211, 13, 2934, 1717, 24899, 5771, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT pragma solidity 0.7.5; pragma experimental ABIEncoderV2; import {IStakedToken} from '../interfaces/IStakedToken.sol'; import {StakeUIHelperI} from './StakeUIHelperI.sol'; import {IERC20WithNonce} from './IERC20WithNonce.sol'; import {IERC20} from '../lib/ERC20.sol'; import {IPriceOracle...
* @title ERC20 @notice Basic ERC20 implementation @author Aave/
contract ERC20 is Context, IERC20, IERC20Detailed { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; const...
7,015,234
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 4232, 39, 3462, 632, 20392, 7651, 4232, 39, 3462, 4471, 632, 4161, 432, 836, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 16, 467, 654, 39, 3462, 40, 6372, 288, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 225, 2874, 12, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, ...
pragma solidity ^0.4.24; import "../modules/Experimental/Burn/TrackedRedemption.sol"; /** * @title Burn module for burning tokens and keeping track of burnt amounts */ contract MockRedemptionManager is TrackedRedemption { mapping (address => uint256) tokenToRedeem; event RedeemedTokenByOwner(address _inve...
* @notice Transfers tokens to Module to burn @param _value The number of tokens to redeem/
function transferToRedeem(uint256 _value) public { require(ISecurityToken(securityToken).transferFrom(msg.sender, address(this), _value), "Insufficient funds"); tokenToRedeem[msg.sender] = _value; }
15,797,228
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2604, 18881, 2430, 358, 5924, 358, 18305, 632, 891, 389, 1132, 1021, 1300, 434, 2430, 358, 283, 24903, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 774, 426, 24903, 12, 11890, 5034, 389, 1132, 13, 1071, 288, 203, 3639, 2583, 12, 45, 4368, 1345, 12, 7462, 1345, 2934, 13866, 1265, 12, 3576, 18, 15330, 16, 1758, 12, 2211, 3631, 389, 1132, 3631, 315, 5048, 11339,...
./full_match/4/0xC9434231534B8fab79d9226e1b443c372A966F65/sources/contracts/curation/CurationStorage.sol
Default reserve ratio to configure curator shares bonding curve Parts per million. (Allows for 4 decimal points, 999,999 = 99.9999%)
uint32 public defaultReserveRatio;
649,200
[ 1, 4625, 348, 7953, 560, 30, 225, 2989, 20501, 7169, 358, 5068, 662, 639, 24123, 8427, 310, 8882, 28195, 1534, 312, 737, 285, 18, 261, 19132, 364, 1059, 6970, 3143, 16, 22249, 16, 11984, 273, 14605, 18, 7991, 9, 13, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1578, 1071, 805, 607, 6527, 8541, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** * NotaryPlatformToken.sol v1.0.1 * * Bilal Arif - https://twitter.com/furusiyya_ * Notary Platform */ pragma solidity ^0.4.16; import './Ownable.sol'; import './SafeMath.sol'; import './Pausable.sol'; import './Allocations.sol'; import './ReentrancyGuard.sol'; contract NotaryPlatformToken is Pausable, ...
* @notice Transfers tokens held by timelock to beneficiary./
function claim() external whenNotPaused nonReentrant timeLock isTeamMember { balances[msg.sender] = balances[msg.sender].add(release()); } bool private upgrading = false; MigrationAgent private agent; event Migrate(address indexed _from, address indexed _to, uint256 _value); event Upgrading(bool status...
6,362,087
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2604, 18881, 2430, 15770, 635, 1658, 292, 975, 358, 27641, 74, 14463, 814, 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, ...
[ 1, 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, 7516, 1435, 3903, 1347, 1248, 28590, 1661, 426, 8230, 970, 813, 2531, 353, 8689, 4419, 288, 203, 565, 324, 26488, 63, 3576, 18, 15330, 65, 273, 324, 26488, 63, 3576, 18, 15330, 8009, 1289, 12, 9340, 10663, 203, 225, 289...
pragma solidity ^0.6.0; contract bankSystem { mapping(string => address) public students; mapping(address => cdeatil) public balances; address payable owner; uint public capital; // Create client structure struct cdeatil { uint amount; bool isExist; } // To check a...
To deposit in bank account
function deposit() public payable isEnroll { balances[msg.sender].amount+=msg.value; capital+=msg.value; }
6,400,984
[ 1, 4625, 348, 7953, 560, 30, 225, 2974, 443, 1724, 316, 11218, 2236, 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, 443, 1724, 1435, 1071, 8843, 429, 353, 664, 2693, 288, 203, 3639, 324, 26488, 63, 3576, 18, 15330, 8009, 8949, 15, 33, 3576, 18, 1132, 31, 203, 3639, 12872, 15, 33, 3576, 18, 1132, 31, 203, 565, 289, 203, 377, 203, ...
./partial_match/1/0x790C95EF074B77A8F92A5163cC056F163A8631e6/sources/BancorConverter.sol
* @dev allows the owner to set the associated BancorX contract @param _bancorX BancorX contract/
function setBancorX(address _bancorX) public ownerOnly { bancorX = _bancorX; }
3,918,091
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 5360, 326, 3410, 358, 444, 326, 3627, 605, 304, 3850, 60, 6835, 632, 891, 389, 21515, 3850, 60, 565, 605, 304, 3850, 60, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 15268, 304, 3850, 60, 12, 2867, 389, 21515, 3850, 60, 13, 1071, 3410, 3386, 288, 203, 3639, 25732, 3850, 60, 273, 389, 21515, 3850, 60, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0xD1CE9000dAe71a7130c193486761c324fbf94819/sources/cache/solpp-generated-contracts/VRF.sol
* Being given all the bet attributes, computes a hash sum of the bet, allowing the contract to quickly verify the equivalence of the bets being considered as well as providing a unique identifier for any bet ever placed. @param player the address of the player placing the bet. @param playerNonce the seq number of the b...
function computeVrfInputHash(address player, uint playerNonce, PackedBet packedBet) internal view returns (bytes32) { return keccak256(abi.encode(block.chainid, address(this), player, playerNonce, packedBet.toUint())); }
2,904,056
[ 1, 4625, 348, 7953, 560, 30, 380, 4823, 310, 864, 777, 326, 2701, 1677, 16, 15881, 279, 1651, 2142, 434, 326, 2701, 16, 15632, 326, 6835, 358, 23459, 3929, 326, 28369, 434, 326, 324, 2413, 3832, 7399, 487, 5492, 487, 17721, 279, 308...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3671, 58, 5809, 1210, 2310, 12, 2867, 7291, 16, 2254, 7291, 13611, 16, 7930, 329, 38, 278, 12456, 38, 278, 13, 2713, 1476, 1135, 261, 3890, 1578, 13, 288, 203, 565, 327, 417, 24410, 581, 5034, 12, 21457, 18, 3015, 12,...
./full_match/3/0xb6B297B74De071D28FaBa96fC7Ee8B3C94d3097f/sources/contracts/1_Storage.sol
address of owner that deployed contract
address _owner = 0x3D88e71D6526e9e61c2D20aA8dcDaDDABe11ed5b;
8,180,509
[ 1, 4625, 348, 7953, 560, 30, 1758, 434, 3410, 716, 19357, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 389, 8443, 273, 374, 92, 23, 40, 5482, 73, 11212, 40, 9222, 5558, 73, 29, 73, 9498, 71, 22, 40, 3462, 69, 37, 28, 7201, 40, 69, 5698, 37, 1919, 2499, 329, 25, 70, 31, 225, 2, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } interface IERC20 { ...
exclude owner and contract instance from fees
_excludedFromFees[address(this)] = true;
130,729
[ 1, 4625, 348, 7953, 560, 30, 225, 4433, 3410, 471, 6835, 791, 628, 1656, 281, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 24602, 1265, 2954, 281, 63, 2867, 12, 2211, 25887, 273, 638, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./partial_match/1/0xe6F4d9711121e5304b30aC2Aae57E3b085ad3c4d/sources/src/libraries/external/LenderActions.sol
[WAD] Constraint on deposit in quote token.
uint256 depositConstraint;
3,630,218
[ 1, 4625, 348, 7953, 560, 30, 225, 306, 59, 1880, 65, 10770, 603, 443, 1724, 316, 3862, 1147, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 443, 1724, 5806, 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, ...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/GSN/Context.sol /** _______ __ __ ___ _______ _______ _______ ___ ___ ___ _______ _______ __ __ _______ ___ __ _ | || | | || | | _ || _ || | | | | | | | | || || | ...
* @dev See {IERC165-supportsInterface}./
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); }
176,558
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 28275, 17, 28064, 1358, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 6146, 1358, 12, 3890, 24, 1560, 548, 13, 203, 565, 1071, 203, 565, 1476, 203, 565, 5024, 203, 565, 3849, 12, 654, 39, 28275, 16, 467, 654, 39, 28275, 13, 203, 565, 1135, 261, 6430, 13, 203, 225, 288, 203, 565, 327, ...