Address Details
contract
0xBfd5e88C7D0cc6a90163A8d69887f7C3eee06306
- Contract Name
- AirdropV2Implementation
- Creator
- 0xa34737–43edab at 0x4d154b–258902
- Balance
- 0 CELO ( )
- Locked CELO Balance
- 0.00 CELO
- Voting CELO Balance
- 0.00 CELO
- Pending Unlocked Gold
- 0.00 CELO
- Tokens
-
Fetching tokens...
- Transactions
- 0 Transactions
- Transfers
- 0 Transfers
- Gas Used
- Fetching gas used...
- Last Balance Update
- 14393625
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- AirdropV2Implementation
- Optimization enabled
- true
- Compiler version
- v0.8.4+commit.c7e474f2
- Optimization runs
- 200
- EVM Version
- istanbul
- Verified at
- 2022-11-01T20:10:38.199649Z
contracts/airdropV2/AirdropV2Implementation.sol
//SPDX-License-Identifier: Apache-2.0 pragma solidity 0.8.4; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./interfaces/AirdropV2StorageV1.sol"; contract AirdropV2Implementation is Initializable, OwnableUpgradeable, PausableUpgradeable, ReentrancyGuardUpgradeable, AirdropV2StorageV1 { using SafeERC20Upgradeable for IERC20; /** * @notice Triggered after a claim * * @param beneficiary The address of the beneficiary that has claimed * @param amount The amount of the claim */ event Claimed(address indexed beneficiary, uint256 amount); /** * @notice Used to initialize a new Airdrop contract * * @param _PACTAddress The address of the PACT token * @param _startTime The timestamp when the airdrop will be available * @param _trancheAmount The number of PACTs to be claimed in one transaction * @param _totalAmount The total number of PACTs to be claimed by a beneficiary * @param _cooldown The minimum number of seconds between two claims * @param _merkleRoot The root of the merkle tree */ function initialize( address _PACTAddress, uint256 _startTime, uint256 _trancheAmount, uint256 _totalAmount, uint256 _cooldown, bytes32 _merkleRoot ) public initializer { __Ownable_init(); __Pausable_init(); __ReentrancyGuard_init(); PACT = IERC20(_PACTAddress); startTime = _startTime; trancheAmount = _trancheAmount; totalAmount = _totalAmount; cooldown = _cooldown; merkleRoot = _merkleRoot; } /** * @notice Returns the current implementation version */ function getVersion() external pure override returns (uint256) { return 1; } /** * @notice Updates the startTime value * * @param _newStartTime the new start timestamp */ function updateStartTime(uint256 _newStartTime) external override onlyOwner { startTime = _newStartTime; } /** * @notice Updates the trancheAmount value * * @param _newTrancheAmount the new trancheAmount */ function updateTrancheAmount(uint256 _newTrancheAmount) external override onlyOwner { trancheAmount = _newTrancheAmount; } /** * @notice Updates the totalAmount value * * @param _newTotalAmount the new totalAmount */ function updateTotalAmount(uint256 _newTotalAmount) external override onlyOwner { totalAmount = _newTotalAmount; } /** * @notice Updates the cooldown value * * @param _newCooldown the new cooldown timestamp */ function updateCooldown(uint256 _newCooldown) external override onlyOwner { cooldown = _newCooldown; } /** * @notice Updates the merkleRoot * * @param _newMerkleRoot the new merkleRoot */ function updateMerkleRoot(bytes32 _newMerkleRoot) external override onlyOwner { merkleRoot = _newMerkleRoot; } /** * @notice Transfers PACTs to a beneficiary * * @param _beneficiaryAddress the address of the beneficiary * @param _merkleProof the proof vor validating the beneficiary */ function claim(address _beneficiaryAddress, bytes32[] calldata _merkleProof) external override { require(startTime <= block.timestamp, "AirdropV2Implementation::claim: Not yet"); Beneficiary storage _beneficiary = beneficiaries[_beneficiaryAddress]; //we have to check if the address is a beneficiary only first time if (_beneficiary.claimedAmount == 0) { // Verify the merkle proof. bytes32 _leafToCheck = keccak256(abi.encodePacked(_beneficiaryAddress)); require( MerkleProof.verify(_merkleProof, merkleRoot, _leafToCheck), "AirdropV2Implementation::claim: Incorrect proof" ); } require( _beneficiary.lastClaimTime + cooldown <= block.timestamp, "AirdropV2Implementation::claim: Not yet" ); require( _beneficiary.claimedAmount < totalAmount, "AirdropV2Implementation::claim: Beneficiary's claimed all amount" ); uint256 _toClaim = totalAmount - _beneficiary.claimedAmount; uint256 _claimAmount = _toClaim > trancheAmount ? trancheAmount : _toClaim; _beneficiary.claimedAmount += _claimAmount; _beneficiary.lastClaimTime = block.timestamp; // Send the token PACT.safeTransfer(_beneficiaryAddress, _claimAmount); emit Claimed(_beneficiaryAddress, _claimAmount); } }
/_openzeppelin/contracts/utils/cryptography/MerkleProof.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
/_openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } uint256[49] private __gap; }
/_openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol) pragma solidity ^0.8.0; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() initializer {} * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
/_openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Context_init_unchained(); __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } uint256[49] private __gap; }
/_openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } uint256[49] private __gap; }
/_openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
/_openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20Upgradeable.sol"; import "../../../utils/AddressUpgradeable.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20Upgradeable { using AddressUpgradeable for address; function safeTransfer( IERC20Upgradeable token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20Upgradeable token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20Upgradeable token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20Upgradeable token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20Upgradeable token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
/_openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
/_openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { __Context_init_unchained(); } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } uint256[50] private __gap; }
/contracts/airdropV2/interfaces/AirdropV2StorageV1.sol
// SPDX-License-Identifier: Apache-2.0 pragma solidity 0.8.4; import "./IAirdropV2.sol"; /** * @title Storage for Deposit * @notice For future upgrades, do not change DepositStorageV1. Create a new * contract which implements DepositStorageV1 and following the naming convention * DepositStorageVx. */ abstract contract AirdropV2StorageV1 is IAirdropV2 { IERC20 public override PACT; bytes32 public override merkleRoot; uint256 public override startTime; uint256 public override trancheAmount; uint256 public override totalAmount; uint256 public override cooldown; mapping(address => Beneficiary) public beneficiaries; }
/contracts/airdropV2/interfaces/IAirdropV2.sol
//SPDX-License-Identifier: Apache-2.0 pragma solidity 0.8.4; import {IERC20Upgradeable as IERC20} from "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; interface IAirdropV2 { struct Beneficiary { uint256 claimedAmount; uint256 lastClaimTime; } function getVersion() external pure returns(uint256); function PACT() external view returns(IERC20); function startTime() external view returns(uint256); function trancheAmount() external view returns(uint256); function totalAmount() external view returns(uint256); function cooldown() external view returns(uint256); function merkleRoot() external view returns(bytes32); function updateStartTime(uint256 _newStartTime) external; function updateTrancheAmount(uint256 _newTrancheAmount) external; function updateTotalAmount(uint256 _newTotalAmount) external; function updateCooldown(uint256 _newCooldown) external; function updateMerkleRoot(bytes32 _newMerkleRoot) external; function claim( address _beneficiaryAddress, bytes32[] calldata _merkleProof ) external; }
Contract ABI
[{"type":"event","name":"Claimed","inputs":[{"type":"address","name":"beneficiary","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Paused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"Unpaused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20Upgradeable"}],"name":"PACT","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"claimedAmount","internalType":"uint256"},{"type":"uint256","name":"lastClaimTime","internalType":"uint256"}],"name":"beneficiaries","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claim","inputs":[{"type":"address","name":"_beneficiaryAddress","internalType":"address"},{"type":"bytes32[]","name":"_merkleProof","internalType":"bytes32[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"cooldown","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getVersion","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"address","name":"_PACTAddress","internalType":"address"},{"type":"uint256","name":"_startTime","internalType":"uint256"},{"type":"uint256","name":"_trancheAmount","internalType":"uint256"},{"type":"uint256","name":"_totalAmount","internalType":"uint256"},{"type":"uint256","name":"_cooldown","internalType":"uint256"},{"type":"bytes32","name":"_merkleRoot","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"merkleRoot","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"startTime","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalAmount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"trancheAmount","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateCooldown","inputs":[{"type":"uint256","name":"_newCooldown","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateMerkleRoot","inputs":[{"type":"bytes32","name":"_newMerkleRoot","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateStartTime","inputs":[{"type":"uint256","name":"_newStartTime","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateTotalAmount","inputs":[{"type":"uint256","name":"_newTotalAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateTrancheAmount","inputs":[{"type":"uint256","name":"_newTrancheAmount","internalType":"uint256"}]}]
Contract Creation Code
0x608060405234801561001057600080fd5b5061100e806100206000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c80635c975abb116100ad57806386cb625e1161007157806386cb625e1461023c5780638da5cb5b1461024f578063aaf29bad14610260578063d7aada8114610273578063f2fde38b1461028657600080fd5b80635c975abb14610203578063715018a614610219578063787a08a61461022157806378ae579e1461022a57806378e979251461023357600080fd5b80631db0df69116100f45780631db0df69146101965780632eb4a7ab146101a95780633b9a0176146101b25780634783f0ef146101dd57806355119df9146101f057600080fd5b8063015677391461012657806306bcf02f146101675780630d8e6e2c1461017c5780631a39d8ef1461018d575b600080fd5b61014d610134366004610d16565b60cf602052600090815260409020805460019091015482565b604080519283526020830191909152015b60405180910390f35b61017a610175366004610e1a565b610299565b005b60015b60405190815260200161015e565b61017f60cd5481565b61017a6101a4366004610e1a565b6102d1565b61017f60ca5481565b60c9546101c5906001600160a01b031681565b6040516001600160a01b03909116815260200161015e565b61017a6101eb366004610e1a565b610300565b61017a6101fe366004610e1a565b61032f565b60655460ff16604051901515815260200161015e565b61017a61035e565b61017f60ce5481565b61017f60cc5481565b61017f60cb5481565b61017a61024a366004610db1565b610394565b6033546001600160a01b03166101c5565b61017a61026e366004610e1a565b61049f565b61017a610281366004610d30565b6104ce565b61017a610294366004610d16565b610745565b6033546001600160a01b031633146102cc5760405162461bcd60e51b81526004016102c390610e81565b60405180910390fd5b60cb55565b6033546001600160a01b031633146102fb5760405162461bcd60e51b81526004016102c390610e81565b60cc55565b6033546001600160a01b0316331461032a5760405162461bcd60e51b81526004016102c390610e81565b60ca55565b6033546001600160a01b031633146103595760405162461bcd60e51b81526004016102c390610e81565b60ce55565b6033546001600160a01b031633146103885760405162461bcd60e51b81526004016102c390610e81565b61039260006107e0565b565b600054610100900460ff166103af5760005460ff16156103b3565b303b155b6104165760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016102c3565b600054610100900460ff16158015610438576000805461ffff19166101011790555b610440610832565b610448610869565b6104506108a0565b60c980546001600160a01b0319166001600160a01b03891617905560cb86905560cc85905560cd84905560ce83905560ca8290558015610496576000805461ff00191690555b50505050505050565b6033546001600160a01b031633146104c95760405162461bcd60e51b81526004016102c390610e81565b60cd55565b4260cb5411156104f05760405162461bcd60e51b81526004016102c390610eb6565b6001600160a01b038316600090815260cf6020526040902080546105ef576040516bffffffffffffffffffffffff19606086901b1660208201526000906034016040516020818303038152906040528051906020012090506105898484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060ca5491508490506108cf565b6105ed5760405162461bcd60e51b815260206004820152602f60248201527f41697264726f705632496d706c656d656e746174696f6e3a3a636c61696d3a2060448201526e24b731b7b93932b1ba10383937b7b360891b60648201526084016102c3565b505b4260ce5482600101546106029190610f48565b11156106205760405162461bcd60e51b81526004016102c390610eb6565b60cd5481541061069a576040805162461bcd60e51b81526020600482015260248101919091527f41697264726f705632496d706c656d656e746174696f6e3a3a636c61696d3a2060448201527f42656e6566696369617279277320636c61696d656420616c6c20616d6f756e7460648201526084016102c3565b805460cd546000916106ab91610f60565b9050600060cc5482116106be57816106c2565b60cc545b9050808360000160008282546106d89190610f48565b909155505042600184015560c9546106fa906001600160a01b031687836108e7565b856001600160a01b03167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a8260405161073591815260200190565b60405180910390a2505050505050565b6033546001600160a01b0316331461076f5760405162461bcd60e51b81526004016102c390610e81565b6001600160a01b0381166107d45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102c3565b6107dd816107e0565b50565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166108595760405162461bcd60e51b81526004016102c390610efd565b61086161093e565b610392610965565b600054610100900460ff166108905760405162461bcd60e51b81526004016102c390610efd565b61089861093e565b610392610995565b600054610100900460ff166108c75760405162461bcd60e51b81526004016102c390610efd565b6103926109c8565b6000826108dc85846109f6565b1490505b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610939908490610ab0565b505050565b600054610100900460ff166103925760405162461bcd60e51b81526004016102c390610efd565b600054610100900460ff1661098c5760405162461bcd60e51b81526004016102c390610efd565b610392336107e0565b600054610100900460ff166109bc5760405162461bcd60e51b81526004016102c390610efd565b6065805460ff19169055565b600054610100900460ff166109ef5760405162461bcd60e51b81526004016102c390610efd565b6001609755565b600081815b8451811015610aa8576000858281518110610a2657634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311610a68576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610a95565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610aa081610fa7565b9150506109fb565b509392505050565b6000610b05826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b829092919063ffffffff16565b8051909150156109395780806020019051810190610b239190610dfa565b6109395760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102c3565b6060610b918484600085610b99565b949350505050565b606082471015610bfa5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102c3565b843b610c485760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102c3565b600080866001600160a01b03168587604051610c649190610e32565b60006040518083038185875af1925050503d8060008114610ca1576040519150601f19603f3d011682016040523d82523d6000602084013e610ca6565b606091505b5091509150610cb6828286610cc1565b979650505050505050565b60608315610cd05750816108e0565b825115610ce05782518084602001fd5b8160405162461bcd60e51b81526004016102c39190610e4e565b80356001600160a01b0381168114610d1157600080fd5b919050565b600060208284031215610d27578081fd5b6108e082610cfa565b600080600060408486031215610d44578182fd5b610d4d84610cfa565b9250602084013567ffffffffffffffff80821115610d69578384fd5b818601915086601f830112610d7c578384fd5b813581811115610d8a578485fd5b8760208260051b8501011115610d9e578485fd5b6020830194508093505050509250925092565b60008060008060008060c08789031215610dc9578182fd5b610dd287610cfa565b9860208801359850604088013597606081013597506080810135965060a00135945092505050565b600060208284031215610e0b578081fd5b815180151581146108e0578182fd5b600060208284031215610e2b578081fd5b5035919050565b60008251610e44818460208701610f77565b9190910192915050565b6020815260008251806020840152610e6d816040850160208701610f77565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526027908201527f41697264726f705632496d706c656d656e746174696f6e3a3a636c61696d3a20604082015266139bdd081e595d60ca1b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60008219821115610f5b57610f5b610fc2565b500190565b600082821015610f7257610f72610fc2565b500390565b60005b83811015610f92578181015183820152602001610f7a565b83811115610fa1576000848401525b50505050565b6000600019821415610fbb57610fbb610fc2565b5060010190565b634e487b7160e01b600052601160045260246000fdfea264697066735822122083a337c8b289c4ea37ddb7095c532f1f457b8ceb456491edb4accfb20c0e093564736f6c63430008040033
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101215760003560e01c80635c975abb116100ad57806386cb625e1161007157806386cb625e1461023c5780638da5cb5b1461024f578063aaf29bad14610260578063d7aada8114610273578063f2fde38b1461028657600080fd5b80635c975abb14610203578063715018a614610219578063787a08a61461022157806378ae579e1461022a57806378e979251461023357600080fd5b80631db0df69116100f45780631db0df69146101965780632eb4a7ab146101a95780633b9a0176146101b25780634783f0ef146101dd57806355119df9146101f057600080fd5b8063015677391461012657806306bcf02f146101675780630d8e6e2c1461017c5780631a39d8ef1461018d575b600080fd5b61014d610134366004610d16565b60cf602052600090815260409020805460019091015482565b604080519283526020830191909152015b60405180910390f35b61017a610175366004610e1a565b610299565b005b60015b60405190815260200161015e565b61017f60cd5481565b61017a6101a4366004610e1a565b6102d1565b61017f60ca5481565b60c9546101c5906001600160a01b031681565b6040516001600160a01b03909116815260200161015e565b61017a6101eb366004610e1a565b610300565b61017a6101fe366004610e1a565b61032f565b60655460ff16604051901515815260200161015e565b61017a61035e565b61017f60ce5481565b61017f60cc5481565b61017f60cb5481565b61017a61024a366004610db1565b610394565b6033546001600160a01b03166101c5565b61017a61026e366004610e1a565b61049f565b61017a610281366004610d30565b6104ce565b61017a610294366004610d16565b610745565b6033546001600160a01b031633146102cc5760405162461bcd60e51b81526004016102c390610e81565b60405180910390fd5b60cb55565b6033546001600160a01b031633146102fb5760405162461bcd60e51b81526004016102c390610e81565b60cc55565b6033546001600160a01b0316331461032a5760405162461bcd60e51b81526004016102c390610e81565b60ca55565b6033546001600160a01b031633146103595760405162461bcd60e51b81526004016102c390610e81565b60ce55565b6033546001600160a01b031633146103885760405162461bcd60e51b81526004016102c390610e81565b61039260006107e0565b565b600054610100900460ff166103af5760005460ff16156103b3565b303b155b6104165760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016102c3565b600054610100900460ff16158015610438576000805461ffff19166101011790555b610440610832565b610448610869565b6104506108a0565b60c980546001600160a01b0319166001600160a01b03891617905560cb86905560cc85905560cd84905560ce83905560ca8290558015610496576000805461ff00191690555b50505050505050565b6033546001600160a01b031633146104c95760405162461bcd60e51b81526004016102c390610e81565b60cd55565b4260cb5411156104f05760405162461bcd60e51b81526004016102c390610eb6565b6001600160a01b038316600090815260cf6020526040902080546105ef576040516bffffffffffffffffffffffff19606086901b1660208201526000906034016040516020818303038152906040528051906020012090506105898484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060ca5491508490506108cf565b6105ed5760405162461bcd60e51b815260206004820152602f60248201527f41697264726f705632496d706c656d656e746174696f6e3a3a636c61696d3a2060448201526e24b731b7b93932b1ba10383937b7b360891b60648201526084016102c3565b505b4260ce5482600101546106029190610f48565b11156106205760405162461bcd60e51b81526004016102c390610eb6565b60cd5481541061069a576040805162461bcd60e51b81526020600482015260248101919091527f41697264726f705632496d706c656d656e746174696f6e3a3a636c61696d3a2060448201527f42656e6566696369617279277320636c61696d656420616c6c20616d6f756e7460648201526084016102c3565b805460cd546000916106ab91610f60565b9050600060cc5482116106be57816106c2565b60cc545b9050808360000160008282546106d89190610f48565b909155505042600184015560c9546106fa906001600160a01b031687836108e7565b856001600160a01b03167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a8260405161073591815260200190565b60405180910390a2505050505050565b6033546001600160a01b0316331461076f5760405162461bcd60e51b81526004016102c390610e81565b6001600160a01b0381166107d45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102c3565b6107dd816107e0565b50565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166108595760405162461bcd60e51b81526004016102c390610efd565b61086161093e565b610392610965565b600054610100900460ff166108905760405162461bcd60e51b81526004016102c390610efd565b61089861093e565b610392610995565b600054610100900460ff166108c75760405162461bcd60e51b81526004016102c390610efd565b6103926109c8565b6000826108dc85846109f6565b1490505b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610939908490610ab0565b505050565b600054610100900460ff166103925760405162461bcd60e51b81526004016102c390610efd565b600054610100900460ff1661098c5760405162461bcd60e51b81526004016102c390610efd565b610392336107e0565b600054610100900460ff166109bc5760405162461bcd60e51b81526004016102c390610efd565b6065805460ff19169055565b600054610100900460ff166109ef5760405162461bcd60e51b81526004016102c390610efd565b6001609755565b600081815b8451811015610aa8576000858281518110610a2657634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311610a68576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610a95565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610aa081610fa7565b9150506109fb565b509392505050565b6000610b05826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b829092919063ffffffff16565b8051909150156109395780806020019051810190610b239190610dfa565b6109395760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102c3565b6060610b918484600085610b99565b949350505050565b606082471015610bfa5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102c3565b843b610c485760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102c3565b600080866001600160a01b03168587604051610c649190610e32565b60006040518083038185875af1925050503d8060008114610ca1576040519150601f19603f3d011682016040523d82523d6000602084013e610ca6565b606091505b5091509150610cb6828286610cc1565b979650505050505050565b60608315610cd05750816108e0565b825115610ce05782518084602001fd5b8160405162461bcd60e51b81526004016102c39190610e4e565b80356001600160a01b0381168114610d1157600080fd5b919050565b600060208284031215610d27578081fd5b6108e082610cfa565b600080600060408486031215610d44578182fd5b610d4d84610cfa565b9250602084013567ffffffffffffffff80821115610d69578384fd5b818601915086601f830112610d7c578384fd5b813581811115610d8a578485fd5b8760208260051b8501011115610d9e578485fd5b6020830194508093505050509250925092565b60008060008060008060c08789031215610dc9578182fd5b610dd287610cfa565b9860208801359850604088013597606081013597506080810135965060a00135945092505050565b600060208284031215610e0b578081fd5b815180151581146108e0578182fd5b600060208284031215610e2b578081fd5b5035919050565b60008251610e44818460208701610f77565b9190910192915050565b6020815260008251806020840152610e6d816040850160208701610f77565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526027908201527f41697264726f705632496d706c656d656e746174696f6e3a3a636c61696d3a20604082015266139bdd081e595d60ca1b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60008219821115610f5b57610f5b610fc2565b500190565b600082821015610f7257610f72610fc2565b500390565b60005b83811015610f92578181015183820152602001610f7a565b83811115610fa1576000848401525b50505050565b6000600019821415610fbb57610fbb610fc2565b5060010190565b634e487b7160e01b600052601160045260246000fdfea264697066735822122083a337c8b289c4ea37ddb7095c532f1f457b8ceb456491edb4accfb20c0e093564736f6c63430008040033