file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
// SPDX-License-Identifier: MIT pragma solidity >=0.8.9; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; impo...
* @param hcAddr Initialize HC Address @param hnAddr Initialize HN Address @param receivingAddr Initialize Receiving Address @param manager Initialize Manager Role/
) { hc = IERC20(hcAddr); hn = IHN(hnAddr); receivingAddress = receivingAddr; _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(MANAGER_ROLE, manager); }
6,476,889
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 891, 11684, 3178, 9190, 31979, 5267, 632, 891, 366, 82, 3178, 9190, 670, 50, 5267, 632, 891, 15847, 3178, 9190, 9797, 9288, 5267, 632, 891, 3301, 9190, 8558, 6204, 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, 262, 288, 203, 3639, 11684, 273, 467, 654, 39, 3462, 12, 28353, 3178, 1769, 203, 3639, 366, 82, 273, 467, 44, 50, 12, 76, 82, 3178, 1769, 203, 203, 3639, 15847, 1887, 273, 15847, 3178, 31, 203, 203, 3639, 389, 8401, 2996, ...
./partial_match/56/0x3F6ad3c13E3a6bB5655F09A95cA05B6FF4c3DCd6/sources/LPToken.sol
* @notice Remove liquidity from the pool all in one token. Withdraw fee that decays linearly over period of 4 weeks since last deposit will apply. @param tokenAmount the amount of the token you want to receive @param tokenIndex the index of the token you want to receive @param minAmount the minimum amount to withdraw, ...
function removeLiquidityOneToken( uint256 tokenAmount, uint8 tokenIndex, uint256 minAmount, uint256 deadline ) external nonReentrant whenNotPaused deadlineCheck(deadline) returns (uint256) { return swapStorage.removeLiquidityOneToken(tokenAmount, tokenIndex, minAmount); ...
11,182,708
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 3581, 4501, 372, 24237, 628, 326, 2845, 777, 316, 1245, 1147, 18, 3423, 9446, 14036, 716, 2109, 8271, 9103, 715, 1879, 3879, 434, 1059, 17314, 3241, 1142, 443, 1724, 903, 2230, 18, 632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1206, 48, 18988, 24237, 3335, 1345, 12, 203, 3639, 2254, 5034, 1147, 6275, 16, 203, 3639, 2254, 28, 1147, 1016, 16, 203, 3639, 2254, 5034, 1131, 6275, 16, 203, 3639, 2254, 5034, 14096, 203, 565, 262, 3903, 1661, 426, 82...
./partial_match/1/0xdDc2c27eA8a42b35B329c4e0216600F12EED13d1/sources/contracts/wombat-core/pool/WormholeAdaptor.sol
@dev wormhole chainId => adaptor address
mapping(uint16 => address) public adaptorAddress;
2,762,585
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 341, 535, 27167, 2687, 548, 516, 9087, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 2313, 516, 1758, 13, 1071, 9087, 1887, 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, -1...
pragma solidity ^0.5.0; pragma experimental ABIEncoderV2; contract EncryptedSender { struct TopicData { // An (optional) public key used to encrypt messages for this topic. This is only necessary if the sender will // not have access to the public key offchain. bytes publicKey; //...
* @dev Mints `value` tokens to `recipient`, returning true on success./
function mint(address recipient, uint value) external onlyRoleHolder(uint(Roles.Minter)) returns (bool) { _mint(recipient, value); return true; }
1,827,239
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 490, 28142, 1375, 1132, 68, 2430, 358, 1375, 20367, 9191, 5785, 638, 603, 2216, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 12, 2867, 8027, 16, 2254, 460, 13, 3903, 1338, 2996, 6064, 12, 11890, 12, 6898, 18, 49, 2761, 3719, 1135, 261, 6430, 13, 288, 203, 3639, 389, 81, 474, 12, 20367, 16, 460, 1769, 203, 3639, 327, 638, 31, 203...
./full_match/1/0xdca0641e507709FFE7e1e532533aC84e2c27c4bF/sources/localhost/staking/libs/LibFixedMath.sol
add y^09 * (20! / 09!)
z = z * y / FIXED_1; r += z * 0x00000618fee9f800;
3,221,392
[ 1, 4625, 348, 7953, 560, 30, 225, 527, 677, 66, 5908, 380, 261, 3462, 5, 342, 21058, 24949, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 998, 273, 998, 380, 677, 342, 26585, 67, 21, 31, 436, 1011, 998, 380, 374, 92, 2787, 7677, 2643, 21386, 29, 74, 17374, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.6.0; import "../utils/GasBurner.sol"; import "../interfaces/IAToken.sol"; import "../interfaces/ILendingPool.sol"; import "../interfaces/ILendingPoolAddressesProvider.sol"; import "../utils/SafeERC20.sol"; /// @title Basic compound interactions through the DSProxy contract AaveBasicProxy is GasBur...
@param _aaveMonitorProxy Proxy contracts that actually is authorized to call DSProxy @param _subscriptions Subscriptions contract for Aave positions @param _aaveSaverProxy Contract that actually performs Repay/Boost
constructor(address _aaveMonitorProxy, address _subscriptions, address _aaveSaverProxy) public { aaveMonitorProxy = AaveMonitorProxyV2(_aaveMonitorProxy); subscriptionsContract = AaveSubscriptionsV2(_subscriptions); aaveSaverProxy = _aaveSaverProxy; }
381,257
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 891, 389, 69, 836, 7187, 3886, 7659, 20092, 716, 6013, 353, 10799, 358, 745, 8678, 3886, 632, 891, 389, 19964, 2592, 7562, 6835, 364, 432, 836, 6865, 632, 891, 389, 69, 836, 55, 21851, 3886, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 2867, 389, 69, 836, 7187, 3886, 16, 1758, 389, 19964, 16, 1758, 389, 69, 836, 55, 21851, 3886, 13, 1071, 288, 203, 3639, 279, 836, 7187, 3886, 273, 432, 836, 7187, 3886, 58, 22, 24899, 69, 836, 7187, 3886, 1769, ...
./partial_match/3/0xDe891B4a29704A800AB9C319B24C41924a866835/sources/YZYVault.sol
* @dev get last era time/
function _getLastEraTime( uint256 lastUpdateTime, uint256 currentTime, uint256 periodTime ) internal pure returns (uint256) { require( lastUpdateTime < currentTime, "Current Time should be more than last update time." ); uint256 lastEraTim...
5,160,269
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 336, 1142, 25120, 813, 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, 389, 588, 3024, 30200, 950, 12, 203, 3639, 2254, 5034, 1142, 1891, 950, 16, 203, 3639, 2254, 5034, 6680, 16, 203, 3639, 2254, 5034, 3879, 950, 203, 565, 262, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583...
./partial_match/1/0x88990ef76D9acBEe7A7E35E3a744fBB85Ed5683C/sources/amatotoClock.sol
emit an event to inform of the transfer
_transfer(address(this), msg.sender, amount);
15,487,217
[ 1, 4625, 348, 7953, 560, 30, 225, 3626, 392, 871, 358, 13235, 434, 326, 7412, 540, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 389, 13866, 12, 2867, 12, 2211, 3631, 1234, 18, 15330, 16, 3844, 1769, 540, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.4.24; interface ERC165 { /// @notice Query if a contract implements an interface /// @param interfaceID The interface identifier, as specified in ERC-165 /// @dev Interface identification is specified in ERC-165. This function /// uses less than 30,000 gas. /// @return `t...
* Remove room night token from `_owner`'s account/
function _removeRoomNight(address _owner, uint256 _rnid) internal { dataSource.removeOrderOfOwner(_owner, _rnid); }
13,066,486
[ 1, 4625, 348, 7953, 560, 30, 380, 3581, 7725, 290, 750, 1147, 628, 1375, 67, 8443, 11294, 87, 2236, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 4479, 13646, 50, 750, 12, 2867, 389, 8443, 16, 2254, 5034, 389, 27639, 350, 13, 2713, 288, 203, 3639, 10233, 18, 4479, 2448, 951, 5541, 24899, 8443, 16, 389, 27639, 350, 1769, 203, 565, 289, 203, 203, 2, -100, -1...
./partial_match/42/0x8EbAFEF4BDbc2D617e8ED1b86edB23cb357B9F32/sources/tunaToken.sol
modifier validRecipient(address to) { require(to != address(0x0)); require(to != address(this)); _; }
contract tunaToken is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); string public constant _name = "Tuna ...
8,980,647
[ 1, 4625, 348, 7953, 560, 30, 377, 9606, 923, 18241, 12, 2867, 358, 13, 288, 3639, 2583, 12, 869, 480, 1758, 12, 20, 92, 20, 10019, 3639, 2583, 12, 869, 480, 1758, 12, 2211, 10019, 3639, 389, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 268, 31172, 1345, 353, 1772, 16, 467, 654, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 377, 203, 565, 871, 12279, 12, 2867, 8808, 628, 16, ...
pragma solidity ^0.4.24; contract F3Devents { // winner has win round of value event Winner(address winner, uint256 round, uint256 value); event Buy(address buyer, uint256 keys, uint256 cost, uint256 round); event Lucky(address buyer, uint256 round, uint256 lucky, uint256 amount); even...
every luckyNumber user get extra win 888
uint256 public luckyNumber;
7,268,989
[ 1, 4625, 348, 7953, 560, 30, 3614, 328, 9031, 93, 1854, 729, 336, 2870, 5657, 1377, 1725, 5482, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 5034, 1071, 328, 9031, 93, 1854, 31, 18701, 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, ...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; /** * @dev ERC20 Contract Implementation */ contract ERC20 { mapping(address => uint256) internal _balances; mapping(address => mapping(address => uint256)) internal _allowances; uint256 internal _totalSupply; string public constant name ...
* @dev See {IERC721-getApproved}./
function getApproved(uint256 tokenId) public view virtual override returns (address res) { assembly { mstore(0x00, tokenId) mstore(0x20, _owners.slot) if iszero(sload(keccak256(0x00, 0x40))) { mstore(0x00, ERROR_SIG) mstore(0x04, 0x20) ...
629,272
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 27, 5340, 17, 588, 31639, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 31639, 12, 11890, 5034, 1147, 548, 13, 1071, 1476, 5024, 3849, 1135, 261, 2867, 400, 13, 288, 203, 3639, 19931, 288, 203, 5411, 312, 2233, 12, 20, 92, 713, 16, 1147, 548, 13, 203, 5411, 312, 2233, 12, 20, 92, 3...
pragma solidity >=0.6.0 <0.8.0; // SPDX-License-Identifier: MIT" abstract contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () { } // solhint-disable-previous-line no-empty...
Empty internal constructor, to prevent people from mistakenly deploying an instance of this contract, which should be used via inheritance. solhint-disable-previous-line no-empty-blocks
abstract contract Context { constructor () { } function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { return msg.data; } }
1,641,535
[ 1, 4625, 348, 7953, 560, 30, 225, 8953, 2713, 3885, 16, 358, 5309, 16951, 628, 27228, 7940, 715, 7286, 310, 392, 791, 434, 333, 6835, 16, 1492, 1410, 506, 1399, 3970, 16334, 18, 3704, 11317, 17, 8394, 17, 11515, 17, 1369, 1158, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 1772, 288, 203, 203, 203, 565, 3885, 1832, 225, 288, 289, 203, 565, 445, 389, 3576, 12021, 1435, 2713, 1476, 1135, 261, 2867, 8843, 429, 13, 288, 203, 3639, 327, 1234, 18, 15330, 31, 203, 565, 289, 203, 203, 565, 4...
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
Set the name for display purposes
name = "Bit Select Arrojado";
13,488,073
[ 1, 4625, 348, 7953, 560, 30, 225, 1000, 326, 508, 364, 2562, 13694, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 508, 273, 315, 5775, 6766, 1201, 303, 78, 6821, 14432, 4766, 565, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.0; // pragma solidity ^0.4.15; // Proof of Existence contract, version 1 contract ProofOfExistence { // state bytes32 public proof; // calculate and store the proof for a document // *transactional function* function notarize(string memory document) public { proof = proofFor(docume...
helper function to get a document's sha256 *read-only function* return sha256(document memory);
function proofFor(string memory document ) pure public returns (bytes32) { sha256(abi.encodePacked(document)); }
12,642,243
[ 1, 4625, 348, 7953, 560, 30, 225, 4222, 445, 358, 336, 279, 1668, 1807, 6056, 5034, 380, 896, 17, 3700, 445, 14, 327, 6056, 5034, 12, 5457, 3778, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 14601, 1290, 12, 1080, 3778, 1668, 262, 16618, 1071, 1135, 261, 3890, 1578, 13, 203, 225, 288, 203, 565, 6056, 5034, 12, 21457, 18, 3015, 4420, 329, 12, 5457, 10019, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.11; pragma experimental ABIEncoderV2; import "./libraries/Ownable.sol"; import "./libraries/Counters.sol"; contract Voting is Ownable { //structur electeur deja donnée dans l'énoncé struct Voter { bool isRegistered; ...
mapping des electeurs
mapping(address =>Voter) public electeurs;
911,618
[ 1, 4625, 348, 7953, 560, 30, 2874, 2832, 17375, 73, 25152, 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, 2874, 12, 2867, 516, 58, 20005, 13, 1071, 17375, 73, 25152, 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, -100, -1...
./partial_match/5/0xA109b34B1974C1f6BA554607F46E202926728E14/sources/src/CDPVault.sol
if totalSharesQueued == 0 and claimRatio == 0, then totalCreditWithheld == 0 as well
totalNonStaleNonFixedCreditWithheld += epochCache.totalCreditWithheld;
16,850,849
[ 1, 4625, 348, 7953, 560, 30, 225, 309, 2078, 24051, 21039, 422, 374, 471, 7516, 8541, 422, 374, 16, 1508, 2078, 16520, 1190, 76, 488, 422, 374, 487, 5492, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 7734, 2078, 3989, 19155, 3989, 7505, 16520, 1190, 76, 488, 1011, 7632, 1649, 18, 4963, 16520, 1190, 76, 488, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: BlueOak-1.0.0 pragma solidity 0.8.9; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; import "@openzeppelin/co...
* @title ComponentRegistry/ solhint-disable-next-line func-name-mixedcase
abstract contract ComponentRegistry is Initializable, OwnableUpgradeable, IComponentRegistry { pragma solidity 0.8.9; function __ComponentRegistry_init(Components memory components_) internal onlyInitializing { setBackingManager(components_.backingManager); setBasketHandler(components_.basketHandler...
12,991,633
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 5435, 4243, 19, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 1326, 17, 529, 17, 19562, 3593, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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, 17801, 6835, 5435, 4243, 353, 10188, 6934, 16, 14223, 6914, 10784, 429, 16, 467, 1841, 4243, 288, 203, 683, 9454, 18035, 560, 374, 18, 28, 18, 29, 31, 203, 565, 445, 1001, 1841, 4243, 67, 2738, 12, 7171, 3778, 4085, 67, 13, 271...
./full_match/80001/0xa2c032394Fc4b759bA320d63dF37F2180ee55e75/sources/contracts/BattleSkills.sol
This checks if the name of the skill is not an empty string. Adjust this according to how you define a skill to exist.
function doesSkillExist(uint256 skillId) public view returns (bool) { return bytes(skills[skillId].name).length > 0; }
853,786
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 4271, 309, 326, 508, 434, 326, 15667, 353, 486, 392, 1008, 533, 18, 17720, 333, 4888, 358, 3661, 1846, 4426, 279, 15667, 358, 1005, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1552, 9030, 4786, 12, 11890, 5034, 15667, 548, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 1731, 12, 7771, 737, 87, 63, 7771, 737, 548, 8009, 529, 2934, 2469, 405, 374, 31, 203, 565, 289, 203, 2, -100, ...
./partial_match/1/0xB48077d89fa302B257f56aA01C7F86dd279B79F3/sources/contracts/GhostERC721Upgradeable/GERC721Upgradeable.sol
* @dev See {IERC721-safeTransferFrom}./
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); }
16,182,957
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 27, 5340, 17, 4626, 5912, 1265, 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...
[ 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, 4183, 5912, 1265, 12, 2867, 628, 16, 1758, 358, 16, 2254, 5034, 1147, 548, 16, 1731, 3778, 501, 13, 1071, 5024, 3849, 288, 203, 3639, 2583, 24899, 291, 31639, 1162, 5541, 24899, 3576, 12021, 9334, 1147, 548, 3631, 315, ...
pragma solidity ^0.4.24; contract Register { //create a mapping to match an account to the ipfs data storage mapping(address => string) private users; //at the registration, any user gets an address with their ipfs hash. Store this transaction on the blockchain function addUserAddress (string memory ...
get ipfs hash matched to specific address
function getPersonalIPFSHashForProvider(address patientAddress) public view returns(string memory){ return users[patientAddress]; }
7,297,011
[ 1, 4625, 348, 7953, 560, 30, 336, 2359, 2556, 1651, 4847, 358, 2923, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 29936, 287, 2579, 4931, 2310, 1290, 2249, 12, 2867, 18608, 1887, 13, 1071, 1476, 1135, 12, 1080, 3778, 15329, 203, 3639, 327, 3677, 63, 16330, 1979, 1887, 15533, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, ...
./full_match/80001/0xDa21C3277F08773b124165632bf5FFd1651fd710/sources/contracts/proxy/ERC1155DaoProxy.sol
* @notice also sets the address of the contract being proxied and a pointer towards the functions of contract being proxied. requirements: ‼ caller must be the owner of the contract. Signature for setNewProxyAddress(address) : `0x2ba5b083` @param newAddress address of the contract being proxied./
function setNewProxyAddress(address newAddress) external onlyOwner { _erc1155daoproxy = newAddress; _erc1155dao = ERC1155DaoAbstract(newAddress); }
9,494,869
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2546, 1678, 326, 1758, 225, 434, 326, 6835, 3832, 21875, 471, 279, 4407, 23248, 326, 4186, 434, 6835, 3832, 21875, 18, 8433, 30, 1377, 225, 163, 227, 125, 4894, 1297, 506, 326, 3410, 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, 19469, 3886, 1887, 12, 2867, 394, 1887, 13, 3903, 1338, 5541, 288, 203, 3639, 389, 12610, 2499, 2539, 2414, 556, 303, 1698, 273, 394, 1887, 31, 203, 3639, 389, 12610, 2499, 2539, 2414, 83, 273, 4232, 39, 2499, 2539, 114...
/** MIT License Copyright (c) 2019 Mavennet Systems Inc. https://mavennet.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend)./
function sub(uint256 _a, uint256 _b) internal constant returns (uint256) { require(_b <= _a); return _a - _b; }
1,088,833
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2592, 1575, 87, 2795, 5600, 16, 1216, 603, 9391, 261, 77, 18, 73, 18, 309, 720, 2033, 25710, 353, 6802, 2353, 1131, 89, 409, 2934, 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, 1, 0, 0, 0, 0, 0, 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, 720, 12, 11890, 5034, 389, 69, 16, 2254, 5034, 389, 70, 13, 2713, 5381, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 24899, 70, 1648, 389, 69, 1769, 203, 3639, 327, 389, 69, 300, 389, 70, 31, 203, 565, 289, 203...
./full_match/97/0xE69A7Ee6f1e98262F54E35B563E295c50ba86d9C/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,283,923
[ 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 pragma solidity >=0.6.12; interface IERC20 { function TOTALSUPPLY622() ...
inject NONSTANDARD NAMING
event TRANSFER649(address indexed src, address indexed dst, uint wad);
12,607,481
[ 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, 225, 4235, 17598, 1105, 29, 12, 2867, 8808, 1705, 16, 1758, 8808, 3046, 16, 2254, 341, 361, 1769, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.2; import "AccessControlUpgradeable.sol"; import "UUPSUpgradeable.sol"; import "PausableUpgradeable.sol"; import "SafeERC20.sol"; import "ERC20.sol"; import { Address } from "Address.sol"; import { XYWrappedToken } from "XYWrappedToken.sol"; import "IGasPriceCo...
@notice Transfer current accumulated swap fees to `gasFeeReceiver` (could be executed only by staff)
function collectCloseSwapGasFees() external whenNotPaused onlyRole(ROLE_STAFF) { _collectCloseSwapGasFees(gasFeeReceiver); }
1,340,582
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 12279, 783, 24893, 7720, 1656, 281, 358, 1375, 31604, 14667, 12952, 68, 261, 15195, 506, 7120, 1338, 635, 28904, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3274, 4605, 12521, 27998, 2954, 281, 1435, 3903, 1347, 1248, 28590, 1338, 2996, 12, 16256, 67, 882, 37, 2246, 13, 288, 203, 3639, 389, 14676, 4605, 12521, 27998, 2954, 281, 12, 31604, 14667, 12952, 1769, 203, 565, 289, 20...
./full_match/1/0x239A4bF81759774bdC3D0a0244E56A667fdB81bf/sources/contracts/Treasury.sol
* @notice Sweep any ERC20 token to governor address @dev OnlyGovernor can call this and CTokens are not allowed to sweep @param _fromToken Token address to sweep/ Do not sweep cTokens
function sweep(address _fromToken) external onlyGovernor { require(!_cTokenList.contains(_fromToken), "cToken-is-not-allowed-to-sweep"); uint256 _amount = IERC20(_fromToken).balanceOf(address(this)); IERC20(_fromToken).safeTransfer(_msgSender(), _amount); }
9,807,771
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 348, 25236, 1281, 4232, 39, 3462, 1147, 358, 314, 1643, 29561, 1758, 632, 5206, 5098, 43, 1643, 29561, 848, 745, 333, 471, 385, 5157, 854, 486, 2935, 358, 17462, 632, 891, 389, 2080, 134...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17462, 12, 2867, 389, 2080, 1345, 13, 3903, 1338, 43, 1643, 29561, 288, 203, 3639, 2583, 12, 5, 67, 71, 1345, 682, 18, 12298, 24899, 2080, 1345, 3631, 315, 71, 1345, 17, 291, 17, 902, 17, 8151, 17, 869, 17, 87, 2523...
pragma solidity ^0.5.0; //p3Dank.io //send 0.25 ETH to contract to purchase 3 plants. //you can only rebuy when you have ZERO plants //contract will take all ether sent and add it to the pot >>>NO REFUNDS<<< //only send 0.25 ether, no more, no less //Block plant, Chain plant, Fork plant //BLOCK smashes fork //...
block that houses were purchased by a player
mapping(address => uint256) buyblock;
888,892
[ 1, 4625, 348, 7953, 560, 30, 225, 1203, 716, 366, 1481, 281, 4591, 5405, 343, 8905, 635, 279, 7291, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 30143, 2629, 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, -100, -100, -100, -...
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.8.0; pragma experimental ABIEncoderV2; // ==================================================================== // | ______ _______ | // | / _____________ __ __ / ____(_____ ____ _____ ________ |...
Added to support recovering LP Rewards and other mistaken tokens from other systems to be distributed to holders Check if the desired token is a reward token Only the reward managers can take back their reward tokens Other tokens, like the staking token, airdrops, or accidental deposits, can be withdrawn by the owner ...
function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyTknMgrs(tokenAddress) { bool isRewardToken = false; for (uint256 i = 0; i < rewardTokens.length; i++){ if (rewardTokens[i] == tokenAddress) { isRewardToken = true; break; ...
15,823,199
[ 1, 4625, 348, 7953, 560, 30, 225, 25808, 358, 2865, 5910, 310, 511, 52, 534, 359, 14727, 471, 1308, 27228, 7940, 2430, 628, 1308, 14908, 358, 506, 16859, 358, 366, 4665, 2073, 309, 326, 6049, 1147, 353, 279, 19890, 1147, 5098, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5910, 654, 39, 3462, 12, 2867, 1147, 1887, 16, 2254, 5034, 1147, 6275, 13, 3903, 1338, 56, 21112, 9455, 87, 12, 2316, 1887, 13, 288, 203, 3639, 1426, 353, 17631, 1060, 1345, 273, 629, 31, 203, 3639, 364, 261, 11890, 5...
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity ^0.8.0; // ==================================================================== // | ______ _______ | // | / _____________ __ __ / ____(_____ ____ _____ ________ | // | / /_ / ___/ __ `| |/_/ / ...
* @notice Measure voting power of `addr` at block height `_block` @param addr User's wallet address @param _block Block to calculate the voting power at @return Voting power/ Copying and pasting totalSupply code because Vyper cannot pass by reference yet Binary search Will be always enough for 128-bit numbers
function balanceOfAt(address addr, uint256 _block) external view returns (uint256) { require(_block <= block.number); uint256 _min = 0; uint256 _max = user_point_epoch[addr]; for(uint i = 0; i < 128; i++){ if (_min >= _max) { break; } ...
1,062,036
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 13544, 331, 17128, 7212, 434, 1375, 4793, 68, 622, 1203, 2072, 1375, 67, 2629, 68, 632, 891, 3091, 2177, 1807, 9230, 1758, 632, 891, 389, 2629, 3914, 358, 4604, 326, 331, 17128, 7212, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11013, 951, 861, 12, 2867, 3091, 16, 2254, 5034, 389, 2629, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 24899, 2629, 1648, 1203, 18, 2696, 1769, 203, 203, 3639, 2254, 5034, 389, 1154, 273, 374, 31,...
./full_match/8453/0xc45c0F1FF2180BB4060669C3f0cb329B6b70cB11/sources/ETHpr.sol
IDEXRouter interface to integrate Tarder Joe(liquidity pool) router
interface IDEXRouter { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, ...
11,553,399
[ 1, 4625, 348, 7953, 560, 30, 1599, 2294, 8259, 1560, 358, 23367, 20334, 765, 804, 15548, 12, 549, 372, 24237, 2845, 13, 4633, 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, 5831, 1599, 2294, 8259, 288, 203, 565, 445, 3272, 1435, 3903, 16618, 1135, 261, 2867, 1769, 203, 565, 445, 678, 1584, 44, 1435, 3903, 16618, 1135, 261, 2867, 1769, 203, 203, 565, 445, 527, 48, 18988, 24237, 12, 203, 3639, 1758, 1...
./partial_match/1/0x9E25121dd5df2f26EAE8125c48AF835E4aeFb1e3/sources/FeeProvider.sol
* @dev initializes the FeeProvider after it's added to the proxy @param _addressesProvider the address of the LendingPoolAddressesProvider/
function initialize(address _addressesProvider) public initializer { originationFeePercentage = 0.0025 * 1e18;
3,953,865
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11643, 326, 30174, 2249, 1839, 518, 1807, 3096, 358, 326, 2889, 632, 891, 389, 13277, 2249, 326, 1758, 434, 326, 511, 2846, 2864, 7148, 2249, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4046, 12, 2867, 389, 13277, 2249, 13, 1071, 12562, 288, 203, 3639, 1647, 1735, 14667, 16397, 273, 374, 18, 713, 2947, 380, 404, 73, 2643, 31, 203, 377, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2020-07-08 */ pragma solidity ^0.5.11; contract ERC20Interface{ //using SafeMath for uint256; function transfer(address _address, uint _value) public returns (bool success){} function balanceOf(address _address)view public returns(u...
using SafeMath for uint256;
contract ERC20Interface{ function balanceOf(address _address)view public returns(uint); function transfer(address _address, uint _value) public returns (bool success){} function transferFrom(address _from, address _receiver, uint _value) public returns (bool success){} f...
1,800,106
[ 1, 4625, 348, 7953, 560, 30, 1450, 14060, 10477, 364, 2254, 5034, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4232, 39, 3462, 1358, 95, 203, 540, 203, 3639, 445, 11013, 951, 12, 2867, 389, 2867, 13, 1945, 1071, 1135, 12, 11890, 1769, 203, 4202, 203, 203, 3639, 445, 7412, 12, 2867, 389, 2867, 16, 2254, 389, 1132, 13, 1071, 1135, ...
// File: contracts/interface/ICoFiXFactory.sol // SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.6.12; interface ICoFiXFactory { // All pairs: {ETH <-> ERC20 Token} event PairCreated(address indexed token, address pair, uint256); event NewGovernance(address _new); event NewController(add...
ctrl-v2: adjustable K + impactCost is the final K
_k = _k.add(impactCost);
623,040
[ 1, 4625, 348, 7953, 560, 30, 225, 6414, 17, 90, 22, 30, 5765, 429, 1475, 397, 15800, 8018, 353, 326, 727, 1475, 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, 389, 79, 273, 389, 79, 18, 1289, 12, 14532, 621, 8018, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/80001/0x4a589Ad4E26d44BE8bd61FD3fA88F276E2315F40/sources/contracts/staking.sol
* @notice Function used to get the info for a user: the Token Ids staked and the available rewards. @param _user - The address of the user./
function userStakeInfo(address _user) public view returns ( uint256[] memory tokenIds, uint256[] memory categories, uint256[] memory startTimes, uint256[] memory lastClaims ) { StakedToken[] memory tokens = stakers[_user].stakedTokens; tokenIds = ...
5,682,125
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4284, 1399, 358, 336, 326, 1123, 364, 279, 729, 30, 326, 3155, 29085, 384, 9477, 471, 326, 2319, 283, 6397, 18, 632, 891, 389, 1355, 300, 1021, 1758, 434, 326, 729, 18, 19, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 729, 510, 911, 966, 12, 2867, 389, 1355, 13, 203, 565, 1071, 203, 565, 1476, 203, 565, 1135, 261, 203, 3639, 2254, 5034, 8526, 3778, 1147, 2673, 16, 203, 3639, 2254, 5034, 8526, 3778, 6477, 16, 203, 3639, 2254, 5034, ...
pragma solidity >=0.4.22 <0.7.0; pragma experimental ABIEncoderV2; import "./Accounts.sol"; contract CoinFlipping is AccountsManager{ /*** structures ***/ struct Player{ address payable addr; uint number; // the number to reveal uint salt; bytes32 hashNumber; // the hash of the ...
the hash of the number
bytes32 hashNumber;
5,411,924
[ 1, 4625, 348, 7953, 560, 30, 225, 326, 1651, 434, 326, 1300, 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, 1731, 1578, 1651, 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,...
./full_match/137/0x3D4dE4ed0C119b930a76c88988137C13F272D6d5/sources/contracts/auth/OwnableRoles.sol
@dev Allows the owner to grant `user` `roles`. If the `user` already has a role, then it will be an no-op for the role.
function grantRoles(address user, uint256 roles) public virtual onlyOwner { _grantRoles(user, roles); }
3,755,619
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 25619, 326, 3410, 358, 7936, 1375, 1355, 68, 1375, 7774, 8338, 971, 326, 1375, 1355, 68, 1818, 711, 279, 2478, 16, 1508, 518, 903, 506, 392, 1158, 17, 556, 364, 326, 2478, 18, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7936, 6898, 12, 2867, 729, 16, 2254, 5034, 4900, 13, 1071, 5024, 1338, 5541, 288, 203, 3639, 389, 16243, 6898, 12, 1355, 16, 4900, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2021-02-27 */ // SPDX-License-Identifier: MIT /* A simple gauge contract to measure the amount of tokens locked, and reward users in a different token. Using this for STACK/ETH Uni LP currently. */ pragma solidity ^0.6.11; /** * @dev Interface of the ERC20 standa...
decentralized rescue function for any stuck tokens, will return to governance
function rescue(address _token, uint256 _amount) nonReentrant external { require(msg.sender == governance, "LPGAUGE: !governance"); if (_token != address(0)){ IERC20(_token).safeTransfer(governance, _amount); } governance.transfer(_amount); }
15,332,070
[ 1, 4625, 348, 7953, 560, 30, 225, 2109, 12839, 1235, 8223, 445, 364, 1281, 384, 9031, 2430, 16, 903, 327, 358, 314, 1643, 82, 1359, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8223, 12, 2867, 389, 2316, 16, 2254, 5034, 389, 8949, 13, 1661, 426, 8230, 970, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 314, 1643, 82, 1359, 16, 315, 14461, 43, 27738, 30, 401, 75, 1643, 82, 1359, 8863, ...
// VERSION K pragma solidity ^0.4.8; // // FOR REFERENCE - INCLUDE iE4RowEscrow (interface) CONTRACT at the top ..... // contract iE4RowEscrow { function getNumGamesStarted() constant returns (int ngames); } // Abstract contract for the full ERC 20 Token standard // https://github.com/ethereum/EIP...
hold this amount until threshhold before reward payout
uint public holdoverBalance;
12,973,954
[ 1, 4625, 348, 7953, 560, 30, 225, 6887, 333, 3844, 3180, 22939, 21056, 1865, 19890, 293, 2012, 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, ...
[ 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, 202, 11890, 1071, 6887, 1643, 13937, 31, 1875, 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, -10...
./full_match/1/0x689cF22e945466340F2e0BFD80Ac8Ee398AB9ECf/sources/contracts/LaunchPoolERC20FundRaisingWithVesting.sol
@dev Details about each user in a pool We do some fancy math here. Basically, once vesting has started in a pool (if they have deposited), the amount of reward tokens entitled to a user but is pending to be distributed is: pending reward = (user.amount * pool.accRewardPerShare) - user.rewardDebtRewards The amount ca...
struct UserInfo { uint256 tokenAllocDebt; }
4,850,355
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 21897, 2973, 1517, 729, 316, 279, 2845, 1660, 741, 2690, 31701, 4233, 2674, 18, 7651, 1230, 16, 3647, 331, 10100, 711, 5746, 316, 279, 2845, 261, 430, 2898, 1240, 443, 1724, 329, 3631, 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, 1958, 25003, 288, 203, 3639, 2254, 5034, 1147, 8763, 758, 23602, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./partial_match/4/0x5a045121254CA50A2001c8FcA31ce2154e9d8202/sources/ChainlinkTest.sol
import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";
import './AggregatorV3Interface.sol';
8,572,590
[ 1, 4625, 348, 7953, 560, 30, 225, 1930, 8787, 5639, 1232, 19, 16351, 87, 19, 4816, 19, 90, 20, 18, 26, 19, 15898, 19, 17711, 58, 23, 1358, 18, 18281, 14432, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5666, 12871, 17711, 58, 23, 1358, 18, 18281, 13506, 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,...
./partial_match/1/0x3dEF8E7d55199E1B3C7165e3A79C911029469763/sources/TotemsCore.sol
Write Contract: Updates
function updateListInjectionFee(uint _listInjectionFee) external onlyRole(DEFAULT_ADMIN_ROLE) whenNotPaused { listInjectionFee = _listInjectionFee; }
15,565,547
[ 1, 4625, 348, 7953, 560, 30, 225, 2598, 13456, 30, 15419, 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, 1089, 682, 12039, 14667, 12, 11890, 389, 1098, 12039, 14667, 13, 3903, 1338, 2996, 12, 5280, 67, 15468, 67, 16256, 13, 1347, 1248, 28590, 288, 203, 1377, 666, 12039, 14667, 273, 389, 1098, 12039, 14667, 31, 203, 565, 289,...
pragma solidity ^0.5.0; import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; import "../node_modules/openzeppelin-solidity/contracts/lifecycle/Pausable.sol"; import "../node_modules/openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "./IFlightSuretyData.sol"; contract FlightSuretyDa...
*******************************************************************************************/ DATA VARIABLES */*******************************************************************************************/
struct Airline { uint256 balance; string name; bool isRegistered; bool isFunded; } mapping(address => Airline) private airlines;
13,113,878
[ 1, 4625, 348, 7953, 560, 30, 19756, 19482, 636, 19, 4766, 4202, 8730, 22965, 55, 19694, 1195, 11125, 19482, 636, 5549, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 432, 481, 1369, 288, 203, 3639, 2254, 5034, 11013, 31, 203, 3639, 533, 508, 31, 203, 3639, 1426, 353, 10868, 31, 203, 3639, 1426, 17646, 12254, 31, 203, 565, 289, 203, 565, 2874, 12, 2867, 516, 432, 481, 1369, 13, 32...
./partial_match/1/0xc8a2ADC4261c6b669CdFf69E717E77C9cFeB420d/sources/src/contracts/GovernanceCore.sol
@inheritdoc IGovernanceCore
function redeemCancellationFee(uint256[] calldata proposalIds) external { for (uint256 i = 0; i < proposalIds.length; i++) { Proposal storage proposal = _proposals[proposalIds[i]]; State proposalState = _getProposalState(proposal); address to; if (proposalState == State.Cancelled) { ...
15,500,881
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 10093, 13102, 1643, 82, 1359, 4670, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 283, 24903, 2568, 6857, 14667, 12, 11890, 5034, 8526, 745, 892, 14708, 2673, 13, 3903, 288, 203, 565, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 14708, 2673, 18, 2469, 31, 277, 27245, 288, 203, 1377, 19945, 250...
// NOT PRODUCTION READY! DO NOT USE THIS FOR REAL WORLD YET! // This contract is an ECIP registry. It has all the basic parts and a link to the full text of the ecip(keep chain light) // It needs an owner and administrators to manage registered ECIPs pragma solidity ^0.4.10; contract owned{ function owned () {owner ...
allows admins to add and remove ecip contracts to the master databasecheck to see if the sender is an approved admin allow the admin to 1 add, 2 del, 3 mod, 4 reprice, 5 name the ecip registry
function modCategory(address _contractAddr, string _contractCat, uint _action, uint _index, string _reason, uint _reprice, string _newName){ uint adminCheck = 0; for(uint i; i < adminCount; i ++){ if (msg.sender == adminList[i].adminAddr){ adminCheck = 1; } if (adminCheck != 1){ throw; } if ...
12,971,895
[ 1, 4625, 348, 7953, 560, 30, 5360, 31116, 358, 527, 471, 1206, 425, 3449, 20092, 358, 326, 4171, 2063, 1893, 358, 2621, 309, 326, 5793, 353, 392, 20412, 3981, 1699, 326, 3981, 358, 404, 527, 16, 576, 1464, 16, 890, 681, 16, 1059, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 915, 681, 4457, 12, 2867, 389, 16351, 3178, 16, 533, 389, 16351, 11554, 16, 2254, 389, 1128, 16, 2254, 389, 1615, 16, 533, 389, 10579, 16, 2254, 389, 266, 8694, 16, 533, 389, 2704, 461, 15329, 203, 225, 2254, 3981, 1564, 273, 3...
./full_match/42220/0xf3de7C25880b30ad406320d4648096E6AEee226c/sources/contracts/token.sol
generate the uniswap pair path of token -> weth uint256[] memory amountOutMins = uniswapV2Router.getAmountsOut( amount, path ); make the swap
function swapETHForTokens(uint256 amount) private { address[] memory path = new address[](2); path[0] = CELO; path[1] = address(this); try uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{ value: amount }(0, path, burnAddress,...
16,356,906
[ 1, 4625, 348, 7953, 560, 30, 225, 2103, 326, 640, 291, 91, 438, 3082, 589, 434, 1147, 317, 341, 546, 2254, 5034, 8526, 3778, 3844, 1182, 49, 2679, 273, 640, 291, 91, 438, 58, 22, 8259, 18, 588, 6275, 87, 1182, 12, 377, 3844, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7720, 1584, 44, 1290, 5157, 12, 11890, 5034, 3844, 13, 3238, 288, 203, 3639, 1758, 8526, 3778, 589, 273, 394, 1758, 8526, 12, 22, 1769, 203, 3639, 589, 63, 20, 65, 273, 29538, 1502, 31, 203, 3639, 589, 63, 21, 65, 2...
pragma solidity ^0.6.4; pragma experimental ABIEncoderV2; import './public_coin.sol'; import './primefield.sol'; import './merkle.sol'; import './proof_types.sol'; import './utils.sol'; import './trace.sol'; import '@nomiclabs/buidler/console.sol'; contract Fri is Trace, MerkleVerifier { using PublicCoin for Pu...
This function takes in a previous layer and fold and reads from it and writes new folded layers to the next layer. It will overwrite any memory in that location. Reads how many of the cosets we've read from Each coset length elements in the domain are one coset, so to find which one the current index is we have to tak...
function fold_layer( uint256[] memory values, uint256[] memory indices, uint256[] memory coset_completion, uint256 eval_point, LayerContext memory layer_context, bytes32[] memory coset_hash_output ) internal { trace('fold_layer', true); uint256 re...
12,927,782
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 445, 5530, 316, 279, 2416, 3018, 471, 11590, 471, 6838, 628, 518, 471, 7262, 394, 28420, 785, 6623, 358, 326, 1024, 3018, 18, 2597, 903, 6156, 1281, 3778, 316, 716, 2117, 18, 29185, 3661, 4906...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11590, 67, 6363, 12, 203, 3639, 2254, 5034, 8526, 3778, 924, 16, 203, 3639, 2254, 5034, 8526, 3778, 4295, 16, 203, 3639, 2254, 5034, 8526, 3778, 4987, 278, 67, 11469, 16, 203, 3639, 2254, 5034, 5302, 67, 1153, 16, 203, ...
./full_match/137/0x6ceb95626A59a2F8B1d0B6DB970F4190B89354C7/sources/_koyofinance/exchange-vault-pool-utils/contracts/factories/BasePoolSplitCodeFactory.sol
* @dev Disable the factory, preventing the creation of more pools. Already existing pools are unaffected. Once a factory is disabled, it cannot be re-enabled./
function disable() external authenticate { _ensureEnabled(); _disabled = true; emit FactoryDisabled(); }
3,751,974
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10639, 326, 3272, 16, 5309, 310, 326, 6710, 434, 1898, 16000, 18, 17009, 2062, 16000, 854, 640, 20119, 18, 12419, 279, 3272, 353, 5673, 16, 518, 2780, 506, 283, 17, 5745, 18, 19, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4056, 1435, 3903, 8929, 288, 203, 3639, 389, 15735, 1526, 5621, 203, 203, 3639, 389, 9278, 273, 638, 31, 203, 203, 3639, 3626, 7822, 8853, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/42220/0x553a2a1B70725C1042A0D76e16f4f5a683648dEB/sources/src/inbox/Inbox.sol
@notice Emitted when a message is received and delivered to a handler. @dev Topic0 0xb1f9608fc9a04b1041cff0ff42f903f47c60650e2cf5a50591327ce831ea07a5 @param index The index of the message in the Outbox on the emitting chain. @param emitterChainId The Wormhole chain id from which the message was emit...
function recv(address verifier, bytes memory witnessedStatement) external nonReentrant { IVerifier.VerifiedStatement memory statement = verify(verifier, witnessedStatement); deliver(verifier, statement.emitterChainId, statement.emitterAddress, statement.message); }
3,497,966
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 512, 7948, 1347, 279, 883, 353, 5079, 471, 22112, 358, 279, 1838, 18, 632, 5206, 11789, 20, 1377, 374, 6114, 21, 74, 29, 4848, 28, 7142, 29, 69, 3028, 70, 2163, 9803, 71, 1403, 20, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10665, 12, 2867, 20130, 16, 1731, 3778, 31039, 23712, 730, 3406, 13, 3903, 1661, 426, 8230, 970, 288, 203, 3639, 467, 17758, 18, 24369, 3406, 3778, 3021, 273, 3929, 12, 31797, 16, 31039, 23712, 730, 3406, 1769, 203, 3639,...
//Contract based on https://docs.openzeppelin.com/contracts/4.x/erc721 // SPDX-License-Identifier: MIT pragma solidity ^0.8.8 < 0.9.0; //OpenZeppelin contract/token imports import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openz...
Just in case ETH does some crazy stuff
function setPrice(uint256 _newPrice) public onlyOwner() { _priceOfToken = _newPrice; }
13,707,262
[ 1, 4625, 348, 7953, 560, 30, 225, 12526, 316, 648, 512, 2455, 1552, 2690, 276, 354, 21832, 10769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 5147, 12, 11890, 5034, 389, 2704, 5147, 13, 1071, 1338, 5541, 1435, 288, 203, 3639, 389, 8694, 951, 1345, 273, 389, 2704, 5147, 31, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/43113/0xa364e4BaeCDa6ade454B4F6D1521995AC016D5b2/sources/contracts/APAGovernance.sol
uint[] memory UserAPAs = new uint[](voterBalance);get user Apas map from walletcheck if APA has already voted and add to UserAPAs if eligibleadd APAs to proposal arraycheck if APA has already voted anIERC721Enumerabled add to UserAPAs if eligibleadd to User arrayadd to proposal array1 vote per APA1 vote per address
function vote(uint proposalId , Votes _vote) external { uint voterBalance = balanceOf(msg.sender); require(voterBalance > 0, "Need at least one APA to cast a vote"); require(block.timestamp < proposals[proposalId].end, "Proposal has Expired"); uint currentAPA; uint8 ineligibl...
13,191,157
[ 1, 4625, 348, 7953, 560, 30, 282, 2254, 8526, 3778, 2177, 2203, 1463, 273, 394, 2254, 8526, 12, 90, 20005, 13937, 1769, 588, 729, 1716, 345, 852, 628, 17662, 1593, 762, 309, 432, 4066, 711, 1818, 331, 16474, 471, 527, 358, 2177, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12501, 12, 11890, 14708, 548, 269, 776, 6366, 389, 25911, 13, 3903, 288, 203, 3639, 2254, 331, 20005, 13937, 273, 11013, 951, 12, 3576, 18, 15330, 1769, 203, 3639, 2583, 12, 90, 20005, 13937, 405, 374, 16, 315, 14112, 6...
./full_match/1/0xd9E161eB12D098aB74842c684e7Df75b8ec38fdB/sources/contracts/SifiV1Router01.sol
The start of the path should be 0xeee...eee, but no check is performed for the sake of gas
function uniswapV2SwapExactETHForTokens( uint256 amountOutMin, address[] memory path, address to, uint256 deadline ) public payable returns (uint256 amountOut) { uint256[] memory amounts; path[0] = address(weth); unchecked { amountOutMin, path, to, deadl...
3,158,545
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 787, 434, 326, 589, 1410, 506, 374, 92, 1340, 73, 2777, 1340, 73, 16, 1496, 1158, 866, 353, 9591, 364, 326, 272, 911, 434, 16189, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 640, 291, 91, 438, 58, 22, 12521, 14332, 1584, 44, 1290, 5157, 12, 203, 565, 2254, 5034, 3844, 1182, 2930, 16, 203, 565, 1758, 8526, 3778, 589, 16, 203, 565, 1758, 358, 16, 203, 565, 2254, 5034, 14096, 203, 225, 262, ...
pragma solidity ^0.4.25; import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; import "./oraclize.sol"; // REQUIREMENT 1 // FlightSuretyData : contracts used for data persistence contract FlightSuretyData is usingOraclize { using SafeMath for uint256; /**********************************...
check if is flight registered
function isFlight( address _addressAirline, string _flight ) external view returns(bool) { bytes32 _flightKey = getFlightKeyOfMap(_addressAirline, _flight); return mapFlight[_flightKey].numberFlight > 0; }
12,788,867
[ 1, 4625, 348, 7953, 560, 30, 225, 866, 309, 353, 25187, 4104, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 353, 24243, 12, 203, 3639, 1758, 389, 2867, 29752, 1369, 16, 203, 3639, 533, 389, 19131, 203, 565, 262, 7010, 565, 3903, 7010, 565, 1476, 7010, 565, 1135, 12, 6430, 13, 288, 203, 3639, 1731, 1578, 389, 19131, 653, 273, ...
./full_match/1/0x911a768fF40e6477736AA009EF0055563982bE3a/sources/src/ExternalRefinancing.sol
@dev Reads the bytes28 at `mPtr` in memory.
function readBytes28( MemoryPointer mPtr ) internal pure returns (bytes28 value) { assembly { value := mload(mPtr) } }
3,218,640
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 29185, 326, 1731, 6030, 622, 1375, 81, 5263, 68, 316, 3778, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 25825, 6030, 12, 203, 565, 9251, 4926, 312, 5263, 203, 225, 262, 2713, 16618, 1135, 261, 3890, 6030, 460, 13, 288, 203, 565, 19931, 288, 203, 1377, 460, 519, 312, 945, 12, 81, 5263, 13, 203, 565, 289, 203, 225, 289, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./interface/ISqwidMarketplace.sol"; contract SqwidGovernance { struct Transaction { address to; uint256 value; bytes data; bool executed; uint256 numConfirmations; } struct OwnersChange { addre...
* Returns total number of owners change proposals./
function ownersChangesCount() external view returns (uint256) { return ownersChanges.length; }
12,720,700
[ 1, 4625, 348, 7953, 560, 30, 380, 2860, 2078, 1300, 434, 25937, 2549, 450, 22536, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 25937, 7173, 1380, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 25937, 7173, 18, 2469, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x8EF7Ad2dcf379C2000D7154fDdD254b0735cad00/sources/HumanToken.sol
Change Admin of this contract
function changeAdmin(address _newAdminAddress) external onlyOwner { admin = _newAdminAddress; }
2,854,915
[ 1, 4625, 348, 7953, 560, 30, 225, 7576, 7807, 434, 333, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2549, 4446, 12, 2867, 389, 2704, 4446, 1887, 13, 3903, 1338, 5541, 288, 203, 3639, 3981, 273, 389, 2704, 4446, 1887, 31, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/3/0x1621062Bc983304e60F572962E34139109570462/sources/contracts/presaleOwnerFinalize.sol
address public mainDappAddr;
contract PresaleOwnerFinalize is Ownable { bool public votingEnabled = true; address public mainDappAddr; constructor(address addr) public { mainDappAddr = addr; } mapping(uint256 => address) public indexToCaller; mapping(address => uint256) public callerToIndex; mapp...
8,104,801
[ 1, 4625, 348, 7953, 560, 30, 1758, 1071, 2774, 40, 2910, 3178, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18346, 5349, 5541, 7951, 554, 353, 14223, 6914, 288, 203, 377, 203, 565, 1426, 1071, 331, 17128, 1526, 273, 638, 31, 203, 565, 1758, 1071, 2774, 40, 2910, 3178, 31, 203, 203, 565, 3885, 12, 2867, 3091, 13, 1071, 288, 203, ...
./partial_match/1/0xd999D5a20294ec90c4f792F63820112E22E61059/sources/contracts/Sale/FomoMarketplace.sol
listingFeeToken = _listingFeeToken; listingFee = _listingFee;
) public { platformFee = _platformFee; feeReceipient = _feeRecipient; }
3,711,110
[ 1, 4625, 348, 7953, 560, 30, 225, 11591, 14667, 1345, 273, 389, 21228, 14667, 1345, 31, 11591, 14667, 273, 389, 21228, 14667, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 262, 1071, 288, 203, 3639, 4072, 14667, 273, 389, 9898, 14667, 31, 203, 3639, 14036, 4779, 625, 1979, 273, 389, 21386, 18241, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.1; /** * @title Vrenelium Token - VRE * @author Vrenelium AG 2018/2019 */ /** * @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 {...
12/31/2030 @ 11:59pm (UTC)
else if(now <= 1924991999) {
6,473,277
[ 1, 4625, 348, 7953, 560, 30, 225, 2593, 19, 6938, 19, 3462, 5082, 632, 4648, 30, 6162, 7755, 261, 11471, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1377, 469, 309, 12, 3338, 1648, 5342, 3247, 2733, 21, 11984, 13, 288, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/1/0xc07bBC8Ec176D3525569263253a24CfF7d6A31eb/sources/src/vaults/AffineVault.sol
* @notice Withdraw a specific amount of underlying tokens from a strategy. @dev This is a "best effort" withdrawal. It could potentially withdraw nothing. @param strategy The strategy to withdraw from. @param assets The amount of underlying tokens to withdraw. @return The amount of assets actually received./ Withdraw ...
function _withdrawFromStrategy(Strategy strategy, uint256 assets) internal returns (uint256) { uint256 amountWithdrawn = _divest(strategy, assets); uint256 oldStratTVL = strategies[strategy].balance; uint256 newStratTvl = strategy.totalLockedValue(); strategies[strategy].balance = u...
9,604,793
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 3423, 9446, 279, 2923, 3844, 434, 6808, 2430, 628, 279, 6252, 18, 632, 5206, 1220, 353, 279, 315, 12729, 23445, 6, 598, 9446, 287, 18, 2597, 3377, 13935, 598, 9446, 5083, 18, 632, 891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 1918, 9446, 1265, 4525, 12, 4525, 6252, 16, 2254, 5034, 7176, 13, 2713, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 3844, 1190, 9446, 82, 273, 389, 2892, 395, 12, 14914, 16, 7176, 1769, 203, 203, 3639, ...
pragma solidity 0.5.11; ...
wont' be able to change mythic season
{ uint16 proto = cardProtos[_tokenId]; uint256 season = protoToSeason[proto]; require( factoryApproved[msg.sender][season], "Core: factory can't change quality of this season" ); cardQualities[_tokenId] = _quality; emit QUALITYCHANGED816(_tok...
2,483,605
[ 1, 4625, 348, 7953, 560, 30, 225, 341, 1580, 11, 506, 7752, 358, 2549, 3399, 451, 335, 15874, 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, 288, 203, 3639, 2254, 2313, 3760, 273, 5270, 626, 14627, 63, 67, 2316, 548, 15533, 203, 3639, 2254, 5034, 15874, 273, 3760, 774, 1761, 2753, 63, 9393, 15533, 203, 203, 3639, 2583, 12, 203, 5411, 3272, 31639, 63, 3576, 18, 15...
/** *Submitted for verification at Etherscan.io on 2020-03-11 */ pragma solidity 0.5.11; // optimization runs: 200, evm version: petersburg interface DharmaTransferFacilitatorV1Interface { event RoleModified(Role indexed role, address account); event RolePaused(Role indexed role); event RoleUnpaused(Role inde...
* @notice Prove that `recipientSmartWallet` is a Dharma smart wallet address using `recipientInitialSigningKey`, deploy sender's smart wallet (unless it is already deployed) using `senderInitialSigningKey`, attempt to modify the allowance of this contract for the sender using the meta-transaction via `senderSmartWallet...
function deploySenderWalletAndEnactDDaiTransfer( address senderSmartWallet, address recipientSmartWallet, uint256 value, uint256 expiration, bytes32 salt, bytes calldata signatures ) external onlyOwnerOr(Role.TRANSFERRER) { _enforceRecipientAndValue( recipientSmartWallet, recipient...
12,753,268
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1186, 537, 716, 1375, 20367, 23824, 16936, 68, 353, 279, 463, 30250, 2540, 13706, 9230, 1758, 1450, 1375, 20367, 4435, 12322, 653, 9191, 7286, 5793, 1807, 13706, 9230, 261, 28502, 518, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 7286, 12021, 16936, 1876, 664, 621, 5698, 10658, 5912, 12, 203, 565, 1758, 5793, 23824, 16936, 16, 203, 565, 1758, 8027, 23824, 16936, 16, 203, 565, 2254, 5034, 460, 16, 203, 565, 2254, 5034, 7686, 16, 203, 565, 1731, 1...
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.6.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "./Lockable.sol"; /** * @title A contract to track a whitelist of addresses. */ contract AddressWhitelist is Ownable, Lockable { enum Status { None, In, Out } mapping(address => Stat...
Check if pending proposal can overwrite the current config. If liveness has passed, publish proposed configuration settings.
function _updateConfig() internal { if (_pendingProposalPassed()) { currentConfig = pendingConfig; _deletePendingConfig(); emit ChangedConfigSettings( currentConfig.rewardRatePerSecond.rawValue, currentConfig.proposerBondPct.rawValue, ...
591,328
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 309, 4634, 14708, 848, 6156, 326, 783, 642, 18, 971, 328, 31051, 711, 2275, 16, 3808, 20084, 1664, 1947, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 2725, 809, 1435, 2713, 288, 203, 3639, 309, 261, 67, 9561, 14592, 22530, 10756, 288, 203, 5411, 783, 809, 273, 4634, 809, 31, 203, 203, 5411, 389, 3733, 8579, 809, 5621, 203, 203, 5411, 3626, 27707, 809, 2628, 12, ...
// File: contracts/MoverValorYearnUSDCv2Vault.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /////////////////////////////////////////////////////////////////////////// // __/| // __//// /| This smart contract is part of Mover infrastructure // |// //_/// https://viamover.com // |_/ //...
transfer USDC received back to pool and decrease amountInvested
moverPool.returnInvested(USDCReceived);
12,025,129
[ 1, 4625, 348, 7953, 560, 30, 225, 7412, 11836, 5528, 5079, 1473, 358, 2845, 471, 20467, 3844, 3605, 3149, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 312, 1643, 2864, 18, 2463, 3605, 3149, 12, 3378, 5528, 8872, 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, ...
./full_match/1/0xCFC612B0c2ad7dc651E6608A5eE6695600BbdFF3/sources/contracts/LOGverse.sol
=================================================================== MODIFIER ===================================================================
modifier mintComplianceFreeMint(bytes32[] calldata _merkleProof) { _notContractAndCheckMintPhaseOpen(_msgSender(), PhaseMint.freeMint); _verifying(PhaseMint.freeMint, _merkleProof); _checkAddressClaim(PhaseMint.freeMint, 1, 1); _checkSupplyPhase(PhaseMint.freeMint, 1); _; ...
3,153,024
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 9917, 33, 17311, 8663, 10591, 422, 9917, 33, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 312, 474, 16687, 9194, 49, 474, 12, 3890, 1578, 8526, 745, 892, 389, 6592, 15609, 20439, 13, 288, 203, 3639, 389, 902, 8924, 31151, 49, 474, 11406, 3678, 24899, 3576, 12021, 9334, 19459, 49, 474, 18, 9156, 49, 474, 176...
./full_match/56/0x30EcfB66BD5E5F9B7BD78B221c64D8e04208d909/sources/FundManager_Algo.sol
set: invalid duration
require(_duration > 0, "E029");
3,236,905
[ 1, 4625, 348, 7953, 560, 30, 225, 444, 30, 2057, 3734, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 24899, 8760, 405, 374, 16, 315, 41, 3103, 29, 8863, 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, -10...
./full_match/1/0xde1911c0B8b1BEc692e8D68cc17E093a5eA9169D/sources/contracts/BadPresaleZuki.sol
Allows the specified contributor to buy tokens by sending Ether/
function buyTokens(address _contributor) public payable onlyActive { require(!isWhitelist, "Whitelist is active."); _buyTokens(_contributor); }
3,078,983
[ 1, 4625, 348, 7953, 560, 30, 225, 25619, 326, 1269, 31123, 358, 30143, 2430, 635, 5431, 512, 1136, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5157, 12, 2867, 389, 591, 19293, 13, 1071, 8843, 429, 1338, 3896, 288, 203, 3639, 2583, 12, 5, 291, 18927, 16, 315, 18927, 353, 2695, 1199, 1769, 203, 3639, 389, 70, 9835, 5157, 24899, 591, 19293, 1769, 203, 565,...
./partial_match/42/0xd434a1bDD41689160ecd24F78df7C354f054166A/sources/FlexibleLeverageStrategyAdapter.sol
* Create the action info struct to be used in internal functions return ActionInfo Struct containing data used by internal lever and delever functions/ Calculate stored exchange rate which does not trigger a state update
function _createActionInfo() internal view returns(ActionInfo memory) { ActionInfo memory rebalanceInfo; rebalanceInfo.collateralPrice = priceOracle.getUnderlyingPrice(address(targetCollateralCToken)); rebalanceInfo.borrowPrice = priceOracle.getUnderlyingPrice(address(targetBorrowCToken)); ...
3,425,727
[ 1, 4625, 348, 7953, 560, 30, 380, 1788, 326, 1301, 1123, 1958, 358, 506, 1399, 316, 2713, 4186, 327, 4382, 966, 7734, 7362, 4191, 501, 1399, 635, 2713, 884, 502, 471, 1464, 6084, 4186, 19, 9029, 4041, 7829, 4993, 1492, 1552, 486, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 2640, 1803, 966, 1435, 2713, 1476, 1135, 12, 1803, 966, 3778, 13, 288, 203, 3639, 4382, 966, 3778, 283, 12296, 966, 31, 203, 203, 3639, 283, 12296, 966, 18, 12910, 2045, 287, 5147, 273, 6205, 23601, 18, 588, 14655,...
pragma solidity ^0.4.18; import "../reserves/fprConversionRate/ConversionRates.sol"; contract MockConversionRate is ConversionRates { function MockConversionRate(address admin) ConversionRates(admin) public { } function mockGetImbalance(ERC20 token, uint rateUpdateBlock, uint currentBlock) public view ...
return(totalImbalance, currentBlockImbalance);
function mockGetImbalance(ERC20 token, uint rateUpdateBlock, uint currentBlock) public view returns(int totalImbalance, int currentBlockImbalance) { (totalImbalance, currentBlockImbalance) = getImbalance(token, rateUpdateBlock, currentBlock); }
12,595,924
[ 1, 4625, 348, 7953, 560, 30, 540, 327, 12, 4963, 1170, 12296, 16, 30610, 1170, 12296, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5416, 967, 1170, 12296, 12, 654, 39, 3462, 1147, 16, 2254, 4993, 1891, 1768, 16, 2254, 30610, 13, 1071, 1476, 203, 3639, 1135, 12, 474, 2078, 1170, 12296, 16, 509, 30610, 1170, 12296, 13, 203, 565, 288, 203, 3639, 261, ...
./full_match/1/0xc4E3ff0b5B106f88Fc64c43031BE8b076ee9F21C/sources/contracts/arbitrum/InterchainERC20TokenGateway.sol
@notice Address of the router in the corresponding chain @inheritdoc IInterchainTokenGateway @param router_ Address of the router in the corresponding chain @param counterpartGateway_ Address of the counterpart gateway used in the bridging process @param l1Token_ Address of the bridged token in the Ethereum chain @par...
) BridgeableTokens(l1Token_, l2Token_) { router = router_; counterpartGateway = counterpartGateway_; }
9,609,428
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 5267, 434, 326, 4633, 316, 326, 4656, 2687, 632, 10093, 467, 2465, 5639, 1345, 5197, 632, 891, 4633, 67, 5267, 434, 326, 4633, 316, 326, 4656, 2687, 632, 891, 3895, 2680, 5197, 67, 5267,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 262, 24219, 429, 5157, 12, 80, 21, 1345, 67, 16, 328, 22, 1345, 67, 13, 288, 203, 3639, 4633, 273, 4633, 67, 31, 203, 3639, 3895, 2680, 5197, 273, 3895, 2680, 5197, 67, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, ...
./partial_match/1/0x7aC3CBf1480Bd840d9976034bB26902AB47274e3/sources/contracts/ERC-721/ERC721Pool.sol
Effects: Mint an equivalent amount of pool tokens to the beneficiary.
_mint(beneficiary, 10**18);
4,148,188
[ 1, 4625, 348, 7953, 560, 30, 225, 30755, 87, 30, 490, 474, 392, 7680, 3844, 434, 2845, 2430, 358, 326, 27641, 74, 14463, 814, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 81, 474, 12, 70, 4009, 74, 14463, 814, 16, 1728, 636, 2643, 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, ...
/** *Submitted for verification at Etherscan.io on 2022-01-30 */ /** Telegram: https://t.me/cocoinuu */ // SPDX-License-Identifier: MIT pragma solidity 0.8.9; abstract contract Cont...
Anti-bot and anti-whale mappings and variables airdrop limits to prevent airdrop dump to protect new investors exlcude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount
contract CocoInu is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; address public buyBac...
8,064,189
[ 1, 4625, 348, 7953, 560, 30, 225, 18830, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 279, 6909, 1764, 8181, 358, 5309, 279, 6909, 1764, 4657, 358, 17151, 394, 2198, 395, 1383, 431, 17704, 1317, 628, 1656, 281, 471, 94...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 385, 29571, 382, 89, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259, ...
./full_match/1/0x88ed3B8D03e5a70Bf23286872b24cFFd76e91922/sources/src/Chief.sol
* @dev Reverts if `input` is zero address. @param input address to verify/
function _checkInputIsNotZeroAddress(address input) internal pure { if (input == address(0)) { revert Chief__checkInput_zeroAddress(); } }
17,056,411
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 868, 31537, 309, 1375, 2630, 68, 353, 3634, 1758, 18, 632, 891, 810, 1758, 358, 3929, 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, 225, 445, 389, 1893, 1210, 28041, 7170, 1887, 12, 2867, 810, 13, 2713, 16618, 288, 203, 565, 309, 261, 2630, 422, 1758, 12, 20, 3719, 288, 203, 1377, 15226, 1680, 28515, 972, 1893, 1210, 67, 7124, 1887, 5621, 203, 565, 289, 203, ...
// Sources flattened with hardhat v2.3.0 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/IERC20.sol@v4.1.0 // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of token...
@notice The EIP-712 typehash for the delegation struct used by the contract
bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint nonce,uint expiry)");
240,533
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1021, 512, 2579, 17, 27, 2138, 618, 2816, 364, 326, 23595, 1958, 1399, 635, 326, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 1731, 1578, 1071, 5381, 2030, 19384, 2689, 67, 2399, 15920, 273, 417, 24410, 581, 5034, 2932, 26945, 12, 2867, 7152, 73, 16, 11890, 7448, 16, 11890, 10839, 2225, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./partial_match/1/0x6c4aC0818a0Ca14900d0f1A44Ac6dBD5383BFc62/sources/DutchSwapAuction.sol
@notice Withdraw your tokens once the Auction has ended.
function withdrawTokens() public nonReentrant { if( auctionSuccessful() ) { uint256 tokensToClaim = tokensClaimable(msg.sender); require(tokensToClaim > 0, "No tokens to claim"); claimed[ msg.sender] = claimed[ msg.sender].add(tokensToClaim); to...
4,226,343
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3423, 9446, 3433, 2430, 3647, 326, 432, 4062, 711, 16926, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 5157, 1435, 1071, 1661, 426, 8230, 970, 288, 203, 3639, 309, 12, 279, 4062, 14277, 1435, 262, 7010, 3639, 288, 203, 5411, 2254, 5034, 2430, 774, 9762, 273, 2430, 9762, 429, 12, 3576, 18, 15330, 1769, 203, 541...
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "../libraries/Roles.sol"; import "../libraries/Lessors.sol"; import "./IRentProperty.sol"; import "../structs/Payment.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title Rent...
* @notice rent property @param lessorAddress property lessor address @param propertyId property id to rent/ Update lessor property Set rented poperty to tenant Transfer tokens to property owner
function rentProperty(address lessorAddress, uint propertyId) public override payable onlyTenantsWithoutRentedProperties { LessorsLib.Lessor storage lessor = _lessors.getLessor(lessorAddress); LessorsLib.Property storage property = lessor.properties[propertyId]; uint256 montlyPrice = propert...
12,624,567
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 283, 496, 1272, 632, 891, 5242, 280, 1887, 1272, 5242, 280, 1758, 632, 891, 31894, 1272, 612, 358, 283, 496, 19, 2315, 5242, 280, 1272, 1000, 283, 496, 329, 8275, 824, 358, 8466, 12279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 283, 496, 1396, 12, 2867, 5242, 280, 1887, 16, 2254, 31894, 13, 1071, 3849, 8843, 429, 1338, 25601, 4388, 8073, 54, 319, 329, 2297, 288, 203, 3639, 17304, 1383, 5664, 18, 15313, 280, 2502, 5242, 280, 273, 389, 2656, 138...
//SOCIALS: //web: monkeinu.net //tg: t.me/MonkeInuEth //twitter: twitter.com/MonkeInu pragma solidity ^0.8.3; // SPDX-License-Identifier: Unlicensed /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ funct...
% to holders % to swap & send to marketing wallet
contract MonkeInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; uint8 private _decimals = 9; uint256 private _tTotal = 1000 * 10**9 * 10**uint256(_decimals); uint256 public defaultTaxFee = 1; uint256 public _taxFee = defaultTaxFee; uint256 private _...
13,807,952
[ 1, 4625, 348, 7953, 560, 30, 225, 738, 358, 366, 4665, 738, 358, 7720, 473, 1366, 358, 13667, 310, 9230, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 16351, 9041, 4491, 382, 89, 225, 353, 1772, 16, 467, 654, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2254, 28, 3238, 389, 31734, 273, 2...
// NOTE THIS CONTRACT WAS NEVER USED. pragma solidity 0.6.12; import "../../vendered/@openzeppelin/contracts-ethereum-package-3.0.0/contracts/math/SafeMath.sol"; import "../../vendered/@openzeppelin/contracts-ethereum-package-3.0.0/contracts/Initializable.sol"; import "../ERC721Patronage_v1.sol"; import "../interface...
mapping from tokenID to the artists address
mapping(uint256 => address) public artistAddresses;
1,777,413
[ 1, 4625, 348, 7953, 560, 30, 2874, 628, 1147, 734, 358, 326, 3688, 1486, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 1758, 13, 1071, 15469, 7148, 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, -...
./partial_match/3/0x5116a45d89bf8Fbb2c87f9a49A9e348C9B4b79D6/sources/Faucet.sol
_fauceteer(0x1Fe16De955718CFAb7A44605458AB023838C2793);
_fauceteer(0x1Fe16De955718CFAb7A44605458AB023838C2793);
5,053,260
[ 1, 4625, 348, 7953, 560, 30, 225, 389, 507, 5286, 278, 4943, 12, 20, 92, 21, 2954, 2313, 758, 29, 2539, 27, 2643, 39, 2046, 70, 27, 37, 6334, 4848, 6564, 8204, 2090, 3103, 7414, 7414, 39, 5324, 11180, 1769, 203, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 540, 389, 507, 5286, 278, 4943, 12, 20, 92, 21, 2954, 2313, 758, 29, 2539, 27, 2643, 39, 2046, 70, 27, 37, 6334, 4848, 6564, 8204, 2090, 3103, 7414, 7414, 39, 5324, 11180, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100,...
./partial_match/1/0x7E0CBb9E4f95A88e8CdDe61a05027F8316Ea56b9/sources/DC.sol
address public custodian;
mapping (address => address) public managers;
4,015,605
[ 1, 4625, 348, 7953, 560, 30, 225, 1758, 1071, 276, 641, 369, 2779, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2874, 261, 2867, 516, 1758, 13, 1071, 21103, 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, -...
/** * @title Dividends * @author Team 3301 <team3301@sygnum.com> * @notice Dividends payout. */ pragma solidity 0.5.12; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "@sygnum/solidity-base-contracts/contracts/helpers/Pausable.sol"; import "../token/SygnumToken.sol"; // solhint-disable max-l...
* @dev This is the internal counter which keeps track of the available dividends within each different payout token. Address 0 is used for ether balances/* MODIFIERS */
modifier validDividendIndex(uint256 _dividendIndex) { require(_dividendIndex < dividends.length, "invalid index"); _; }
14,125,389
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1220, 353, 326, 2713, 3895, 1492, 20948, 3298, 434, 326, 2319, 3739, 350, 5839, 3470, 1517, 3775, 293, 2012, 1147, 18, 5267, 374, 353, 1399, 364, 225, 2437, 324, 26488, 20308, 8663, 10591, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9606, 923, 7244, 26746, 1016, 12, 11890, 5034, 389, 2892, 26746, 1016, 13, 288, 203, 3639, 2583, 24899, 2892, 26746, 1016, 411, 3739, 350, 5839, 18, 2469, 16, 315, 5387, 770, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203...
// SPDX-License-Identifier: MIT pragma solidity 0.6.6; import "../openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "../openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "./KoalaToken.sol"; import "./interfaces/IFairLaunch.sol"; // FairLaunch is a smart contract for distributing KOA by asking user t...
Accumated KOAs per share until Bonus End.
uint256 accKoalaPerShareTilBonusEnd;
12,625,116
[ 1, 4625, 348, 7953, 560, 30, 225, 15980, 379, 690, 1475, 51, 1463, 1534, 7433, 3180, 605, 22889, 4403, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 4078, 47, 83, 287, 69, 2173, 9535, 56, 330, 38, 22889, 1638, 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, -...
./full_match/1/0xd6B1E8563751B7c5Bb8b80AC72D79FE0Be86f8a0/sources/contracts/Base.sol
Exclude Uniswap router from fee
isExcludedFromFee[0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D] = true;
8,496,824
[ 1, 4625, 348, 7953, 560, 30, 225, 20760, 1351, 291, 91, 438, 4633, 628, 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, ...
[ 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, 353, 16461, 1265, 14667, 63, 20, 92, 27, 69, 26520, 72, 4313, 5082, 38, 24, 71, 42, 25, 5520, 27, 5520, 72, 42, 22, 39, 25, 72, 37, 7358, 24, 71, 26, 6162, 42, 3247, 5482, 40, 65, 273, 638, 31, 225, 2, -100, -100, ...
// Sources flattened with hardhat v2.4.1 https://hardhat.org // File zos-lib/contracts/Initializable.sol@v2.1.0 pragma solidity >=0.4.24 <0.6.0; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` m...
* A function which lets the owner of the lock expire a users' key./
function expireKeyFor( address _owner ) public onlyOwner hasValidKey(_owner) { }
935,525
[ 1, 4625, 348, 7953, 560, 30, 380, 432, 445, 1492, 14557, 326, 3410, 434, 326, 2176, 6930, 279, 3677, 11, 498, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 6930, 653, 1290, 12, 203, 565, 1758, 389, 8443, 203, 225, 262, 203, 565, 1071, 203, 565, 1338, 5541, 203, 565, 711, 1556, 653, 24899, 8443, 13, 203, 225, 288, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, ...
./partial_match/1/0xa1a5143b4044cC3B710FfB8D7130b24a542536f0/sources/lib/forge-std/src/safeconsole.sol
Selector of `log(bool,address,bool,uint256)`.
function log(bool p0, address p1, bool p2, uint256 p3) internal pure { bytes32 m0; bytes32 m1; bytes32 m2; bytes32 m3; bytes32 m4; assembly { m0 := mload(0x00) m1 := mload(0x20) m2 := mload(0x40) m3 := mload(0x60) ...
16,053,055
[ 1, 4625, 348, 7953, 560, 30, 225, 11703, 434, 1375, 1330, 12, 6430, 16, 2867, 16, 6430, 16, 11890, 5034, 13, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 613, 12, 6430, 293, 20, 16, 1758, 293, 21, 16, 1426, 293, 22, 16, 2254, 5034, 293, 23, 13, 2713, 16618, 288, 203, 3639, 1731, 1578, 312, 20, 31, 203, 3639, 1731, 1578, 312, 21, 31, 203, 3639, 1731, 1578, 312, 22, ...
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.8.4; import {IBToken} from "../interfaces/IBToken.sol"; import {IDebtToken} from "../interfaces/IDebtToken.sol"; import {ILendPoolLoan} from "../interfaces/ILendPoolLoan.sol"; import {ILendPool} from "../interfaces/ILendPool.sol"; import {IReserveOracleGetter} fro...
* @dev Function to liquidate a non-healthy position collateral-wise - The caller (liquidator) buy collateral asset of the user getting liquidated, and receives the collateral asset @param nftAsset The address of the underlying NFT used as collateral @param nftTokenId The token ID of the underlying NFT used as collate...
function liquidate( address nftAsset, uint256 nftTokenId, uint256 amount ) external override whenNotPaused returns (uint256) { address poolLiquidator = _addressesProvider.getLendPoolLiquidator(); (bool success, bytes memory result) = poolLiquidator.delegatecall( abi.encodeWithSignature("l...
503,046
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4284, 358, 4501, 26595, 340, 279, 1661, 17, 31690, 1754, 4508, 2045, 287, 17, 2460, 300, 1021, 4894, 261, 549, 26595, 639, 13, 30143, 4508, 2045, 287, 3310, 434, 326, 729, 8742, 4501, 265...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4501, 26595, 340, 12, 203, 565, 1758, 290, 1222, 6672, 16, 203, 565, 2254, 5034, 290, 1222, 1345, 548, 16, 203, 565, 2254, 5034, 3844, 203, 225, 262, 3903, 3849, 1347, 1248, 28590, 1135, 261, 11890, 5034, 13, 288, 203, ...
pragma solidity ^0.6.12; contract StatefulContract { // sample event event SetMessage(address indexed from, string message); // the message we're storing string message; constructor(string memory message_) public { emit SetMessage(msg.sender, message_); message = message_; } ...
sample event the message we're storing
contract StatefulContract { event SetMessage(address indexed from, string message); string message; constructor(string memory message_) public { emit SetMessage(msg.sender, message_); message = message_; } function set_message(string memory message_) public { emit SetMessa...
1,002,185
[ 1, 4625, 348, 7953, 560, 30, 225, 3296, 871, 326, 883, 732, 4565, 15729, 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, 16351, 3287, 2706, 8924, 288, 203, 565, 871, 1000, 1079, 12, 2867, 8808, 628, 16, 533, 883, 1769, 203, 203, 565, 533, 883, 31, 203, 203, 565, 3885, 12, 1080, 3778, 883, 67, 13, 1071, 288, 203, 3639, 3626, 1000, 1079, 12, 3576, ...
/** * The Consumer Contract Wallet * Copyright (C) 2018 The Contract Wallet Company Limited * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or...
@title JSON provides JSON parsing functionality.
contract JSON is usingOraclize{ using strings for *; bytes32 constant private prefixHash = keccak256("{\"ETH\":"); function parseRate(string _json) public pure returns (string) { uint json_len = abi.encodePacked(_json).length; require(json_len > 8 && json_len <= 28, "misformatted input")...
990,929
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 1796, 8121, 1796, 5811, 14176, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1796, 353, 1450, 51, 354, 830, 554, 95, 203, 565, 1450, 2064, 364, 380, 31, 203, 203, 203, 565, 1731, 1578, 5381, 3238, 1633, 2310, 273, 417, 24410, 581, 5034, 2932, 95, 2412, 1584, 44, 2412, 2773, 1769, 203, 203, 565, 4...
pragma solidity ^0.4.13; interface FundInterface { // EVENTS event PortfolioContent(address[] assets, uint[] holdings, uint[] prices); event RequestUpdated(uint id); event Redeemed(address indexed ofParticipant, uint atTimestamp, uint shareQuantity); event FeesConverted(uint atTimestamp, uint sha...
Melon as ERC20 contract
ERC20Interface public MELON_CONTRACT;
196,224
[ 1, 4625, 348, 7953, 560, 30, 225, 490, 292, 265, 487, 4232, 39, 3462, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 4232, 39, 3462, 1358, 1071, 490, 2247, 673, 67, 6067, 2849, 1268, 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...
./partial_match/1/0x6Eb22278ef035667141aCf300DE56a9d3DD9e894/sources/DipCatcherAlgorithm.sol
log transaction in the current tranche
RATE_TRANCHE_COUNT[CURRENT_TRANCHE] += 1;
9,268,197
[ 1, 4625, 348, 7953, 560, 30, 225, 613, 2492, 316, 326, 783, 13637, 18706, 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, 534, 1777, 67, 8989, 5007, 67, 7240, 63, 15487, 67, 8989, 5007, 65, 1011, 404, 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, ...
// open auction.sol pragma solidity ^0.4.11; contract SimpleAuction { /* Auction contract params: • beneficiary • auction end • high bidder • high bid • bid returns • ended status */ address public beneficiary; // someone gets the money, presumably the one who instantia...
notify of ending ...
event AuctionEnded(address winner, uint amount);
13,007,565
[ 1, 4625, 348, 7953, 560, 30, 225, 5066, 434, 11463, 1372, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 432, 4062, 28362, 12, 2867, 5657, 1224, 16, 2254, 3844, 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, -...
./full_match/42/0x674188b37788A9875cdc0362466a6B3a463CD75d/sources/contracts/Test2.sol
This function is manually called to commence the flash loans sequence/ the various assets to be flashed the amount to be flashed for each asset 0 = no debt, 1 = stable, 2 = variable
function executeFlashLoans(uint256 _AmtToken1) public onlyOwner { address receiverAddress = address(this); address[] memory assets = new address[](1); assets[0] = Token1; uint256[] memory amounts = new uint256[](1); amounts[0] = _AmtToken1; AmtToke...
9,570,506
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 445, 353, 10036, 2566, 358, 1543, 802, 326, 9563, 437, 634, 3102, 19, 326, 11191, 7176, 358, 506, 9563, 329, 326, 3844, 358, 506, 9563, 329, 364, 1517, 3310, 374, 273, 1158, 18202, 88, 16, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1836, 11353, 1504, 634, 12, 11890, 5034, 389, 31787, 1345, 21, 13, 1071, 1338, 5541, 288, 203, 3639, 1758, 5971, 1887, 273, 1758, 12, 2211, 1769, 203, 203, 3639, 1758, 8526, 3778, 7176, 273, 394, 1758, 8526, 12, 21, 176...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface INamelessTemplateLibrary { function getTemplate(uint256 templateIndex) external view returns (bytes32[] memory dataSection, bytes32[] memory codeSection); function getContentApis() external view returns (string memory arweaveContentApi, string memo...
solhint-disable-next-line not-rely-on-time
storageData[index] = block.timestamp;
1,308,681
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 486, 17, 266, 715, 17, 265, 17, 957, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2502, 751, 63, 1615, 65, 273, 1203, 18, 5508, 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, ...
/** *Submitted for verification at Etherscan.io on 2020-05-06 */ pragma solidity ^0.4.24; // File: /Users/matthewmcclure/repos/Token-Audit/node_modules/openzeppelin-zos/contracts/token/ERC20/ERC20Basic.sol /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EI...
* @dev Migrates the total balance of the token holder to this token contract @dev This function will burn the old token balance and mint the same balance in the new token contract/
function migrate() public { uint256 amount = legacyToken.balanceOf(msg.sender); migrateToken(amount); }
14,998,961
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 490, 2757, 815, 326, 2078, 11013, 434, 326, 1147, 10438, 358, 333, 1147, 6835, 632, 5206, 1220, 445, 903, 18305, 326, 1592, 1147, 11013, 471, 312, 474, 326, 1967, 11013, 316, 326, 394, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 13187, 1435, 1071, 288, 203, 565, 2254, 5034, 3844, 273, 8866, 1345, 18, 12296, 951, 12, 3576, 18, 15330, 1769, 203, 565, 13187, 1345, 12, 8949, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: MIT pragma solidity 0.6.10; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./Ownable.sol"; import "./erc1820/ERC1820Client.sol"; import "./erc1820/ERC1820Implementer.sol"; import "./extensions/IAmpTokensSender.sol"; i...
* @notice Indicate whether the `_operator` address is an operator of the `_tokenHolder` address for the `_partition`. @param _partition Partition for which `_operator` may be authorized. @param _operator Address which may be an operator of `_tokenHolder` for the `_partition`. @param _tokenHolder Address of a token hold...
function isOperatorForPartition( bytes32 _partition, address _operator, address _tokenHolder ) external view returns (bool) { return _isOperatorForPartition(_partition, _operator, _tokenHolder); }
1,065,025
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 9223, 2659, 2856, 326, 1375, 67, 9497, 68, 1758, 353, 392, 3726, 434, 326, 1375, 67, 2316, 6064, 68, 1758, 364, 326, 1375, 67, 10534, 8338, 632, 891, 389, 10534, 12598, 364, 1492, 1375, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 5592, 1290, 7003, 12, 203, 3639, 1731, 1578, 389, 10534, 16, 203, 3639, 1758, 389, 9497, 16, 203, 3639, 1758, 389, 2316, 6064, 203, 565, 262, 3903, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 389, 291, 5592, ...
./full_match/1/0x0000000000f5A96Dc85959cAeb0Cfe680f108FB5/sources/contracts/core/utils/ArweaveURILib.sol
* @dev Helper function for storing a URI that may be an Arweave URI. Efficiently stores Arweave CIDs by converting them into a single bytes32 word. The Arweave CID is a base64 encoded sha-256 output (32 bytes when decoded). @param uri The URI storage reference. @param value The string representation o...
function store( URI storage uri, string memory value, bool isUpdate ) internal { uint256 valueLength; bool isArweave; assembly { valueLength := mload(value) if or(eq(valueLength, 48), eq(valueLength, 49)) { if eq(and(mload(a...
5,013,461
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 9705, 445, 364, 15729, 279, 3699, 716, 2026, 506, 392, 1201, 1814, 836, 3699, 18, 1377, 512, 8714, 715, 9064, 1201, 1814, 836, 385, 5103, 635, 14540, 2182, 1368, 279, 2202, 1731, 1578, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1707, 12, 203, 3639, 3699, 2502, 2003, 16, 203, 3639, 533, 3778, 460, 16, 203, 3639, 1426, 353, 1891, 203, 565, 262, 2713, 288, 203, 3639, 2254, 5034, 460, 1782, 31, 203, 3639, 1426, 353, 686, 1814, 836, 31, 203, 3639...
pragma solidity ^0.5.16; library Math { function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } function average(uint256 a, uint256 b) internal ...
* 领取收益/deposit in 24h
function getReward() public { uint256 _reward = earned(msg.sender); userAssetsMapping[msg.sender].payout = global .earningsPerShare .mul(userAssetsMapping[msg.sender].stakeAmount) .div(magnitude); userAssetsMapping[msg.sender].totalRewardPaid = userAssetsMapping[msg .sender] .totalRewardPaid...
14,802,303
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 170, 100, 233, 166, 242, 249, 167, 247, 119, 168, 254, 237, 19, 323, 1724, 316, 4248, 76, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4170, 359, 1060, 1435, 1071, 288, 203, 3639, 2254, 5034, 389, 266, 2913, 273, 425, 1303, 329, 12, 3576, 18, 15330, 1769, 203, 3639, 729, 10726, 3233, 63, 3576, 18, 15330, 8009, 84, 2012, 273, 2552, 263, 73, 1303, 899, ...
./partial_match/80001/0xEd494b640222d33F22a9156725d2a12a589fa3E0/sources/src/consensys_erc1400/ERC1400.sol
* @dev Issue tokens from a specific partition. @param toPartition Name of the partition. @param operator The address performing the issuance. @param to Token recipient. @param value Number of tokens to issue. @param data Information attached to the issuance./
function _issueByPartition( bytes32 toPartition, address operator, address to, uint256 value, bytes memory data ) internal { _callTokenExtension( toPartition, operator, address(0), to, value, ...
8,796,214
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11820, 2430, 628, 279, 2923, 3590, 18, 632, 891, 358, 7003, 1770, 434, 326, 3590, 18, 632, 891, 3726, 1021, 1758, 14928, 326, 3385, 89, 1359, 18, 632, 891, 358, 3155, 8027, 18, 632, 891...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13882, 858, 7003, 12, 203, 3639, 1731, 1578, 358, 7003, 16, 203, 3639, 1758, 3726, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 460, 16, 203, 3639, 1731, 3778, 501, 203, 565, 262, 2713, 288, 203, 3639, 38...
//██████╗ █████╗ ██╗ █████╗ ██████╗ ██╗███╗ ██╗ //██╔══██╗██╔══██╗██║ ██╔══██╗██╔══██╗██║████╗ ██║ //██████╔╝███████║██║ ███████║██║ ██║██║██╔██╗ ██║ //██╔═══╝ ██╔══██║██║ ██╔══██║██║ ██║██║██║╚██╗██║ //██║ ██║ ██║███████╗██║ ██║██████╔╝██║██║ ╚████║ //╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════...
* @notice Set a new Interest Module @dev Load a new Interest Module @param _interestModule address of the new Interest Module/
function setNewInterestModule(address _interestModule) external override adminOnly { interestModule = InterestInterface(_interestModule); }
548,498
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1000, 279, 394, 5294, 395, 5924, 632, 5206, 4444, 279, 394, 5294, 395, 5924, 632, 891, 389, 2761, 395, 3120, 1758, 434, 326, 394, 5294, 395, 5924, 19, 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, 1, 0, 0, 0, 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, 19469, 29281, 3120, 12, 2867, 389, 2761, 395, 3120, 13, 3903, 3849, 3981, 3386, 288, 203, 3639, 16513, 3120, 273, 5294, 395, 1358, 24899, 2761, 395, 3120, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, ...
./partial_match/11297108109/0xB3C62Aed3be8e0577D4724C40a01379dbf895C01/sources/project_/contracts/utils/ERC2771Context.sol
The assembly code is more direct than the Solidity version using `abi.decode`.
function _msgSender() internal view virtual override(Context) returns (address payable sender) { if (isTrustedForwarder(msg.sender)) { return super._msgSender(); } }
16,951,766
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 19931, 981, 353, 1898, 2657, 2353, 326, 348, 7953, 560, 1177, 1450, 1375, 21457, 18, 3922, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 3576, 12021, 1435, 2713, 1476, 5024, 3849, 12, 1042, 13, 1135, 261, 2867, 8843, 429, 5793, 13, 288, 203, 3639, 309, 261, 291, 16950, 30839, 12, 3576, 18, 15330, 3719, 288, 203, 5411, 327, 2240, 6315, 3576, 12021, 5...