Overview
GLMR Balance
0 GLMR
GLMR Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
9329682 | 7 mins ago | 82.70340166 GLMR | ||||
9329637 | 12 mins ago | 56.11477317 GLMR | ||||
9329523 | 23 mins ago | 19.46312081 GLMR | ||||
9329460 | 29 mins ago | 10.64319387 GLMR | ||||
9326693 | 5 hrs ago | 2.85886167 GLMR | ||||
9326678 | 5 hrs ago | 1.79160188 GLMR | ||||
9326491 | 5 hrs ago | 9.45819974 GLMR | ||||
9326478 | 5 hrs ago | 2.53245298 GLMR | ||||
9326408 | 5 hrs ago | 4.68698402 GLMR | ||||
9325101 | 7 hrs ago | 191.84601822 GLMR | ||||
9325101 | 7 hrs ago | 13.01075344 GLMR | ||||
9323633 | 10 hrs ago | 4,684.82549327 GLMR | ||||
9323633 | 10 hrs ago | 3,455.43003993 GLMR | ||||
9323633 | 10 hrs ago | 2,785.11559679 GLMR | ||||
9323490 | 10 hrs ago | 4.71243106 GLMR | ||||
9321634 | 13 hrs ago | 13.86907684 GLMR | ||||
9320995 | 14 hrs ago | 1.51012779 GLMR | ||||
9320742 | 15 hrs ago | 1.1988473 GLMR | ||||
9320666 | 15 hrs ago | 0.14844111 GLMR | ||||
9320621 | 15 hrs ago | 2.75038762 GLMR | ||||
9320621 | 15 hrs ago | 0.5259798 GLMR | ||||
9320473 | 15 hrs ago | 3.74420703 GLMR | ||||
9320443 | 15 hrs ago | 78.06452065 GLMR | ||||
9320443 | 15 hrs ago | 0.00722392 GLMR | ||||
9320317 | 15 hrs ago | 19.95132285 GLMR |
Loading...
Loading
Contract Name:
RewarderV4
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.17; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "./interfaces/IRewardRegistry.sol"; import "./interfaces/IAlgebraPool.sol"; contract RewarderV4 is Initializable, ReentrancyGuardUpgradeable { using SafeERC20 for IERC20; // structs struct MerkleTree { bytes32 merkleRoot; string ipfsHash; } struct Claim { uint256 amount; uint48 timestamp; } struct RewardInfo { IERC20 token; bool isNative; uint32 startTimestamp; uint32 endTimestamp; uint256 rewardPerSec; } struct TokenData { address addr; uint8 decimals; string symbol; uint256 poolBalance; } struct ExtensiveRewardInfo { RewardInfo rewardInfo; TokenData token0; TokenData token1; // rewardToken data string rewardTokenSymbol; uint8 rewardTokenDecimals; } struct ClaimData { address user; uint256 position; address token; uint256 amount; bool isNative; bytes32[] proof; } // variables MerkleTree public tree; MerkleTree public lastTree; IRewardRegistry public REWARD_REGISTRY; uint48 public lastTreeUpdate; mapping(address => mapping(uint256 => mapping(address => Claim))) public claimed; // user -> position id -> token RewardInfo[] public rewardInfo; uint32 public rewardStartTime; // the start time of first rewards. uint32 public lastRewardUpdateTime; // last reported update time uint32 public constant EPOCH_DURATION = 3600; // the amount of seconds after lastUpdate to report rewards for. (default 1 hour) // events event Claimed(address user, uint256 positionId, address token, uint256 amount); event TreeUpdated(bytes32 merkleRoot, string ipfsHash, uint256 rewardTime); event Recovered(address indexed token, address indexed to, uint256 amount); event AddRewardInfo( address indexed token, bool isNative, uint256 startTimestamp, uint256 endTimestamp, uint256 rewardPerSec ); // modifiers modifier onlyTrustedUpdater() { require(REWARD_REGISTRY.isTrutedUpdater(msg.sender), "REWARDER: NOT_TRUSTED_SENDER"); _; } modifier onlyOperator() { require(REWARD_REGISTRY.isOperator(msg.sender), "REWARDER: NOT_OPERATOR"); _; } modifier onlyRewardAdder() { require(REWARD_REGISTRY.isOperator(msg.sender) || msg.sender == address(REWARD_REGISTRY), "REWARDER: NOT_REWARD_ADDER"); _; } // errors error InvalidLengths(); function initialize(IRewardRegistry _registry) public initializer { require(address(_registry) != address(0), "Rewarder: registry is zero address"); REWARD_REGISTRY = _registry; } function updateTree(bytes32 _merkleRoot, string calldata _ipfsHash) public onlyTrustedUpdater { require(_merkleRoot != bytes32(0), "Rewarder: merkle root is zero"); require(keccak256(abi.encodePacked(_ipfsHash)) != keccak256(abi.encodePacked("")), "Rewarder: ipfs hash is zero"); require(_merkleRoot != tree.merkleRoot, "Rewarder: merkle root is same"); require(keccak256(abi.encodePacked(_ipfsHash)) != keccak256(abi.encodePacked(tree.ipfsHash)), "Rewarder: ipfs hash is same"); require(reportPeriodElapsed(), "Rewarder: wait until reported Epoch is elapsed"); lastTree = tree; tree = MerkleTree(_merkleRoot, _ipfsHash); lastTreeUpdate = uint48(block.timestamp); lastRewardUpdateTime = lastRewardTimestamp() + EPOCH_DURATION; emit TreeUpdated(_merkleRoot, _ipfsHash, lastRewardUpdateTime); } function claim( ClaimData[] calldata claims ) public nonReentrant { require(tree.merkleRoot != bytes32(0), "Rewarder: merkle root is zero"); uint256 claimsLength = claims.length; for (uint256 i; i < claimsLength; ) { ClaimData calldata claimData = claims[i]; // Accessing data from struct address user = claimData.user; uint256 position = claimData.position; address token = claimData.token; uint256 amount = claimData.amount; bool isNative = claimData.isNative; bytes32[] calldata proof = claimData.proof; // Verifying proof require(_verify(_leaf(user, position, token, amount, isNative), proof), "Rewarder: invalid proof"); uint256 amountToSend = amount - claimed[user][position][token].amount; claimed[user][position][token] = Claim(amount, uint48(block.timestamp)); if (isNative) { (bool success, ) = user.call{value: amountToSend}(""); require(success, "Transfer failed"); } else { IERC20(token).safeTransfer(user, amountToSend); } emit Claimed(user, position, token, amountToSend); unchecked { ++i; } } } function recover(address _token, address _to, uint256 _amount, bool isNative) public onlyOperator { require(_token != address(0), "Rewarder: token is zero address"); require(_to != address(0), "Rewarder: to is zero address"); require(_amount > 0, "Rewarder: amount is zero"); if (isNative) { (bool success, ) = _to.call{value: _amount}(""); require(success, "Transfer failed"); } else { IERC20(_token).safeTransfer(_to, _amount); } emit Recovered(_token, _to, _amount); } function getMerkleRoot() public view returns (bytes32) { return tree.merkleRoot; } function _leaf(address user, uint256 position, address token, uint256 amount, bool isNative) internal pure returns (bytes32) { return keccak256(abi.encodePacked(user, position, token, amount, isNative)); } function _verify(bytes32 leaf, bytes32[] memory proof) internal view returns (bool) { return MerkleProof.verify(proof, getMerkleRoot(), leaf); } // Reward Operations function addRewardInfo( IERC20 token, bool _isNative, uint32 _startTimestamp, uint32 _endTimestamp, uint256 _rewardPerSec ) external payable onlyRewardAdder { _startTimestamp = getRoundedTimestamp(_startTimestamp); _endTimestamp = getRoundedTimestamp(_endTimestamp); require(_endTimestamp > _startTimestamp, "Rewarder: invalid end timestamp"); require(_rewardPerSec > 0, "Rewarder: invalid reward per sec"); uint256 timeRange = _endTimestamp - _startTimestamp; uint256 totalRewards = timeRange * _rewardPerSec; if (!_isNative) { token.safeTransferFrom( msg.sender, address(this), totalRewards ); } else { require( msg.value >= totalRewards, "add reward info: not enough funds to transfer" ); } rewardInfo.push( RewardInfo({ token: token, isNative: _isNative, startTimestamp: _startTimestamp, endTimestamp: _endTimestamp, rewardPerSec: _rewardPerSec }) ); if(rewardStartTime == 0 ) { // set the first reward time rewardStartTime = _startTimestamp; } emit AddRewardInfo(address(token), _isNative, _startTimestamp, _endTimestamp, _rewardPerSec); } function setLastReportedTimestamp(uint32 _newLastReportedTimestamp) external onlyOperator { lastRewardUpdateTime = getRoundedTimestamp(_newLastReportedTimestamp); } function reportPeriodElapsed() public view returns (bool) { if (getRoundedTimestamp(uint32(block.timestamp)) >= lastRewardUpdateTime + EPOCH_DURATION ) { return true; } } function rewardInfoLength() public view returns (uint256) { return rewardInfo.length; } function lastRewardTimestamp() public view returns (uint32) { if (lastRewardUpdateTime == 0 ) { return rewardStartTime; } else { return lastRewardUpdateTime; } } function getRoundedTimestamp(uint32 timestamp) public pure returns (uint32) { return (timestamp / EPOCH_DURATION) * EPOCH_DURATION; } function _isRewardLiveBetweenTimestamps( RewardInfo storage reward, uint32 roundedStartTimestamp, uint32 roundedEndTimestamp ) internal view returns (bool) { uint256 rewardEpochStart = reward.startTimestamp; return (reward.endTimestamp > roundedStartTimestamp && rewardEpochStart < roundedEndTimestamp); } function getRewardForNextEpoch() external view returns (RewardInfo[] memory) { uint32 roundedTimestamp = getRoundedTimestamp(lastRewardTimestamp()); return _getRewardsBetweenTimestamps(roundedTimestamp, roundedTimestamp + EPOCH_DURATION); } function getActiveRewards() external view returns (RewardInfo[] memory) { uint32 roundedTimestamp = getRoundedTimestamp(uint32(block.timestamp)); return _getRewardsBetweenTimestamps(roundedTimestamp, roundedTimestamp + EPOCH_DURATION); } function getRewardForTimestamp( uint32 epoch ) external view returns (RewardInfo[] memory) { uint32 roundedTimestamp = getRoundedTimestamp(epoch); return _getRewardsBetweenTimestamps(roundedTimestamp, roundedTimestamp + EPOCH_DURATION); } function getRewardsBetweenEpochs( uint32 startTimestamp, uint32 endTimestamp ) external view returns (RewardInfo[] memory) { return _getRewardsBetweenTimestamps(getRoundedTimestamp(startTimestamp), getRoundedTimestamp(endTimestamp)); } function getRewardsAfterEpoch( uint32 startTimestamp ) external view returns (RewardInfo[] memory) { return _getRewardsBetweenTimestamps(getRoundedTimestamp(startTimestamp), type(uint32).max); } function _getRewardsBetweenTimestamps( uint32 startTimestamp, uint32 endTimestamp ) public view returns (RewardInfo[] memory) { uint256 length; uint256 rewardLength = rewardInfo.length; RewardInfo[] memory activeRewards = new RewardInfo[](rewardLength); for (uint32 i; i < rewardLength; ) { RewardInfo storage reward = rewardInfo[i]; if ( _isRewardLiveBetweenTimestamps(reward, startTimestamp, endTimestamp) ) { activeRewards[length] = reward; length += 1; } unchecked { ++i; } } RewardInfo[] memory activeRewardsFinal = new RewardInfo[](length); for (uint32 i; i < length; ) { activeRewardsFinal[i] = activeRewards[i]; unchecked { ++i; } } return activeRewardsFinal; } function _getTokenData( IERC20Metadata token, address pool ) internal view returns (TokenData memory data) { data.addr = address(token); data.decimals = token.decimals(); data.symbol = token.symbol(); data.poolBalance = token.balanceOf(pool); } function version() external view virtual returns (uint8) { return 5; } function addTokens( IERC20 token, bool _isNative, uint256 _amount ) external payable onlyRewardAdder { if (!_isNative) { token.safeTransferFrom( msg.sender, address(this), _amount ); } else { require( msg.value >= _amount, "add reward info: not enough funds to transfer" ); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; interface IAlgebraPool { function token0() external view returns (address); function token1() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "./IRewarder.sol"; interface IRewardRegistry { // Events event PoolAdded(address indexed poolAddress, address indexed rewarder); // Functions function initialize() external; function isTrutedUpdater(address _account) external view returns (bool); function isOperator(address _account) external view returns (bool); function addPool(address poolAddress, IRewarder rewarder) external; function pausePool(uint256 poolId) external; function unpausePool(uint256 poolId) external; function setPoolRewarder(uint256 poolId, IRewarder rewarder) external; function setPoolPositionManager(address poolAddress, uint256 positionManagerId, address vaultAddress) external; function addPositionManager(string memory positionManager) external; function getPositionManager(uint256 positionManagerId) external view returns (string memory); function getPoolRewarder(uint256 poolId) external view returns (IRewarder); function getPoolAddress(uint256 poolId) external view returns (address); function getPoolId(address poolAddress) external view returns (uint256); function isPoolPaused(uint256 poolId) external view returns (bool); function getPoolCount() external view returns (uint256); function getPositionManagerCount() external view returns (uint256); function getPoolPMVaultByAddress(address poolAddress, uint256 positionManagerId) external view returns (address); function getPoolPMVaultById(uint256 poolId, uint256 positionManagerId) external view returns (address); function hasRole(bytes32 role, address account) external view returns (bool); function ADMIN_ROLE() external pure returns (bytes32); function OPERATOR_ROLE() external pure returns (bytes32); function TRUSTED_UPDATER_ROLE() external pure returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (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() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ 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 Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle 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++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; 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 proxied contracts do not make use of 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. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * 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 prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.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 SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 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( IERC20 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( IERC20 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( IERC20 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)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @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(IERC20 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"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IRewarder { function initialize(address _registry) external; function addRewardInfo( IERC20 token, bool _isNative, uint32 _startTimestamp, uint32 _endTimestamp, uint256 _rewardPerSec ) external payable; function getRoundedTimestamp(uint32 timestamp) external view returns (uint32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"InvalidLengths","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"bool","name":"isNative","type":"bool"},{"indexed":false,"internalType":"uint256","name":"startTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardPerSec","type":"uint256"}],"name":"AddRewardInfo","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"positionId","type":"uint256"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"indexed":false,"internalType":"string","name":"ipfsHash","type":"string"},{"indexed":false,"internalType":"uint256","name":"rewardTime","type":"uint256"}],"name":"TreeUpdated","type":"event"},{"inputs":[],"name":"EPOCH_DURATION","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_REGISTRY","outputs":[{"internalType":"contract IRewardRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"startTimestamp","type":"uint32"},{"internalType":"uint32","name":"endTimestamp","type":"uint32"}],"name":"_getRewardsBetweenTimestamps","outputs":[{"components":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"bool","name":"isNative","type":"bool"},{"internalType":"uint32","name":"startTimestamp","type":"uint32"},{"internalType":"uint32","name":"endTimestamp","type":"uint32"},{"internalType":"uint256","name":"rewardPerSec","type":"uint256"}],"internalType":"struct RewarderV4.RewardInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"bool","name":"_isNative","type":"bool"},{"internalType":"uint32","name":"_startTimestamp","type":"uint32"},{"internalType":"uint32","name":"_endTimestamp","type":"uint32"},{"internalType":"uint256","name":"_rewardPerSec","type":"uint256"}],"name":"addRewardInfo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"bool","name":"_isNative","type":"bool"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"position","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"isNative","type":"bool"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"internalType":"struct RewarderV4.ClaimData[]","name":"claims","type":"tuple[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint48","name":"timestamp","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getActiveRewards","outputs":[{"components":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"bool","name":"isNative","type":"bool"},{"internalType":"uint32","name":"startTimestamp","type":"uint32"},{"internalType":"uint32","name":"endTimestamp","type":"uint32"},{"internalType":"uint256","name":"rewardPerSec","type":"uint256"}],"internalType":"struct RewarderV4.RewardInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardForNextEpoch","outputs":[{"components":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"bool","name":"isNative","type":"bool"},{"internalType":"uint32","name":"startTimestamp","type":"uint32"},{"internalType":"uint32","name":"endTimestamp","type":"uint32"},{"internalType":"uint256","name":"rewardPerSec","type":"uint256"}],"internalType":"struct RewarderV4.RewardInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"epoch","type":"uint32"}],"name":"getRewardForTimestamp","outputs":[{"components":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"bool","name":"isNative","type":"bool"},{"internalType":"uint32","name":"startTimestamp","type":"uint32"},{"internalType":"uint32","name":"endTimestamp","type":"uint32"},{"internalType":"uint256","name":"rewardPerSec","type":"uint256"}],"internalType":"struct RewarderV4.RewardInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"startTimestamp","type":"uint32"}],"name":"getRewardsAfterEpoch","outputs":[{"components":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"bool","name":"isNative","type":"bool"},{"internalType":"uint32","name":"startTimestamp","type":"uint32"},{"internalType":"uint32","name":"endTimestamp","type":"uint32"},{"internalType":"uint256","name":"rewardPerSec","type":"uint256"}],"internalType":"struct RewarderV4.RewardInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"startTimestamp","type":"uint32"},{"internalType":"uint32","name":"endTimestamp","type":"uint32"}],"name":"getRewardsBetweenEpochs","outputs":[{"components":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"bool","name":"isNative","type":"bool"},{"internalType":"uint32","name":"startTimestamp","type":"uint32"},{"internalType":"uint32","name":"endTimestamp","type":"uint32"},{"internalType":"uint256","name":"rewardPerSec","type":"uint256"}],"internalType":"struct RewarderV4.RewardInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"timestamp","type":"uint32"}],"name":"getRoundedTimestamp","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"contract IRewardRegistry","name":"_registry","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastRewardTimestamp","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardUpdateTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTree","outputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"string","name":"ipfsHash","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTreeUpdate","outputs":[{"internalType":"uint48","name":"","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"isNative","type":"bool"}],"name":"recover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reportPeriodElapsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardInfo","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"bool","name":"isNative","type":"bool"},{"internalType":"uint32","name":"startTimestamp","type":"uint32"},{"internalType":"uint32","name":"endTimestamp","type":"uint32"},{"internalType":"uint256","name":"rewardPerSec","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardInfoLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardStartTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_newLastReportedTimestamp","type":"uint32"}],"name":"setLastReportedTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tree","outputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"string","name":"ipfsHash","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"string","name":"_ipfsHash","type":"string"}],"name":"updateTree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506148ed806100206000396000f3fe6080604052600436106101b75760003560e01c80636d7d76f6116100ec578063b3830a671161008a578063cce80e7a11610064578063cce80e7a1461062e578063f8077fae1461065a578063fd54b22814610685578063fd91fa4d146106b1576101b7565b8063b3830a67146105b1578063c4d66de8146105dc578063c640a20614610605576101b7565b806381d472e3116100c657806381d472e3146104e35780639fae341f1461050c578063a70b9f0c14610549578063b27d9cf814610574576101b7565b80636d7d76f61461043c5780637279de9f1461046557806381a00f83146104a2576101b7565b80632fdf5524116101595780634fe29d69116101335780634fe29d691461039057806354fd4d50146103bb5780635e549a0e146103e65780636ce19c6614610411576101b7565b80632fdf5524146102eb5780633cf18b3a146103285780634959065714610365576101b7565b806319fdf59a1161019557806319fdf59a1461022e578063270f8fc6146102575780632bd1755a146102955780632cc138be146102c0576101b7565b80630b6fe1ce146101bc5780630c26e859146101e757806310ee535f14610203575b600080fd5b3480156101c857600080fd5b506101d16106cd565b6040516101de9190612833565b60405180910390f35b61020160048036038101906101fc9190612966565b610716565b005b34801561020f57600080fd5b50610218610b67565b6040516102259190612b84565b60405180910390f35b34801561023a57600080fd5b5061025560048036038101906102509190612c41565b610b93565b005b34801561026357600080fd5b5061027e60048036038101906102799190612ccd565b610fb5565b60405161028c929190612d50565b60405180910390f35b3480156102a157600080fd5b506102aa611005565b6040516102b79190612d88565b60405180910390f35b3480156102cc57600080fd5b506102d561101b565b6040516102e29190612d88565b60405180910390f35b3480156102f757600080fd5b50610312600480360381019061030d9190612da3565b611031565b60405161031f9190612d88565b60405180910390f35b34801561033457600080fd5b5061034f600480360381019061034a9190612dd0565b611053565b60405161035c9190612b84565b60405180910390f35b34801561037157600080fd5b5061037a6112da565b6040516103879190612e1f565b60405180910390f35b34801561039c57600080fd5b506103a56112e7565b6040516103b29190612e3a565b60405180910390f35b3480156103c757600080fd5b506103d06112f4565b6040516103dd9190612e71565b60405180910390f35b3480156103f257600080fd5b506103fb6112fd565b6040516104089190612e8c565b60405180910390f35b34801561041d57600080fd5b50610426611315565b6040516104339190612b84565b60405180910390f35b34801561044857600080fd5b50610463600480360381019061045e9190612efd565b611348565b005b34801561047157600080fd5b5061048c60048036038101906104879190612da3565b61179e565b6040516104999190612b84565b60405180910390f35b3480156104ae57600080fd5b506104c960048036038101906104c49190612f4a565b6117bd565b6040516104da959493929190612f86565b60405180910390f35b3480156104ef57600080fd5b5061050a60048036038101906105059190612da3565b611850565b005b34801561051857600080fd5b50610533600480360381019061052e9190612da3565b611957565b6040516105409190612b84565b60405180910390f35b34801561055557600080fd5b5061055e611985565b60405161056b9190612d88565b60405180910390f35b34801561058057600080fd5b5061059b60048036038101906105969190612dd0565b61198b565b6040516105a89190612b84565b60405180910390f35b3480156105bd57600080fd5b506105c66119af565b6040516105d39190612ffa565b60405180910390f35b3480156105e857600080fd5b5061060360048036038101906105fe9190613053565b6119d5565b005b34801561061157600080fd5b5061062c60048036038101906106279190613080565b611bbc565b005b34801561063a57600080fd5b50610643611f07565b604051610651929190613177565b60405180910390f35b34801561066657600080fd5b5061066f611fa1565b60405161067c9190612d88565b60405180910390f35b34801561069157600080fd5b5061069a611ff5565b6040516106a8929190613177565b60405180910390f35b6106cb60048036038101906106c691906131a7565b61208f565b005b6000610e10603a60049054906101000a900463ffffffff166106ef9190613229565b63ffffffff166106fe42611031565b63ffffffff16106107125760019050610713565b5b90565b603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d70f7ae336040518263ffffffff1660e01b81526004016107719190613270565b602060405180830381865afa15801561078e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b291906132a0565b8061080a5750603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610849576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084090613319565b60405180910390fd5b61085283611031565b925061085d82611031565b91508263ffffffff168263ffffffff16116108ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a490613385565b60405180910390fd5b600081116108f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e7906133f1565b60405180910390fd5b600083836108fe9190613411565b63ffffffff169050600082826109149190613449565b90508561094d576109483330838a73ffffffffffffffffffffffffffffffffffffffff16612242909392919063ffffffff16565b610991565b80341015610990576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610987906134fd565b60405180910390fd5b5b60396040518060a001604052808973ffffffffffffffffffffffffffffffffffffffff16815260200188151581526020018763ffffffff1681526020018663ffffffff16815260200185815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548160ff02191690831515021790555060408201518160000160156101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160196101000a81548163ffffffff021916908363ffffffff1602179055506080820151816001015550506000603a60009054906101000a900463ffffffff1663ffffffff1603610b0a5784603a60006101000a81548163ffffffff021916908363ffffffff1602179055505b8673ffffffffffffffffffffffffffffffffffffffff167f2319c65f98985fa3c7e33e0c4f0a05eb676fcf2c5e262ec4a1113e4fe4a5f7ad87878787604051610b56949392919061354e565b60405180910390a250505050505050565b60606000610b7442611031565b9050610b8d81610e1083610b889190613229565b611053565b91505090565b603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630b8cdee6336040518263ffffffff1660e01b8152600401610bee9190613270565b602060405180830381865afa158015610c0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2f91906132a0565b610c6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c65906135df565b60405180910390fd5b6000801b8303610cb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610caa9061364b565b60405180910390fd5b604051602001610cc29061369c565b604051602081830303815290604052805190602001208282604051602001610ceb9291906136e5565b6040516020818303038152906040528051906020012003610d41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d389061374a565b60405180910390fd5b6033600001548303610d88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7f906137b6565b60405180910390fd5b6033600101604051602001610d9d91906138ce565b604051602081830303815290604052805190602001208282604051602001610dc69291906136e5565b6040516020818303038152906040528051906020012003610e1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1390613931565b60405180910390fd5b610e246106cd565b610e63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5a906139c3565b60405180910390fd5b603360356000820154816000015560018201816001019081610e859190613bb5565b50905050604051806040016040528084815260200183838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506033600082015181600001556020820151816001019081610f039190613c9d565b5090505042603760146101000a81548165ffffffffffff021916908365ffffffffffff160217905550610e10610f37611fa1565b610f419190613229565b603a60046101000a81548163ffffffff021916908363ffffffff1602179055507f4d38e4594bffc361e9efcf4ec7794cce208e445b78acc641b67449e8aed23840838383603a60049054906101000a900463ffffffff16604051610fa89493929190613d9c565b60405180910390a1505050565b603860205282600052604060002060205281600052604060002060205280600052604060002060009250925050508060000154908060010160009054906101000a900465ffffffffffff16905082565b603a60049054906101000a900463ffffffff1681565b603a60009054906101000a900463ffffffff1681565b6000610e1080836110429190613e0b565b61104c9190613e3c565b9050919050565b6060600080603980549050905060008167ffffffffffffffff81111561107c5761107b6139f9565b5b6040519080825280602002602001820160405280156110b557816020015b6110a26127c5565b81526020019060019003908161109a5790505b50905060005b828163ffffffff16101561121257600060398263ffffffff16815481106110e5576110e4613e79565b5b906000526020600020906002020190506111008189896122cb565b1561120657806040518060a00160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900460ff161515151581526020016000820160159054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160199054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016001820154815250508386815181106111eb576111ea613e79565b5b60200260200101819052506001856112039190613ea8565b94505b816001019150506110bb565b5060008367ffffffffffffffff81111561122f5761122e6139f9565b5b60405190808252806020026020018201604052801561126857816020015b6112556127c5565b81526020019060019003908161124d5790505b50905060005b848163ffffffff1610156112cc57828163ffffffff168151811061129557611294613e79565b5b6020026020010151828263ffffffff16815181106112b6576112b5613e79565b5b602002602001018190525080600101905061126e565b508094505050505092915050565b6000603360000154905090565b6000603980549050905090565b60006005905090565b603760149054906101000a900465ffffffffffff1681565b60606000611329611324611fa1565b611031565b905061134281610e108361133d9190613229565b611053565b91505090565b611350612329565b6000801b6033600001540361139a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113919061364b565b60405180910390fd5b600082829050905060005b8181101561179057368484838181106113c1576113c0613e79565b5b90506020028101906113d39190613eeb565b905060008160000160208101906113ea9190613f13565b9050600082602001359050600083604001602081019061140a9190613f13565b9050600084606001359050600085608001602081019061142a9190613f40565b9050366000878060a0019061143f9190613f6d565b9150915061149a6114538888888888612378565b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506123b4565b6114d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d09061401c565b60405180910390fd5b6000603860008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600088815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015485611577919061403c565b905060405180604001604052808681526020014265ffffffffffff16815250603860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600089815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000015560208201518160010160006101000a81548165ffffffffffff021916908365ffffffffffff16021790555090505083156117135760008873ffffffffffffffffffffffffffffffffffffffff16826040516116879061409e565b60006040518083038185875af1925050503d80600081146116c4576040519150601f19603f3d011682016040523d82523d6000602084013e6116c9565b606091505b505090508061170d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611704906140ff565b60405180910390fd5b5061173f565b61173e88828873ffffffffffffffffffffffffffffffffffffffff166123d09092919063ffffffff16565b5b7f8dab6d35466ca3cba614bc5b262979b277949786977e81107f375f7e39f7734a88888884604051611774949392919061411f565b60405180910390a18960010199505050505050505050506113a5565b505061179a612456565b5050565b60606117b66117ac83611031565b63ffffffff611053565b9050919050565b603981815481106117cd57600080fd5b90600052602060002090600202016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900460ff16908060000160159054906101000a900463ffffffff16908060000160199054906101000a900463ffffffff16908060010154905085565b603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d70f7ae336040518263ffffffff1660e01b81526004016118ab9190613270565b602060405180830381865afa1580156118c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ec91906132a0565b61192b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611922906141b0565b60405180910390fd5b61193481611031565b603a60046101000a81548163ffffffff021916908363ffffffff16021790555050565b6060600061196483611031565b905061197d81610e10836119789190613229565b611053565b915050919050565b610e1081565b60606119a761199984611031565b6119a284611031565b611053565b905092915050565b603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060019054906101000a900460ff16159050808015611a065750600160008054906101000a900460ff1660ff16105b80611a335750611a153061245f565b158015611a325750600160008054906101000a900460ff1660ff16145b5b611a72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6990614242565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015611aaf576001600060016101000a81548160ff0219169083151502179055505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b15906142d4565b60405180910390fd5b81603760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508015611bb85760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051611baf919061432f565b60405180910390a15b5050565b603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d70f7ae336040518263ffffffff1660e01b8152600401611c179190613270565b602060405180830381865afa158015611c34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5891906132a0565b611c97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8e906141b0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611d06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cfd90614396565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611d75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6c90614402565b60405180910390fd5b60008211611db8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611daf9061446e565b60405180910390fd5b8015611e705760008373ffffffffffffffffffffffffffffffffffffffff1683604051611de49061409e565b60006040518083038185875af1925050503d8060008114611e21576040519150601f19603f3d011682016040523d82523d6000602084013e611e26565b606091505b5050905080611e6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e61906140ff565b60405180910390fd5b50611e9c565b611e9b83838673ffffffffffffffffffffffffffffffffffffffff166123d09092919063ffffffff16565b5b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167ffff3b3844276f57024e0b42afec1a37f75db36511e43819a4f2a63ab7862b64884604051611ef99190612e3a565b60405180910390a350505050565b6035806000015490806001018054611f1e90613805565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4a90613805565b8015611f975780601f10611f6c57610100808354040283529160200191611f97565b820191906000526020600020905b815481529060010190602001808311611f7a57829003601f168201915b5050505050905082565b600080603a60049054906101000a900463ffffffff1663ffffffff1603611fdc57603a60009054906101000a900463ffffffff169050611ff2565b603a60049054906101000a900463ffffffff1690505b90565b603380600001549080600101805461200c90613805565b80601f016020809104026020016040519081016040528092919081815260200182805461203890613805565b80156120855780601f1061205a57610100808354040283529160200191612085565b820191906000526020600020905b81548152906001019060200180831161206857829003601f168201915b5050505050905082565b603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d70f7ae336040518263ffffffff1660e01b81526004016120ea9190613270565b602060405180830381865afa158015612107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212b91906132a0565b806121835750603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6121c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b990613319565b60405180910390fd5b816121f9576121f43330838673ffffffffffffffffffffffffffffffffffffffff16612242909392919063ffffffff16565b61223d565b8034101561223c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612233906134fd565b60405180910390fd5b5b505050565b6122c5846323b872dd60e01b8585856040516024016122639392919061448e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612482565b50505050565b6000808460000160159054906101000a900463ffffffff1663ffffffff1690508363ffffffff168560000160199054906101000a900463ffffffff1663ffffffff1611801561231f57508263ffffffff1681105b9150509392505050565b60026001540361236e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236590614511565b60405180910390fd5b6002600181905550565b600085858585856040516020016123939594939291906145e2565b60405160208183030381529060405280519060200120905095945050505050565b60006123c8826123c26112da565b85612549565b905092915050565b6124518363a9059cbb60e01b84846040516024016123ef929190614641565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612482565b505050565b60018081905550565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60006124e4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166125609092919063ffffffff16565b9050600081511115612544578080602001905181019061250491906132a0565b612543576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253a906146dc565b60405180910390fd5b5b505050565b6000826125568584612578565b1490509392505050565b606061256f84846000856125ce565b90509392505050565b60008082905060005b84518110156125c3576125ae828683815181106125a1576125a0613e79565b5b602002602001015161269b565b915080806125bb906146fc565b915050612581565b508091505092915050565b606082471015612613576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260a906147b6565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161263c9190614812565b60006040518083038185875af1925050503d8060008114612679576040519150601f19603f3d011682016040523d82523d6000602084013e61267e565b606091505b509150915061268f878383876126c6565b92505050949350505050565b60008183106126b3576126ae828461273b565b6126be565b6126bd838361273b565b5b905092915050565b60608315612728576000835103612720576126e085612752565b61271f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271690614875565b60405180910390fd5b5b829050612733565b6127328383612775565b5b949350505050565b600082600052816020526040600020905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156127885781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127bc9190614895565b60405180910390fd5b6040518060a00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600015158152602001600063ffffffff168152602001600063ffffffff168152602001600081525090565b60008115159050919050565b61282d81612818565b82525050565b60006020820190506128486000830184612824565b92915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061288382612858565b9050919050565b600061289582612878565b9050919050565b6128a58161288a565b81146128b057600080fd5b50565b6000813590506128c28161289c565b92915050565b6128d181612818565b81146128dc57600080fd5b50565b6000813590506128ee816128c8565b92915050565b600063ffffffff82169050919050565b61290d816128f4565b811461291857600080fd5b50565b60008135905061292a81612904565b92915050565b6000819050919050565b61294381612930565b811461294e57600080fd5b50565b6000813590506129608161293a565b92915050565b600080600080600060a086880312156129825761298161284e565b5b6000612990888289016128b3565b95505060206129a1888289016128df565b94505060406129b28882890161291b565b93505060606129c38882890161291b565b92505060806129d488828901612951565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000819050919050565b6000612a32612a2d612a2884612858565b612a0d565b612858565b9050919050565b6000612a4482612a17565b9050919050565b6000612a5682612a39565b9050919050565b612a6681612a4b565b82525050565b612a7581612818565b82525050565b612a84816128f4565b82525050565b612a9381612930565b82525050565b60a082016000820151612aaf6000850182612a5d565b506020820151612ac26020850182612a6c565b506040820151612ad56040850182612a7b565b506060820151612ae86060850182612a7b565b506080820151612afb6080850182612a8a565b50505050565b6000612b0d8383612a99565b60a08301905092915050565b6000602082019050919050565b6000612b31826129e1565b612b3b81856129ec565b9350612b46836129fd565b8060005b83811015612b77578151612b5e8882612b01565b9750612b6983612b19565b925050600181019050612b4a565b5085935050505092915050565b60006020820190508181036000830152612b9e8184612b26565b905092915050565b6000819050919050565b612bb981612ba6565b8114612bc457600080fd5b50565b600081359050612bd681612bb0565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612c0157612c00612bdc565b5b8235905067ffffffffffffffff811115612c1e57612c1d612be1565b5b602083019150836001820283011115612c3a57612c39612be6565b5b9250929050565b600080600060408486031215612c5a57612c5961284e565b5b6000612c6886828701612bc7565b935050602084013567ffffffffffffffff811115612c8957612c88612853565b5b612c9586828701612beb565b92509250509250925092565b612caa81612878565b8114612cb557600080fd5b50565b600081359050612cc781612ca1565b92915050565b600080600060608486031215612ce657612ce561284e565b5b6000612cf486828701612cb8565b9350506020612d0586828701612951565b9250506040612d1686828701612cb8565b9150509250925092565b612d2981612930565b82525050565b600065ffffffffffff82169050919050565b612d4a81612d2f565b82525050565b6000604082019050612d656000830185612d20565b612d726020830184612d41565b9392505050565b612d82816128f4565b82525050565b6000602082019050612d9d6000830184612d79565b92915050565b600060208284031215612db957612db861284e565b5b6000612dc78482850161291b565b91505092915050565b60008060408385031215612de757612de661284e565b5b6000612df58582860161291b565b9250506020612e068582860161291b565b9150509250929050565b612e1981612ba6565b82525050565b6000602082019050612e346000830184612e10565b92915050565b6000602082019050612e4f6000830184612d20565b92915050565b600060ff82169050919050565b612e6b81612e55565b82525050565b6000602082019050612e866000830184612e62565b92915050565b6000602082019050612ea16000830184612d41565b92915050565b60008083601f840112612ebd57612ebc612bdc565b5b8235905067ffffffffffffffff811115612eda57612ed9612be1565b5b602083019150836020820283011115612ef657612ef5612be6565b5b9250929050565b60008060208385031215612f1457612f1361284e565b5b600083013567ffffffffffffffff811115612f3257612f31612853565b5b612f3e85828601612ea7565b92509250509250929050565b600060208284031215612f6057612f5f61284e565b5b6000612f6e84828501612951565b91505092915050565b612f8081612a4b565b82525050565b600060a082019050612f9b6000830188612f77565b612fa86020830187612824565b612fb56040830186612d79565b612fc26060830185612d79565b612fcf6080830184612d20565b9695505050505050565b6000612fe482612a39565b9050919050565b612ff481612fd9565b82525050565b600060208201905061300f6000830184612feb565b92915050565b600061302082612878565b9050919050565b61303081613015565b811461303b57600080fd5b50565b60008135905061304d81613027565b92915050565b6000602082840312156130695761306861284e565b5b60006130778482850161303e565b91505092915050565b6000806000806080858703121561309a5761309961284e565b5b60006130a887828801612cb8565b94505060206130b987828801612cb8565b93505060406130ca87828801612951565b92505060606130db878288016128df565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b60005b83811015613121578082015181840152602081019050613106565b60008484015250505050565b6000601f19601f8301169050919050565b6000613149826130e7565b61315381856130f2565b9350613163818560208601613103565b61316c8161312d565b840191505092915050565b600060408201905061318c6000830185612e10565b818103602083015261319e818461313e565b90509392505050565b6000806000606084860312156131c0576131bf61284e565b5b60006131ce868287016128b3565b93505060206131df868287016128df565b92505060406131f086828701612951565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613234826128f4565b915061323f836128f4565b9250828201905063ffffffff81111561325b5761325a6131fa565b5b92915050565b61326a81612878565b82525050565b60006020820190506132856000830184613261565b92915050565b60008151905061329a816128c8565b92915050565b6000602082840312156132b6576132b561284e565b5b60006132c48482850161328b565b91505092915050565b7f52455741524445523a204e4f545f5245574152445f4144444552000000000000600082015250565b6000613303601a836130f2565b915061330e826132cd565b602082019050919050565b60006020820190508181036000830152613332816132f6565b9050919050565b7f52657761726465723a20696e76616c696420656e642074696d657374616d7000600082015250565b600061336f601f836130f2565b915061337a82613339565b602082019050919050565b6000602082019050818103600083015261339e81613362565b9050919050565b7f52657761726465723a20696e76616c6964207265776172642070657220736563600082015250565b60006133db6020836130f2565b91506133e6826133a5565b602082019050919050565b6000602082019050818103600083015261340a816133ce565b9050919050565b600061341c826128f4565b9150613427836128f4565b9250828203905063ffffffff811115613443576134426131fa565b5b92915050565b600061345482612930565b915061345f83612930565b925082820261346d81612930565b91508282048414831517613484576134836131fa565b5b5092915050565b7f6164642072657761726420696e666f3a206e6f7420656e6f7567682066756e6460008201527f7320746f207472616e7366657200000000000000000000000000000000000000602082015250565b60006134e7602d836130f2565b91506134f28261348b565b604082019050919050565b60006020820190508181036000830152613516816134da565b9050919050565b600061353861353361352e846128f4565b612a0d565b612930565b9050919050565b6135488161351d565b82525050565b60006080820190506135636000830187612824565b613570602083018661353f565b61357d604083018561353f565b61358a6060830184612d20565b95945050505050565b7f52455741524445523a204e4f545f545255535445445f53454e44455200000000600082015250565b60006135c9601c836130f2565b91506135d482613593565b602082019050919050565b600060208201905081810360008301526135f8816135bc565b9050919050565b7f52657761726465723a206d65726b6c6520726f6f74206973207a65726f000000600082015250565b6000613635601d836130f2565b9150613640826135ff565b602082019050919050565b6000602082019050818103600083015261366481613628565b9050919050565b600081905092915050565b50565b600061368660008361366b565b915061369182613676565b600082019050919050565b60006136a782613679565b9150819050919050565b82818337600083830152505050565b60006136cc838561366b565b93506136d98385846136b1565b82840190509392505050565b60006136f28284866136c0565b91508190509392505050565b7f52657761726465723a20697066732068617368206973207a65726f0000000000600082015250565b6000613734601b836130f2565b915061373f826136fe565b602082019050919050565b6000602082019050818103600083015261376381613727565b9050919050565b7f52657761726465723a206d65726b6c6520726f6f742069732073616d65000000600082015250565b60006137a0601d836130f2565b91506137ab8261376a565b602082019050919050565b600060208201905081810360008301526137cf81613793565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061381d57607f821691505b6020821081036138305761382f6137d6565b5b50919050565b60008190508160005260206000209050919050565b6000815461385881613805565b613862818661366b565b9450600182166000811461387d5760018114613892576138c5565b60ff19831686528115158202860193506138c5565b61389b85613836565b60005b838110156138bd5781548189015260018201915060208101905061389e565b838801955050505b50505092915050565b60006138da828461384b565b915081905092915050565b7f52657761726465723a206970667320686173682069732073616d650000000000600082015250565b600061391b601b836130f2565b9150613926826138e5565b602082019050919050565b6000602082019050818103600083015261394a8161390e565b9050919050565b7f52657761726465723a207761697420756e74696c207265706f7274656420457060008201527f6f636820697320656c6170736564000000000000000000000000000000000000602082015250565b60006139ad602e836130f2565b91506139b882613951565b604082019050919050565b600060208201905081810360008301526139dc816139a0565b9050919050565b6000815490506139f281613805565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006020601f8301049050919050565b600082821b905092915050565b600060088302613a757fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613a38565b613a7f8683613a38565b95508019841693508086168417925050509392505050565b6000613ab2613aad613aa884612930565b612a0d565b612930565b9050919050565b6000819050919050565b613acc83613a97565b613ae0613ad882613ab9565b848454613a45565b825550505050565b600090565b613af5613ae8565b613b00818484613ac3565b505050565b5b81811015613b2457613b19600082613aed565b600181019050613b06565b5050565b601f821115613b6957613b3a81613836565b613b4384613a28565b81016020851015613b52578190505b613b66613b5e85613a28565b830182613b05565b50505b505050565b600082821c905092915050565b6000613b8c60001984600802613b6e565b1980831691505092915050565b6000613ba58383613b7b565b9150826002028217905092915050565b818103613bc3575050613c9b565b613bcc826139e3565b67ffffffffffffffff811115613be557613be46139f9565b5b613bef8254613805565b613bfa828285613b28565b6000601f831160018114613c295760008415613c17578287015490505b613c218582613b99565b865550613c94565b601f198416613c3787613836565b9650613c4286613836565b60005b82811015613c6a57848901548255600182019150600185019450602081019050613c45565b86831015613c875784890154613c83601f891682613b7b565b8355505b6001600288020188555050505b5050505050505b565b613ca6826130e7565b67ffffffffffffffff811115613cbf57613cbe6139f9565b5b613cc98254613805565b613cd4828285613b28565b600060209050601f831160018114613d075760008415613cf5578287015190505b613cff8582613b99565b865550613d67565b601f198416613d1586613836565b60005b82811015613d3d57848901518255600182019150602085019450602081019050613d18565b86831015613d5a5784890151613d56601f891682613b7b565b8355505b6001600288020188555050505b505050505050565b6000613d7b83856130f2565b9350613d888385846136b1565b613d918361312d565b840190509392505050565b6000606082019050613db16000830187612e10565b8181036020830152613dc4818587613d6f565b9050613dd3604083018461353f565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e16826128f4565b9150613e21836128f4565b925082613e3157613e30613ddc565b5b828204905092915050565b6000613e47826128f4565b9150613e52836128f4565b9250828202613e60816128f4565b9150808214613e7257613e716131fa565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613eb382612930565b9150613ebe83612930565b9250828201905080821115613ed657613ed56131fa565b5b92915050565b600080fd5b600080fd5b600080fd5b60008235600160c003833603038112613f0757613f06613edc565b5b80830191505092915050565b600060208284031215613f2957613f2861284e565b5b6000613f3784828501612cb8565b91505092915050565b600060208284031215613f5657613f5561284e565b5b6000613f64848285016128df565b91505092915050565b60008083356001602003843603038112613f8a57613f89613edc565b5b80840192508235915067ffffffffffffffff821115613fac57613fab613ee1565b5b602083019250602082023603831315613fc857613fc7613ee6565b5b509250929050565b7f52657761726465723a20696e76616c69642070726f6f66000000000000000000600082015250565b60006140066017836130f2565b915061401182613fd0565b602082019050919050565b6000602082019050818103600083015261403581613ff9565b9050919050565b600061404782612930565b915061405283612930565b925082820390508181111561406a576140696131fa565b5b92915050565b600081905092915050565b6000614088600083614070565b915061409382613676565b600082019050919050565b60006140a98261407b565b9150819050919050565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b60006140e9600f836130f2565b91506140f4826140b3565b602082019050919050565b60006020820190508181036000830152614118816140dc565b9050919050565b60006080820190506141346000830187613261565b6141416020830186612d20565b61414e6040830185613261565b61415b6060830184612d20565b95945050505050565b7f52455741524445523a204e4f545f4f50455241544f5200000000000000000000600082015250565b600061419a6016836130f2565b91506141a582614164565b602082019050919050565b600060208201905081810360008301526141c98161418d565b9050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b600061422c602e836130f2565b9150614237826141d0565b604082019050919050565b6000602082019050818103600083015261425b8161421f565b9050919050565b7f52657761726465723a207265676973747279206973207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006142be6022836130f2565b91506142c982614262565b604082019050919050565b600060208201905081810360008301526142ed816142b1565b9050919050565b6000819050919050565b600061431961431461430f846142f4565b612a0d565b612e55565b9050919050565b614329816142fe565b82525050565b60006020820190506143446000830184614320565b92915050565b7f52657761726465723a20746f6b656e206973207a65726f206164647265737300600082015250565b6000614380601f836130f2565b915061438b8261434a565b602082019050919050565b600060208201905081810360008301526143af81614373565b9050919050565b7f52657761726465723a20746f206973207a65726f206164647265737300000000600082015250565b60006143ec601c836130f2565b91506143f7826143b6565b602082019050919050565b6000602082019050818103600083015261441b816143df565b9050919050565b7f52657761726465723a20616d6f756e74206973207a65726f0000000000000000600082015250565b60006144586018836130f2565b915061446382614422565b602082019050919050565b600060208201905081810360008301526144878161444b565b9050919050565b60006060820190506144a36000830186613261565b6144b06020830185613261565b6144bd6040830184612d20565b949350505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006144fb601f836130f2565b9150614506826144c5565b602082019050919050565b6000602082019050818103600083015261452a816144ee565b9050919050565b60008160601b9050919050565b600061454982614531565b9050919050565b600061455b8261453e565b9050919050565b61457361456e82612878565b614550565b82525050565b6000819050919050565b61459461458f82612930565b614579565b82525050565b60008160f81b9050919050565b60006145b28261459a565b9050919050565b60006145c4826145a7565b9050919050565b6145dc6145d782612818565b6145b9565b82525050565b60006145ee8288614562565b6014820191506145fe8287614583565b60208201915061460e8286614562565b60148201915061461e8285614583565b60208201915061462e82846145cb565b6001820191508190509695505050505050565b60006040820190506146566000830185613261565b6146636020830184612d20565b9392505050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006146c6602a836130f2565b91506146d18261466a565b604082019050919050565b600060208201905081810360008301526146f5816146b9565b9050919050565b600061470782612930565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614739576147386131fa565b5b600182019050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006147a06026836130f2565b91506147ab82614744565b604082019050919050565b600060208201905081810360008301526147cf81614793565b9050919050565b600081519050919050565b60006147ec826147d6565b6147f68185614070565b9350614806818560208601613103565b80840191505092915050565b600061481e82846147e1565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b600061485f601d836130f2565b915061486a82614829565b602082019050919050565b6000602082019050818103600083015261488e81614852565b9050919050565b600060208201905081810360008301526148af818461313e565b90509291505056fea2646970667358221220e599841e41b2afaa040d015fb04aac55c2444aef0a6594a2da2464e3db0769cb64736f6c63430008110033
Deployed Bytecode
0x6080604052600436106101b75760003560e01c80636d7d76f6116100ec578063b3830a671161008a578063cce80e7a11610064578063cce80e7a1461062e578063f8077fae1461065a578063fd54b22814610685578063fd91fa4d146106b1576101b7565b8063b3830a67146105b1578063c4d66de8146105dc578063c640a20614610605576101b7565b806381d472e3116100c657806381d472e3146104e35780639fae341f1461050c578063a70b9f0c14610549578063b27d9cf814610574576101b7565b80636d7d76f61461043c5780637279de9f1461046557806381a00f83146104a2576101b7565b80632fdf5524116101595780634fe29d69116101335780634fe29d691461039057806354fd4d50146103bb5780635e549a0e146103e65780636ce19c6614610411576101b7565b80632fdf5524146102eb5780633cf18b3a146103285780634959065714610365576101b7565b806319fdf59a1161019557806319fdf59a1461022e578063270f8fc6146102575780632bd1755a146102955780632cc138be146102c0576101b7565b80630b6fe1ce146101bc5780630c26e859146101e757806310ee535f14610203575b600080fd5b3480156101c857600080fd5b506101d16106cd565b6040516101de9190612833565b60405180910390f35b61020160048036038101906101fc9190612966565b610716565b005b34801561020f57600080fd5b50610218610b67565b6040516102259190612b84565b60405180910390f35b34801561023a57600080fd5b5061025560048036038101906102509190612c41565b610b93565b005b34801561026357600080fd5b5061027e60048036038101906102799190612ccd565b610fb5565b60405161028c929190612d50565b60405180910390f35b3480156102a157600080fd5b506102aa611005565b6040516102b79190612d88565b60405180910390f35b3480156102cc57600080fd5b506102d561101b565b6040516102e29190612d88565b60405180910390f35b3480156102f757600080fd5b50610312600480360381019061030d9190612da3565b611031565b60405161031f9190612d88565b60405180910390f35b34801561033457600080fd5b5061034f600480360381019061034a9190612dd0565b611053565b60405161035c9190612b84565b60405180910390f35b34801561037157600080fd5b5061037a6112da565b6040516103879190612e1f565b60405180910390f35b34801561039c57600080fd5b506103a56112e7565b6040516103b29190612e3a565b60405180910390f35b3480156103c757600080fd5b506103d06112f4565b6040516103dd9190612e71565b60405180910390f35b3480156103f257600080fd5b506103fb6112fd565b6040516104089190612e8c565b60405180910390f35b34801561041d57600080fd5b50610426611315565b6040516104339190612b84565b60405180910390f35b34801561044857600080fd5b50610463600480360381019061045e9190612efd565b611348565b005b34801561047157600080fd5b5061048c60048036038101906104879190612da3565b61179e565b6040516104999190612b84565b60405180910390f35b3480156104ae57600080fd5b506104c960048036038101906104c49190612f4a565b6117bd565b6040516104da959493929190612f86565b60405180910390f35b3480156104ef57600080fd5b5061050a60048036038101906105059190612da3565b611850565b005b34801561051857600080fd5b50610533600480360381019061052e9190612da3565b611957565b6040516105409190612b84565b60405180910390f35b34801561055557600080fd5b5061055e611985565b60405161056b9190612d88565b60405180910390f35b34801561058057600080fd5b5061059b60048036038101906105969190612dd0565b61198b565b6040516105a89190612b84565b60405180910390f35b3480156105bd57600080fd5b506105c66119af565b6040516105d39190612ffa565b60405180910390f35b3480156105e857600080fd5b5061060360048036038101906105fe9190613053565b6119d5565b005b34801561061157600080fd5b5061062c60048036038101906106279190613080565b611bbc565b005b34801561063a57600080fd5b50610643611f07565b604051610651929190613177565b60405180910390f35b34801561066657600080fd5b5061066f611fa1565b60405161067c9190612d88565b60405180910390f35b34801561069157600080fd5b5061069a611ff5565b6040516106a8929190613177565b60405180910390f35b6106cb60048036038101906106c691906131a7565b61208f565b005b6000610e10603a60049054906101000a900463ffffffff166106ef9190613229565b63ffffffff166106fe42611031565b63ffffffff16106107125760019050610713565b5b90565b603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d70f7ae336040518263ffffffff1660e01b81526004016107719190613270565b602060405180830381865afa15801561078e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b291906132a0565b8061080a5750603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610849576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084090613319565b60405180910390fd5b61085283611031565b925061085d82611031565b91508263ffffffff168263ffffffff16116108ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a490613385565b60405180910390fd5b600081116108f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e7906133f1565b60405180910390fd5b600083836108fe9190613411565b63ffffffff169050600082826109149190613449565b90508561094d576109483330838a73ffffffffffffffffffffffffffffffffffffffff16612242909392919063ffffffff16565b610991565b80341015610990576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610987906134fd565b60405180910390fd5b5b60396040518060a001604052808973ffffffffffffffffffffffffffffffffffffffff16815260200188151581526020018763ffffffff1681526020018663ffffffff16815260200185815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548160ff02191690831515021790555060408201518160000160156101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160196101000a81548163ffffffff021916908363ffffffff1602179055506080820151816001015550506000603a60009054906101000a900463ffffffff1663ffffffff1603610b0a5784603a60006101000a81548163ffffffff021916908363ffffffff1602179055505b8673ffffffffffffffffffffffffffffffffffffffff167f2319c65f98985fa3c7e33e0c4f0a05eb676fcf2c5e262ec4a1113e4fe4a5f7ad87878787604051610b56949392919061354e565b60405180910390a250505050505050565b60606000610b7442611031565b9050610b8d81610e1083610b889190613229565b611053565b91505090565b603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630b8cdee6336040518263ffffffff1660e01b8152600401610bee9190613270565b602060405180830381865afa158015610c0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2f91906132a0565b610c6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c65906135df565b60405180910390fd5b6000801b8303610cb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610caa9061364b565b60405180910390fd5b604051602001610cc29061369c565b604051602081830303815290604052805190602001208282604051602001610ceb9291906136e5565b6040516020818303038152906040528051906020012003610d41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d389061374a565b60405180910390fd5b6033600001548303610d88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7f906137b6565b60405180910390fd5b6033600101604051602001610d9d91906138ce565b604051602081830303815290604052805190602001208282604051602001610dc69291906136e5565b6040516020818303038152906040528051906020012003610e1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1390613931565b60405180910390fd5b610e246106cd565b610e63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5a906139c3565b60405180910390fd5b603360356000820154816000015560018201816001019081610e859190613bb5565b50905050604051806040016040528084815260200183838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506033600082015181600001556020820151816001019081610f039190613c9d565b5090505042603760146101000a81548165ffffffffffff021916908365ffffffffffff160217905550610e10610f37611fa1565b610f419190613229565b603a60046101000a81548163ffffffff021916908363ffffffff1602179055507f4d38e4594bffc361e9efcf4ec7794cce208e445b78acc641b67449e8aed23840838383603a60049054906101000a900463ffffffff16604051610fa89493929190613d9c565b60405180910390a1505050565b603860205282600052604060002060205281600052604060002060205280600052604060002060009250925050508060000154908060010160009054906101000a900465ffffffffffff16905082565b603a60049054906101000a900463ffffffff1681565b603a60009054906101000a900463ffffffff1681565b6000610e1080836110429190613e0b565b61104c9190613e3c565b9050919050565b6060600080603980549050905060008167ffffffffffffffff81111561107c5761107b6139f9565b5b6040519080825280602002602001820160405280156110b557816020015b6110a26127c5565b81526020019060019003908161109a5790505b50905060005b828163ffffffff16101561121257600060398263ffffffff16815481106110e5576110e4613e79565b5b906000526020600020906002020190506111008189896122cb565b1561120657806040518060a00160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900460ff161515151581526020016000820160159054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160199054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016001820154815250508386815181106111eb576111ea613e79565b5b60200260200101819052506001856112039190613ea8565b94505b816001019150506110bb565b5060008367ffffffffffffffff81111561122f5761122e6139f9565b5b60405190808252806020026020018201604052801561126857816020015b6112556127c5565b81526020019060019003908161124d5790505b50905060005b848163ffffffff1610156112cc57828163ffffffff168151811061129557611294613e79565b5b6020026020010151828263ffffffff16815181106112b6576112b5613e79565b5b602002602001018190525080600101905061126e565b508094505050505092915050565b6000603360000154905090565b6000603980549050905090565b60006005905090565b603760149054906101000a900465ffffffffffff1681565b60606000611329611324611fa1565b611031565b905061134281610e108361133d9190613229565b611053565b91505090565b611350612329565b6000801b6033600001540361139a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113919061364b565b60405180910390fd5b600082829050905060005b8181101561179057368484838181106113c1576113c0613e79565b5b90506020028101906113d39190613eeb565b905060008160000160208101906113ea9190613f13565b9050600082602001359050600083604001602081019061140a9190613f13565b9050600084606001359050600085608001602081019061142a9190613f40565b9050366000878060a0019061143f9190613f6d565b9150915061149a6114538888888888612378565b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506123b4565b6114d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d09061401c565b60405180910390fd5b6000603860008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600088815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015485611577919061403c565b905060405180604001604052808681526020014265ffffffffffff16815250603860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600089815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000015560208201518160010160006101000a81548165ffffffffffff021916908365ffffffffffff16021790555090505083156117135760008873ffffffffffffffffffffffffffffffffffffffff16826040516116879061409e565b60006040518083038185875af1925050503d80600081146116c4576040519150601f19603f3d011682016040523d82523d6000602084013e6116c9565b606091505b505090508061170d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611704906140ff565b60405180910390fd5b5061173f565b61173e88828873ffffffffffffffffffffffffffffffffffffffff166123d09092919063ffffffff16565b5b7f8dab6d35466ca3cba614bc5b262979b277949786977e81107f375f7e39f7734a88888884604051611774949392919061411f565b60405180910390a18960010199505050505050505050506113a5565b505061179a612456565b5050565b60606117b66117ac83611031565b63ffffffff611053565b9050919050565b603981815481106117cd57600080fd5b90600052602060002090600202016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900460ff16908060000160159054906101000a900463ffffffff16908060000160199054906101000a900463ffffffff16908060010154905085565b603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d70f7ae336040518263ffffffff1660e01b81526004016118ab9190613270565b602060405180830381865afa1580156118c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ec91906132a0565b61192b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611922906141b0565b60405180910390fd5b61193481611031565b603a60046101000a81548163ffffffff021916908363ffffffff16021790555050565b6060600061196483611031565b905061197d81610e10836119789190613229565b611053565b915050919050565b610e1081565b60606119a761199984611031565b6119a284611031565b611053565b905092915050565b603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060019054906101000a900460ff16159050808015611a065750600160008054906101000a900460ff1660ff16105b80611a335750611a153061245f565b158015611a325750600160008054906101000a900460ff1660ff16145b5b611a72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6990614242565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015611aaf576001600060016101000a81548160ff0219169083151502179055505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b15906142d4565b60405180910390fd5b81603760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508015611bb85760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051611baf919061432f565b60405180910390a15b5050565b603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d70f7ae336040518263ffffffff1660e01b8152600401611c179190613270565b602060405180830381865afa158015611c34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5891906132a0565b611c97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8e906141b0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611d06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cfd90614396565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611d75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6c90614402565b60405180910390fd5b60008211611db8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611daf9061446e565b60405180910390fd5b8015611e705760008373ffffffffffffffffffffffffffffffffffffffff1683604051611de49061409e565b60006040518083038185875af1925050503d8060008114611e21576040519150601f19603f3d011682016040523d82523d6000602084013e611e26565b606091505b5050905080611e6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e61906140ff565b60405180910390fd5b50611e9c565b611e9b83838673ffffffffffffffffffffffffffffffffffffffff166123d09092919063ffffffff16565b5b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167ffff3b3844276f57024e0b42afec1a37f75db36511e43819a4f2a63ab7862b64884604051611ef99190612e3a565b60405180910390a350505050565b6035806000015490806001018054611f1e90613805565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4a90613805565b8015611f975780601f10611f6c57610100808354040283529160200191611f97565b820191906000526020600020905b815481529060010190602001808311611f7a57829003601f168201915b5050505050905082565b600080603a60049054906101000a900463ffffffff1663ffffffff1603611fdc57603a60009054906101000a900463ffffffff169050611ff2565b603a60049054906101000a900463ffffffff1690505b90565b603380600001549080600101805461200c90613805565b80601f016020809104026020016040519081016040528092919081815260200182805461203890613805565b80156120855780601f1061205a57610100808354040283529160200191612085565b820191906000526020600020905b81548152906001019060200180831161206857829003601f168201915b5050505050905082565b603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d70f7ae336040518263ffffffff1660e01b81526004016120ea9190613270565b602060405180830381865afa158015612107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212b91906132a0565b806121835750603760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6121c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b990613319565b60405180910390fd5b816121f9576121f43330838673ffffffffffffffffffffffffffffffffffffffff16612242909392919063ffffffff16565b61223d565b8034101561223c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612233906134fd565b60405180910390fd5b5b505050565b6122c5846323b872dd60e01b8585856040516024016122639392919061448e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612482565b50505050565b6000808460000160159054906101000a900463ffffffff1663ffffffff1690508363ffffffff168560000160199054906101000a900463ffffffff1663ffffffff1611801561231f57508263ffffffff1681105b9150509392505050565b60026001540361236e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236590614511565b60405180910390fd5b6002600181905550565b600085858585856040516020016123939594939291906145e2565b60405160208183030381529060405280519060200120905095945050505050565b60006123c8826123c26112da565b85612549565b905092915050565b6124518363a9059cbb60e01b84846040516024016123ef929190614641565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612482565b505050565b60018081905550565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60006124e4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166125609092919063ffffffff16565b9050600081511115612544578080602001905181019061250491906132a0565b612543576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253a906146dc565b60405180910390fd5b5b505050565b6000826125568584612578565b1490509392505050565b606061256f84846000856125ce565b90509392505050565b60008082905060005b84518110156125c3576125ae828683815181106125a1576125a0613e79565b5b602002602001015161269b565b915080806125bb906146fc565b915050612581565b508091505092915050565b606082471015612613576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260a906147b6565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161263c9190614812565b60006040518083038185875af1925050503d8060008114612679576040519150601f19603f3d011682016040523d82523d6000602084013e61267e565b606091505b509150915061268f878383876126c6565b92505050949350505050565b60008183106126b3576126ae828461273b565b6126be565b6126bd838361273b565b5b905092915050565b60608315612728576000835103612720576126e085612752565b61271f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271690614875565b60405180910390fd5b5b829050612733565b6127328383612775565b5b949350505050565b600082600052816020526040600020905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156127885781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127bc9190614895565b60405180910390fd5b6040518060a00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600015158152602001600063ffffffff168152602001600063ffffffff168152602001600081525090565b60008115159050919050565b61282d81612818565b82525050565b60006020820190506128486000830184612824565b92915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061288382612858565b9050919050565b600061289582612878565b9050919050565b6128a58161288a565b81146128b057600080fd5b50565b6000813590506128c28161289c565b92915050565b6128d181612818565b81146128dc57600080fd5b50565b6000813590506128ee816128c8565b92915050565b600063ffffffff82169050919050565b61290d816128f4565b811461291857600080fd5b50565b60008135905061292a81612904565b92915050565b6000819050919050565b61294381612930565b811461294e57600080fd5b50565b6000813590506129608161293a565b92915050565b600080600080600060a086880312156129825761298161284e565b5b6000612990888289016128b3565b95505060206129a1888289016128df565b94505060406129b28882890161291b565b93505060606129c38882890161291b565b92505060806129d488828901612951565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000819050919050565b6000612a32612a2d612a2884612858565b612a0d565b612858565b9050919050565b6000612a4482612a17565b9050919050565b6000612a5682612a39565b9050919050565b612a6681612a4b565b82525050565b612a7581612818565b82525050565b612a84816128f4565b82525050565b612a9381612930565b82525050565b60a082016000820151612aaf6000850182612a5d565b506020820151612ac26020850182612a6c565b506040820151612ad56040850182612a7b565b506060820151612ae86060850182612a7b565b506080820151612afb6080850182612a8a565b50505050565b6000612b0d8383612a99565b60a08301905092915050565b6000602082019050919050565b6000612b31826129e1565b612b3b81856129ec565b9350612b46836129fd565b8060005b83811015612b77578151612b5e8882612b01565b9750612b6983612b19565b925050600181019050612b4a565b5085935050505092915050565b60006020820190508181036000830152612b9e8184612b26565b905092915050565b6000819050919050565b612bb981612ba6565b8114612bc457600080fd5b50565b600081359050612bd681612bb0565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612c0157612c00612bdc565b5b8235905067ffffffffffffffff811115612c1e57612c1d612be1565b5b602083019150836001820283011115612c3a57612c39612be6565b5b9250929050565b600080600060408486031215612c5a57612c5961284e565b5b6000612c6886828701612bc7565b935050602084013567ffffffffffffffff811115612c8957612c88612853565b5b612c9586828701612beb565b92509250509250925092565b612caa81612878565b8114612cb557600080fd5b50565b600081359050612cc781612ca1565b92915050565b600080600060608486031215612ce657612ce561284e565b5b6000612cf486828701612cb8565b9350506020612d0586828701612951565b9250506040612d1686828701612cb8565b9150509250925092565b612d2981612930565b82525050565b600065ffffffffffff82169050919050565b612d4a81612d2f565b82525050565b6000604082019050612d656000830185612d20565b612d726020830184612d41565b9392505050565b612d82816128f4565b82525050565b6000602082019050612d9d6000830184612d79565b92915050565b600060208284031215612db957612db861284e565b5b6000612dc78482850161291b565b91505092915050565b60008060408385031215612de757612de661284e565b5b6000612df58582860161291b565b9250506020612e068582860161291b565b9150509250929050565b612e1981612ba6565b82525050565b6000602082019050612e346000830184612e10565b92915050565b6000602082019050612e4f6000830184612d20565b92915050565b600060ff82169050919050565b612e6b81612e55565b82525050565b6000602082019050612e866000830184612e62565b92915050565b6000602082019050612ea16000830184612d41565b92915050565b60008083601f840112612ebd57612ebc612bdc565b5b8235905067ffffffffffffffff811115612eda57612ed9612be1565b5b602083019150836020820283011115612ef657612ef5612be6565b5b9250929050565b60008060208385031215612f1457612f1361284e565b5b600083013567ffffffffffffffff811115612f3257612f31612853565b5b612f3e85828601612ea7565b92509250509250929050565b600060208284031215612f6057612f5f61284e565b5b6000612f6e84828501612951565b91505092915050565b612f8081612a4b565b82525050565b600060a082019050612f9b6000830188612f77565b612fa86020830187612824565b612fb56040830186612d79565b612fc26060830185612d79565b612fcf6080830184612d20565b9695505050505050565b6000612fe482612a39565b9050919050565b612ff481612fd9565b82525050565b600060208201905061300f6000830184612feb565b92915050565b600061302082612878565b9050919050565b61303081613015565b811461303b57600080fd5b50565b60008135905061304d81613027565b92915050565b6000602082840312156130695761306861284e565b5b60006130778482850161303e565b91505092915050565b6000806000806080858703121561309a5761309961284e565b5b60006130a887828801612cb8565b94505060206130b987828801612cb8565b93505060406130ca87828801612951565b92505060606130db878288016128df565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b60005b83811015613121578082015181840152602081019050613106565b60008484015250505050565b6000601f19601f8301169050919050565b6000613149826130e7565b61315381856130f2565b9350613163818560208601613103565b61316c8161312d565b840191505092915050565b600060408201905061318c6000830185612e10565b818103602083015261319e818461313e565b90509392505050565b6000806000606084860312156131c0576131bf61284e565b5b60006131ce868287016128b3565b93505060206131df868287016128df565b92505060406131f086828701612951565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613234826128f4565b915061323f836128f4565b9250828201905063ffffffff81111561325b5761325a6131fa565b5b92915050565b61326a81612878565b82525050565b60006020820190506132856000830184613261565b92915050565b60008151905061329a816128c8565b92915050565b6000602082840312156132b6576132b561284e565b5b60006132c48482850161328b565b91505092915050565b7f52455741524445523a204e4f545f5245574152445f4144444552000000000000600082015250565b6000613303601a836130f2565b915061330e826132cd565b602082019050919050565b60006020820190508181036000830152613332816132f6565b9050919050565b7f52657761726465723a20696e76616c696420656e642074696d657374616d7000600082015250565b600061336f601f836130f2565b915061337a82613339565b602082019050919050565b6000602082019050818103600083015261339e81613362565b9050919050565b7f52657761726465723a20696e76616c6964207265776172642070657220736563600082015250565b60006133db6020836130f2565b91506133e6826133a5565b602082019050919050565b6000602082019050818103600083015261340a816133ce565b9050919050565b600061341c826128f4565b9150613427836128f4565b9250828203905063ffffffff811115613443576134426131fa565b5b92915050565b600061345482612930565b915061345f83612930565b925082820261346d81612930565b91508282048414831517613484576134836131fa565b5b5092915050565b7f6164642072657761726420696e666f3a206e6f7420656e6f7567682066756e6460008201527f7320746f207472616e7366657200000000000000000000000000000000000000602082015250565b60006134e7602d836130f2565b91506134f28261348b565b604082019050919050565b60006020820190508181036000830152613516816134da565b9050919050565b600061353861353361352e846128f4565b612a0d565b612930565b9050919050565b6135488161351d565b82525050565b60006080820190506135636000830187612824565b613570602083018661353f565b61357d604083018561353f565b61358a6060830184612d20565b95945050505050565b7f52455741524445523a204e4f545f545255535445445f53454e44455200000000600082015250565b60006135c9601c836130f2565b91506135d482613593565b602082019050919050565b600060208201905081810360008301526135f8816135bc565b9050919050565b7f52657761726465723a206d65726b6c6520726f6f74206973207a65726f000000600082015250565b6000613635601d836130f2565b9150613640826135ff565b602082019050919050565b6000602082019050818103600083015261366481613628565b9050919050565b600081905092915050565b50565b600061368660008361366b565b915061369182613676565b600082019050919050565b60006136a782613679565b9150819050919050565b82818337600083830152505050565b60006136cc838561366b565b93506136d98385846136b1565b82840190509392505050565b60006136f28284866136c0565b91508190509392505050565b7f52657761726465723a20697066732068617368206973207a65726f0000000000600082015250565b6000613734601b836130f2565b915061373f826136fe565b602082019050919050565b6000602082019050818103600083015261376381613727565b9050919050565b7f52657761726465723a206d65726b6c6520726f6f742069732073616d65000000600082015250565b60006137a0601d836130f2565b91506137ab8261376a565b602082019050919050565b600060208201905081810360008301526137cf81613793565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061381d57607f821691505b6020821081036138305761382f6137d6565b5b50919050565b60008190508160005260206000209050919050565b6000815461385881613805565b613862818661366b565b9450600182166000811461387d5760018114613892576138c5565b60ff19831686528115158202860193506138c5565b61389b85613836565b60005b838110156138bd5781548189015260018201915060208101905061389e565b838801955050505b50505092915050565b60006138da828461384b565b915081905092915050565b7f52657761726465723a206970667320686173682069732073616d650000000000600082015250565b600061391b601b836130f2565b9150613926826138e5565b602082019050919050565b6000602082019050818103600083015261394a8161390e565b9050919050565b7f52657761726465723a207761697420756e74696c207265706f7274656420457060008201527f6f636820697320656c6170736564000000000000000000000000000000000000602082015250565b60006139ad602e836130f2565b91506139b882613951565b604082019050919050565b600060208201905081810360008301526139dc816139a0565b9050919050565b6000815490506139f281613805565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006020601f8301049050919050565b600082821b905092915050565b600060088302613a757fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613a38565b613a7f8683613a38565b95508019841693508086168417925050509392505050565b6000613ab2613aad613aa884612930565b612a0d565b612930565b9050919050565b6000819050919050565b613acc83613a97565b613ae0613ad882613ab9565b848454613a45565b825550505050565b600090565b613af5613ae8565b613b00818484613ac3565b505050565b5b81811015613b2457613b19600082613aed565b600181019050613b06565b5050565b601f821115613b6957613b3a81613836565b613b4384613a28565b81016020851015613b52578190505b613b66613b5e85613a28565b830182613b05565b50505b505050565b600082821c905092915050565b6000613b8c60001984600802613b6e565b1980831691505092915050565b6000613ba58383613b7b565b9150826002028217905092915050565b818103613bc3575050613c9b565b613bcc826139e3565b67ffffffffffffffff811115613be557613be46139f9565b5b613bef8254613805565b613bfa828285613b28565b6000601f831160018114613c295760008415613c17578287015490505b613c218582613b99565b865550613c94565b601f198416613c3787613836565b9650613c4286613836565b60005b82811015613c6a57848901548255600182019150600185019450602081019050613c45565b86831015613c875784890154613c83601f891682613b7b565b8355505b6001600288020188555050505b5050505050505b565b613ca6826130e7565b67ffffffffffffffff811115613cbf57613cbe6139f9565b5b613cc98254613805565b613cd4828285613b28565b600060209050601f831160018114613d075760008415613cf5578287015190505b613cff8582613b99565b865550613d67565b601f198416613d1586613836565b60005b82811015613d3d57848901518255600182019150602085019450602081019050613d18565b86831015613d5a5784890151613d56601f891682613b7b565b8355505b6001600288020188555050505b505050505050565b6000613d7b83856130f2565b9350613d888385846136b1565b613d918361312d565b840190509392505050565b6000606082019050613db16000830187612e10565b8181036020830152613dc4818587613d6f565b9050613dd3604083018461353f565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e16826128f4565b9150613e21836128f4565b925082613e3157613e30613ddc565b5b828204905092915050565b6000613e47826128f4565b9150613e52836128f4565b9250828202613e60816128f4565b9150808214613e7257613e716131fa565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613eb382612930565b9150613ebe83612930565b9250828201905080821115613ed657613ed56131fa565b5b92915050565b600080fd5b600080fd5b600080fd5b60008235600160c003833603038112613f0757613f06613edc565b5b80830191505092915050565b600060208284031215613f2957613f2861284e565b5b6000613f3784828501612cb8565b91505092915050565b600060208284031215613f5657613f5561284e565b5b6000613f64848285016128df565b91505092915050565b60008083356001602003843603038112613f8a57613f89613edc565b5b80840192508235915067ffffffffffffffff821115613fac57613fab613ee1565b5b602083019250602082023603831315613fc857613fc7613ee6565b5b509250929050565b7f52657761726465723a20696e76616c69642070726f6f66000000000000000000600082015250565b60006140066017836130f2565b915061401182613fd0565b602082019050919050565b6000602082019050818103600083015261403581613ff9565b9050919050565b600061404782612930565b915061405283612930565b925082820390508181111561406a576140696131fa565b5b92915050565b600081905092915050565b6000614088600083614070565b915061409382613676565b600082019050919050565b60006140a98261407b565b9150819050919050565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b60006140e9600f836130f2565b91506140f4826140b3565b602082019050919050565b60006020820190508181036000830152614118816140dc565b9050919050565b60006080820190506141346000830187613261565b6141416020830186612d20565b61414e6040830185613261565b61415b6060830184612d20565b95945050505050565b7f52455741524445523a204e4f545f4f50455241544f5200000000000000000000600082015250565b600061419a6016836130f2565b91506141a582614164565b602082019050919050565b600060208201905081810360008301526141c98161418d565b9050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b600061422c602e836130f2565b9150614237826141d0565b604082019050919050565b6000602082019050818103600083015261425b8161421f565b9050919050565b7f52657761726465723a207265676973747279206973207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006142be6022836130f2565b91506142c982614262565b604082019050919050565b600060208201905081810360008301526142ed816142b1565b9050919050565b6000819050919050565b600061431961431461430f846142f4565b612a0d565b612e55565b9050919050565b614329816142fe565b82525050565b60006020820190506143446000830184614320565b92915050565b7f52657761726465723a20746f6b656e206973207a65726f206164647265737300600082015250565b6000614380601f836130f2565b915061438b8261434a565b602082019050919050565b600060208201905081810360008301526143af81614373565b9050919050565b7f52657761726465723a20746f206973207a65726f206164647265737300000000600082015250565b60006143ec601c836130f2565b91506143f7826143b6565b602082019050919050565b6000602082019050818103600083015261441b816143df565b9050919050565b7f52657761726465723a20616d6f756e74206973207a65726f0000000000000000600082015250565b60006144586018836130f2565b915061446382614422565b602082019050919050565b600060208201905081810360008301526144878161444b565b9050919050565b60006060820190506144a36000830186613261565b6144b06020830185613261565b6144bd6040830184612d20565b949350505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006144fb601f836130f2565b9150614506826144c5565b602082019050919050565b6000602082019050818103600083015261452a816144ee565b9050919050565b60008160601b9050919050565b600061454982614531565b9050919050565b600061455b8261453e565b9050919050565b61457361456e82612878565b614550565b82525050565b6000819050919050565b61459461458f82612930565b614579565b82525050565b60008160f81b9050919050565b60006145b28261459a565b9050919050565b60006145c4826145a7565b9050919050565b6145dc6145d782612818565b6145b9565b82525050565b60006145ee8288614562565b6014820191506145fe8287614583565b60208201915061460e8286614562565b60148201915061461e8285614583565b60208201915061462e82846145cb565b6001820191508190509695505050505050565b60006040820190506146566000830185613261565b6146636020830184612d20565b9392505050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006146c6602a836130f2565b91506146d18261466a565b604082019050919050565b600060208201905081810360008301526146f5816146b9565b9050919050565b600061470782612930565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614739576147386131fa565b5b600182019050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006147a06026836130f2565b91506147ab82614744565b604082019050919050565b600060208201905081810360008301526147cf81614793565b9050919050565b600081519050919050565b60006147ec826147d6565b6147f68185614070565b9350614806818560208601613103565b80840191505092915050565b600061481e82846147e1565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b600061485f601d836130f2565b915061486a82614829565b602082019050919050565b6000602082019050818103600083015261488e81614852565b9050919050565b600060208201905081810360008301526148af818461313e565b90509291505056fea2646970667358221220e599841e41b2afaa040d015fb04aac55c2444aef0a6594a2da2464e3db0769cb64736f6c63430008110033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.