Spend less on fees, more on crypto. Buy crypto easily with MoonPay Balance. 20M+ users trust MoonPay worldwide.
Ready to onboard to Ethereum? With MetaMask Portfolio, you're in control.
Don’t invest unless you’re prepared to lose all the money you invest.
Everyday giveaways up to 100 ETH, Lucky Spins. Deposit BONUS 300% and Cashbacks!
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
Slots, Roulette, Poker & more - Proud sponsors of UFC, Everton & StakeF1 team!
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
Anonymous play on awesome games - sign up now for 25 free jackpot spins - worth $100s!
100s of games, generous bonuses, 20+ years of trusted gaming. Join CryptoWins & start winning today!
Overview
ETH Balance
Eth Value
$20,760.60 (@ $3,864.50/ETH)Token Holdings
Could not find any matches!
- ERC-20 Tokens (8)21,773.19022597 DCHFDefi Franc (DCHF)$25,039.17@1.151,369,510.73578241 MONMoneta (MON)0.17353148 WBTCWrapped BTC (WBTC)$17,805.72@102,608.004.75ERC20 ***1.2 TokenERC-20 TOKEN*[Suspicious]1.4 TokenERC-20 TOKEN*[Suspicious]1.7 TokenERC-20 TOKEN*[Suspicious]0.7 TokenERC-20 TOKEN*[Suspicious]NFT Tokens (10)claim rewards on pool-stake.netpool-stake.netERC-1155claim rewards on wbtcnetwork.netwbtcnetwork.netERC-1155
More Info
Private Name Tags
ContractCreator
Multichain Info
1 address found via- Transactions
- Internal Transactions
- Token Transfers (ERC-20)
- NFT Transfers
- Contract
- Events
- Analytics
- Multichain Portfolio
- Cards New
Advanced Filter- Filter by Tx Type:
- Tx
- Internal Tx
- ERC-20
- NFTs
Latest 25 from a total of 9,118 transactions
Transaction Hash MethodBlockFromToClaim Rewards 21327555 2024-12-04 7:11:11 20 hrs ago 1733296271 IN 0 ETH$0.00 0.00397224 17.89928846 Claim Rewards 21285689 2024-11-28 10:45:35 6 days ago 1732790735 IN 0 ETH$0.00 0.00174697 7.85377218 Claim Rewards 21266973 2024-11-25 19:52:11 9 days ago 1732564331 IN 0 ETH$0.00 0.00349104 17.00145699 Claim Rewards 21259807 2024-11-24 19:51:11 10 days ago 1732477871 IN 0 ETH$0.00 0.00218448 8.56710939 Claim MON Vestin... 21259497 2024-11-24 18:48:59 10 days ago 1732474139 IN 0 ETH$0.00 0.00072668 10.3514646 Claim Rewards 21242662 2024-11-22 10:25:59 12 days ago 1732271159 IN 0 ETH$0.00 0.00283102 11.81869217 Claim Rewards 21230918 2024-11-20 19:04:59 14 days ago 1732129499 IN 0 ETH$0.00 0.00366417 17.84460748 Claim MON Vestin... 21216296 2024-11-18 18:08:23 16 days ago 1731953303 IN 0 ETH$0.00 0.00123135 23.18893505 Claim Rewards 21200908 2024-11-16 14:38:47 18 days ago 1731767927 IN 0 ETH$0.00 0.00263844 14.84785883 Claim Rewards 21200899 2024-11-16 14:36:59 18 days ago 1731767819 IN 0 ETH$0.00 0.00414004 15.55361125 Claim MON Vestin... 21137850 2024-11-07 19:26:35 27 days ago 1731007595 IN 0 ETH$0.00 0.00151289 21.55094111 Claim Rewards 21117825 2024-11-05 0:19:35 30 days ago 1730765975 IN 0 ETH$0.00 0.00126102 5.6691122 Claim Rewards 21117268 2024-11-04 22:27:35 30 days ago 1730759255 IN 0 ETH$0.00 0.00367527 15.61494011 Claim MON Vestin... 21108125 2024-11-03 15:51:47 31 days ago 1730649107 IN 0 ETH$0.00 0.00056727 10.68288308 Claim Rewards 21034571 2024-10-24 9:30:23 41 days ago 1729762223 IN 0 ETH$0.00 0.00193724 8.23068144 Claim Rewards 20977083 2024-10-16 8:58:59 49 days ago 1729069139 IN 0 ETH$0.00 0.00378184 14.97946235 Claim MON Vestin... 20957979 2024-10-13 16:55:35 52 days ago 1728838535 IN 0 ETH$0.00 0.00065755 12.3830676 Claim Rewards 20921180 2024-10-08 13:32:47 57 days ago 1728394367 IN 0 ETH$0.00 0.00734337 28.67140054 Claim MON Vestin... 20900083 2024-10-05 14:58:35 60 days ago 1728140315 IN 0 ETH$0.00 0.00036076 6.79390486 Claim MON Vestin... 20842852 2024-09-27 15:27:35 68 days ago 1727450855 IN 0 ETH$0.00 0.00114226 21.51117003 Claim MON Vestin... 20796648 2024-09-21 4:43:59 74 days ago 1726893839 IN 0 ETH$0.00 0.00071638 13.49099511 Claim Rewards 20791349 2024-09-20 10:57:59 75 days ago 1726829879 IN 0 ETH$0.00 0.00240718 10.04927471 Claim Rewards 20780072 2024-09-18 21:09:23 77 days ago 1726693763 IN 0 ETH$0.00 0.00352372 17.16060273 Claim MON Vestin... 20779299 2024-09-18 18:34:11 77 days ago 1726684451 IN 0 ETH$0.00 0.00070618 13.29881688 Claim MON Vestin... 20755502 2024-09-15 10:45:11 80 days ago 1726397111 IN 0 ETH$0.00 0.00009693 1.82544538 Latest 25 internal transactions (View All)
Advanced mode:Parent Transaction Hash Block From To 21327555 2024-12-04 7:11:11 20 hrs ago 1733296271 0.00062077 ETH$2.40 21327555 2024-12-04 7:11:11 20 hrs ago 1733296271 0.0000575 ETH$0.22 21285689 2024-11-28 10:45:35 6 days ago 1732790735 0.0025722 ETH$9.94 21266973 2024-11-25 19:52:11 9 days ago 1732564331 0.00460825 ETH$17.81 21259807 2024-11-24 19:51:11 10 days ago 1732477871 0.00260772 ETH$10.08 21242662 2024-11-22 10:25:59 12 days ago 1732271159 0.00006343 ETH$0.25 21230918 2024-11-20 19:04:59 14 days ago 1732129499 0.00653808 ETH$25.27 21200899 2024-11-16 14:36:59 18 days ago 1731767819 0.00507367 ETH$19.61 21200899 2024-11-16 14:36:59 18 days ago 1731767819 0.00566787 ETH$21.90 21117825 2024-11-05 0:19:35 30 days ago 1730765975 0.00150251 ETH$5.81 21117268 2024-11-04 22:27:35 30 days ago 1730759255 0.00245238 ETH$9.48 21117268 2024-11-04 22:27:35 30 days ago 1730759255 0.00837513 ETH$32.37 21034571 2024-10-24 9:30:23 41 days ago 1729762223 0.00217455 ETH$8.40 21034571 2024-10-24 9:30:23 41 days ago 1729762223 0.01113119 ETH$43.02 20977083 2024-10-16 8:58:59 49 days ago 1729069139 0.01247831 ETH$48.22 20977083 2024-10-16 8:58:59 49 days ago 1729069139 0.18070457 ETH$698.33 20921180 2024-10-08 13:32:47 57 days ago 1728394367 0.01002738 ETH$38.75 20921180 2024-10-08 13:32:47 57 days ago 1728394367 0.00298349 ETH$11.53 20791349 2024-09-20 10:57:59 75 days ago 1726829879 0.00072823 ETH$2.81 20780072 2024-09-18 21:09:23 77 days ago 1726693763 0.00286708 ETH$11.08 20754898 2024-09-15 8:44:23 80 days ago 1726389863 0.00477528 ETH$18.45 20729912 2024-09-11 20:59:47 84 days ago 1726088387 0.00094831 ETH$3.66 20726373 2024-09-11 9:07:23 84 days ago 1726045643 0.00239293 ETH$9.25 20725583 2024-09-11 6:28:23 84 days ago 1726036103 0.00832476 ETH$32.17 20719246 2024-09-10 9:13:23 85 days ago 1725959603 0.02262388 ETH$87.43 Loading...LoadingContract Name:AirdropMON
Compiler Versionv0.8.15+commit.e14f2714
Optimization Enabled:Yes with 200 runs
Other Settings:default evmVersionContract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.15; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; /* This contract is reserved for MON airdrop of GHNY holders. Airdrop eligible users can either choose vesting or freezing and staking. Vesting during 1000 days is chosen by default. Thus, users who want Freeze & Stake need to later call addUserToFreezer(). Any amount already claimed by the user during the Vesting will be deducted from the totalAmount the user is eligible. Unvesting of Frozen MON starts in 2000 days and has 180 days of duration. Until that moment, user's MON is staked in the stakingPool. The mapping snapshots stores the user snapshots of F_ASSETS and F_DCHF in the form of key-value pair (address -> struct Snapshot) The mapping F_ASSETS stores the asset fees in the form of key-value pair (address -> uint256). The mapping entitiesVesting stores the user's vesting data in the form of key-value pair (address -> struct RuleVesting). The mapping entitiesFreezing stores the user's vesting data in the form of key-value pair (address -> struct RuleVesting). The mapping stakes stores the user's stake in the form of key-value pair (address -> uint256). START_VESTING_DATE & END_VESTING_DATE are immutable and excluded from RuleVesting struct in order to save gas. The same occurs for START_VESTING_FREEZING_DATE & END_VESTING_FREEZING_DATE. This means all users have the same vesting conditions. */ interface IPriceFeed { function getDirectPrice(address _asset) external view returns (uint256); } interface IERC20Metadata { function decimals() external view returns (uint8); } interface IMONStaking { function stake(uint256 _MONamount) external; function unstake(uint256 _MONamount) external; function getPendingAssetGain(address _asset, address _user) external view returns (uint256); function getPendingDCHFGain(address _user) external view returns (uint256); } contract AirdropMON is Ownable, ReentrancyGuard { using SafeERC20 for IERC20; bool public isInitialized; // --- Data --- // string public constant NAME = "AirdropContract"; address public immutable ETH_REF_ADDRESS = address(0); address public immutable WBTC_ADDRESS = 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599; address public immutable stakingPool = 0x8Bc3702c35D33E5DF7cb0F06cb72a0c34Ae0C56F; address public immutable oracle = 0x09AB3C0ce6Cb41C13343879A667a6bDAd65ee9DA; address public treasury; address public distributor; address public feeContract; bytes32 public immutable merkleRoot = 0x4135b07a64a1556c5d12665b11cf454f3add32c6cce3b74d016691d77a0fa1f2; IERC20 public immutable MON = IERC20(address(0x1EA48B9965bb5086F3b468E50ED93888a661fc17)); IERC20 public immutable DCHF = IERC20(address(0x045da4bFe02B320f4403674B3b7d121737727A36)); uint256 public constant VEST_TIME_VESTING = 1000 days; // 2,74 years of Vesting uint128 public constant VEST_TIME_FREEZER = 180 days; // Half a year of Vesting uint128 public constant VEST_DELAY_FREEZER = 2000 days; // 5,48 years of Freezing uint256 internal constant PRECISION = 1 ether; // 1e18 uint256 public protocolFee; // In bps 1% = 100, 10% = 1000, 100% = 10000 uint256 public immutable START_VESTING_DATE; uint256 public immutable END_VESTING_DATE; uint256 public immutable START_VESTING_FREEZING_DATE; uint256 public immutable END_VESTING_FREEZING_DATE; struct RuleVesting { uint256 totalMON; uint256 claimed; } mapping(address => RuleVesting) public entitiesVesting; mapping(address => RuleVesting) public entitiesFreezing; mapping(address => uint256) public stakes; uint256 internal totalMONStaked; // Used to get fees per-MON-staked uint256 internal totalMONVested; mapping(address => uint256) public F_ASSETS; // Running sum of Asset fees per-MON-staked uint256 public F_DCHF; // Running sum of DCHF fees per-MON-staked struct Snapshot { mapping(address => uint256) F_ASSET_Snapshot; uint256 F_DCHF_Snapshot; } // User snapshots of F_ASSETS and F_DCHF, taken at the point at which their latest deposit was made mapping(address => Snapshot) public snapshots; address[] public ASSET_TYPES; mapping(address => bool) isAssetTracked; error ZeroAddress(); error ZeroAmount(); error FailToSendETH(); error ProtectedToken(address token); error AssetExists(address asset); error AssetNotExists(address asset); error NotStakingPool(address sender); event SentToTreasury(address indexed asset, uint256 amount); event AssetSent(address indexed asset, address indexed account, uint256 amount); event AssetAdded(address asset); event F_AssetUpdated(address indexed asset, uint256 F_ASSET); event F_DCHFUpdated(uint256 F_DCHF); event StakerSnapshotUpdated(address staker, address asset, uint256 F_Snapshot); event StakeChanged(address indexed staker, uint256 newStake); event StakingGainsAssetWithdrawn(address indexed staker, address indexed asset, uint256 assetGain); event StakingGainsDCHFWithdrawn(address indexed staker, uint256 DCHFGain); event Claim(address indexed user, uint256 amount); event ClaimAirdrop(address indexed user, uint256 amount); event Sweep(address indexed token, uint256 amount); event SetFees(uint256 fee, uint256 prevFee); // --- External Functions --- // constructor() { START_VESTING_DATE = block.timestamp; END_VESTING_DATE = block.timestamp + VEST_TIME_VESTING; START_VESTING_FREEZING_DATE = block.timestamp + VEST_DELAY_FREEZER; END_VESTING_FREEZING_DATE = block.timestamp + VEST_DELAY_FREEZER + VEST_TIME_FREEZER; } function setAddresses(address _treasury, address _distributor) external onlyOwner { require(!isInitialized, "Already Initialized"); if (_treasury == address(0) || _distributor == address(0)) revert ZeroAddress(); isInitialized = true; treasury = _treasury; distributor = _distributor; isAssetTracked[ETH_REF_ADDRESS] = true; ASSET_TYPES.push(ETH_REF_ADDRESS); isAssetTracked[WBTC_ADDRESS] = true; ASSET_TYPES.push(WBTC_ADDRESS); // Approve the stakingPool for spending MON MON.approve(stakingPool, 0); MON.approve(stakingPool, type(uint256).max); } function claimAirdrop(uint256 amount, bytes32[] calldata merkleProof) external { require( entitiesVesting[msg.sender].totalMON == 0 && isFreezerUser(msg.sender) == false, "AirDrop already claimed" ); // Verify the merkle proof bytes32 node = keccak256(abi.encodePacked(msg.sender, amount)); require(MerkleProof.verify(merkleProof, merkleRoot, node), "Invalid proof"); // Add entity vesting for the user _addEntityVestingAirdrop(msg.sender, amount); emit ClaimAirdrop(msg.sender, amount); } function addEntityVestingBatch(address[] memory _entities, uint256[] memory _totalSupplies) external onlyOwner { require(_entities.length == _totalSupplies.length, "Array length missmatch"); uint256 _sumTotalSupplies = 0; for (uint256 i = 0; i < _entities.length; i = _uncheckedInc(i)) { if (_entities[i] == address(0)) revert ZeroAddress(); require(entitiesVesting[_entities[i]].totalMON == 0, "Existing Vesting Rule"); entitiesVesting[_entities[i]] = RuleVesting({totalMON: _totalSupplies[i], claimed: 0}); _sumTotalSupplies += _totalSupplies[i]; } totalMONVested += _sumTotalSupplies; MON.safeTransferFrom(msg.sender, address(this), _sumTotalSupplies); } function addEntityVesting(address _entity, uint256 _totalSupply) external onlyOwner { if (_entity == address(0)) revert ZeroAddress(); require(entitiesVesting[_entity].totalMON == 0, "Existing Vesting Rule"); entitiesVesting[_entity] = RuleVesting({totalMON: _totalSupply, claimed: 0}); totalMONVested += _totalSupply; MON.safeTransferFrom(msg.sender, address(this), _totalSupply); } function _addEntityVestingAirdrop(address _entity, uint256 _totalSupply) internal { entitiesVesting[_entity] = RuleVesting({totalMON: _totalSupply, claimed: 0}); totalMONVested += _totalSupply; MON.safeTransferFrom(distributor, address(this), _totalSupply); } function removeEntityVesting(address _entity) external nonReentrant onlyOwner entityRuleVestingExists(_entity) { require(isFreezerUser(_entity) == false, "Only Vesters"); uint256 amountLeft = _removeEntityVesting(_entity); MON.safeTransfer(treasury, amountLeft); } function _removeEntityVesting(address _entity) internal returns (uint256 amountLeft) { // Send claimable MON to the user _sendMONVesting(_entity); RuleVesting memory vestingRule = entitiesVesting[_entity]; totalMONVested = totalMONVested - (vestingRule.totalMON - vestingRule.claimed); delete entitiesVesting[_entity]; amountLeft = vestingRule.totalMON - vestingRule.claimed; } function addUserToFreezer() external nonReentrant entityRuleVestingExists(msg.sender) { require(block.timestamp < START_VESTING_FREEZING_DATE, "End of period"); // amountLeft is the amount of MON left to freeze, once deducted the claimed MON uint256 amountLeft = _removeEntityVesting(msg.sender); if (amountLeft == 0) revert ZeroAmount(); // Storage update entitiesFreezing[msg.sender] = RuleVesting({totalMON: amountLeft, claimed: 0}); // Save initial contract balances uint256 initialBalanceDCHF = balanceOfDCHF(); uint256[] memory initialAssetBalances = _getInitialAssetBal(); // With stake we automatically claim the rewards generated _stake(amountLeft); // We update the fees per asset as rewards have been collected _updateFeesPerAsset(initialAssetBalances); uint256 diffDCHF = balanceOfDCHF() - initialBalanceDCHF; if (diffDCHF > 0) { _increaseF_DCHF(diffDCHF); } stakes[msg.sender] = amountLeft; totalMONStaked += amountLeft; // We update the snapshots so user starts earning from this moment _updateUserSnapshots(msg.sender); emit StakeChanged(msg.sender, amountLeft); } /// @notice For claiming the unvested MON from Vesting function claimMONVesting() external entityRuleVestingExists(msg.sender) { _sendMONVesting(msg.sender); } function _sendMONVesting(address _entity) private { uint256 unclaimedAmount = getClaimableMONVesting(_entity); if (unclaimedAmount == 0) return; RuleVesting storage entityRule = entitiesVesting[_entity]; entityRule.claimed += unclaimedAmount; totalMONVested = totalMONVested - unclaimedAmount; MON.safeTransfer(_entity, unclaimedAmount); emit Claim(_entity, unclaimedAmount); } function claimRewards() external nonReentrant stakeExists(msg.sender) { // Save initial contract balances uint256 initialBalanceDCHF = balanceOfDCHF(); uint256[] memory initialAssetBalances = _getInitialAssetBal(); // Claim rewards from the MONStaking contract _unstake(0); // We update the fees per asset as rewards have been collected _updateFeesPerAsset(initialAssetBalances); uint256 diffDCHF = balanceOfDCHF() - initialBalanceDCHF; if (diffDCHF > 0) { _increaseF_DCHF(diffDCHF); } // Update user snapshots to current state and send any accumulated asset & DCHF gains _processUserGains(msg.sender); } /// @notice For claiming existing rewards from the contract based on snapshots function claimExistingRewards() external nonReentrant stakeExists(msg.sender) { _processUserGains(msg.sender); } /// @notice For claiming the unvested MON from Freezing and the staking rewards function claimMONAndRewards() external nonReentrant stakeExists(msg.sender) { // Save initial contract balances uint256 initialBalanceDCHF = balanceOfDCHF(); uint256[] memory initialAssetBalances = _getInitialAssetBal(); // Claim the unvested MON, here we already unstake from stakingPool uint256 unclaimedAmount = getClaimableMONFreezing(msg.sender); if (unclaimedAmount > 0) { _unstake(unclaimedAmount); } // Update fees per Asset to reflect the last earnings state _updateFeesPerAsset(initialAssetBalances); uint256 diffDCHF = balanceOfDCHF() - initialBalanceDCHF; if (diffDCHF > 0) { _increaseF_DCHF(diffDCHF); } // Update user snapshots to current state and send any accumulated asset & DCHF gains _processUserGains(msg.sender); // We send the MON to the user after processing gains with the initial stake _sendMONFreezing(msg.sender, unclaimedAmount); } function _sendMONFreezing(address _entity, uint256 _unclaimedAmount) private { RuleVesting storage entityRule = entitiesFreezing[_entity]; entityRule.claimed += _unclaimedAmount; // Update state variables to reflect the reduction of MON totalMONStaked -= _unclaimedAmount; stakes[msg.sender] -= _unclaimedAmount; MON.safeTransfer(_entity, _unclaimedAmount); emit Claim(_entity, _unclaimedAmount); } function addAsset(address _asset) external onlyOwner { if (_asset == address(0)) revert ZeroAddress(); if (isAssetTracked[_asset] == true) revert AssetExists(_asset); isAssetTracked[_asset] = true; ASSET_TYPES.push(_asset); emit AssetAdded(_asset); } function changeTreasuryAddress(address _treasury) external onlyOwner { if (_treasury == address(0)) revert ZeroAddress(); treasury = _treasury; } function setFeeContract(address _feeContract) external onlyOwner { if (_feeContract == address(0)) revert ZeroAddress(); feeContract = _feeContract; } function setFee(uint256 _fee) external onlyOwner { require(_fee >= 0 && _fee < 10000, "Invalid fee value"); uint256 prevFee = protocolFee; protocolFee = _fee; emit SetFees(protocolFee, prevFee); } /// @notice Sweep tokens that are airdropped or transferred by mistake into the contract function sweep(address _token) external onlyOwner { if (_notProtectedTokens(_token) == false) revert ProtectedToken(_token); uint256 amount = IERC20(_token).balanceOf(address(this)); IERC20(_token).safeTransfer(treasury, amount); emit Sweep(_token, amount); } /// @notice This allows for flexibility and airdrop of ERC20 rewards to the stakers function airdropRewards(address _asset, uint256 _amount) external onlyFeeManagers { if (_asset == address(DCHF)) { DCHF.safeTransferFrom(msg.sender, address(this), _amount); _increaseF_DCHF(_amount); } else { if (isAssetTracked[_asset] == false) revert AssetNotExists(_asset); uint256 diffAssetWithPrecision = _decimalsPrecision(_asset, _amount); IERC20(_asset).safeTransferFrom(msg.sender, address(this), _amount); _increaseF_Asset(_asset, diffAssetWithPrecision); } } // --- Pending reward functions --- // function getPendingAssetGain(address _asset, address _user) public view returns (uint256 _assetGain) { _assetGain = _getPendingAssetGain(_asset, _user); } function getPendingDCHFGain(address _user) public view returns (uint256 _DCHFGain) { _DCHFGain = _getPendingDCHFGain(_user); } function _getPendingAssetGain(address _asset, address _user) internal view returns (uint256 _assetGain) { uint256 F_ASSET_Snapshot = snapshots[_user].F_ASSET_Snapshot[_asset]; _assetGain = (stakes[_user] * (F_ASSETS[_asset] - F_ASSET_Snapshot)) / PRECISION; } function _getPendingDCHFGain(address _user) internal view returns (uint256 _DCHFGain) { uint256 F_DCHF_Snapshot = snapshots[_user].F_DCHF_Snapshot; _DCHFGain = (stakes[_user] * (F_DCHF - F_DCHF_Snapshot)) / PRECISION; } // Returns the current claimable gain in DCHF since last user snapshots were taken function getUserPendingGainInDCHF(address _user) public view returns (uint256 _totalDCHFGain) { address[] memory assets = ASSET_TYPES; for (uint256 i = 0; i < assets.length; i++) { uint256 amountAsset = _getPendingAssetGain(assets[i], _user); uint256 priceAsset = getPriceAssetInDCHF(assets[i]); uint256 amountAssetInDCHF = (amountAsset * priceAsset) / PRECISION; // Precision 1e18 _totalDCHFGain += amountAssetInDCHF; } _totalDCHFGain += _getPendingDCHFGain(_user); } function getClaimableMONFreezing(address _entity) public view returns (uint256 claimable) { RuleVesting memory entityRule = entitiesFreezing[_entity]; if (block.timestamp < START_VESTING_FREEZING_DATE) return 0; if (block.timestamp >= END_VESTING_FREEZING_DATE) { claimable = entityRule.totalMON - entityRule.claimed; } else { claimable = ((entityRule.totalMON * (block.timestamp - START_VESTING_FREEZING_DATE)) / (END_VESTING_FREEZING_DATE - START_VESTING_FREEZING_DATE)) - entityRule.claimed; } } function getClaimableMONVesting(address _entity) public view returns (uint256 claimable) { RuleVesting memory entityRule = entitiesVesting[_entity]; if (block.timestamp < START_VESTING_DATE) return 0; if (block.timestamp >= END_VESTING_DATE) { claimable = entityRule.totalMON - entityRule.claimed; } else { claimable = ((entityRule.totalMON * (block.timestamp - START_VESTING_DATE)) / (END_VESTING_DATE - START_VESTING_DATE)) - entityRule.claimed; } } // --- Internal helper functions --- // function _updateUserSnapshots(address _user) internal { address[] memory assets = ASSET_TYPES; for (uint256 i = 0; i < assets.length; i = _uncheckedInc(i)) { _updateUserAssetSnapshot(_user, assets[i]); } _updateUserDCHFSnapshot(_user); } function _updateUserAssetSnapshot(address _user, address _asset) internal { snapshots[_user].F_ASSET_Snapshot[_asset] = F_ASSETS[_asset]; emit StakerSnapshotUpdated(_user, _asset, F_ASSETS[_asset]); } function _updateUserDCHFSnapshot(address _user) internal { snapshots[_user].F_DCHF_Snapshot = F_DCHF; emit StakerSnapshotUpdated(_user, address(DCHF), F_DCHF); } function _updateFeesPerAsset(uint256[] memory _initBalances) internal { address[] memory assets = ASSET_TYPES; for (uint256 i = 0; i < assets.length; i = _uncheckedInc(i)) { if (assets[i] == ETH_REF_ADDRESS) { uint256 balanceETH = address(this).balance; uint256 diffETH = balanceETH - _initBalances[i]; if (diffETH > 0) { _increaseF_Asset(assets[i], diffETH); } } else { uint256 balanceAsset = IERC20(assets[i]).balanceOf(address(this)); uint256 diffAsset = balanceAsset - _initBalances[i]; uint256 diffAssetWithPrecision = _decimalsPrecision(assets[i], diffAsset); if (diffAsset > 0) { _increaseF_Asset(assets[i], diffAssetWithPrecision); } } } } /// @notice F_ASSETS has a precision of 1e18 regardless the decimals of the asset function _increaseF_Asset(address _asset, uint256 _assetFee) internal { uint256 assetFeePerMONStaked; uint256 _totalMONStaked = totalMONStaked; if (_totalMONStaked > 0) { assetFeePerMONStaked = (_assetFee * PRECISION) / _totalMONStaked; } F_ASSETS[_asset] = F_ASSETS[_asset] + assetFeePerMONStaked; emit F_AssetUpdated(_asset, F_ASSETS[_asset]); } function _increaseF_DCHF(uint256 _DCHFFee) internal { uint256 DCHFFeePerMONStaked; uint256 _totalMONStaked = totalMONStaked; if (_totalMONStaked > 0) { DCHFFeePerMONStaked = (_DCHFFee * PRECISION) / _totalMONStaked; } F_DCHF = F_DCHF + DCHFFeePerMONStaked; emit F_DCHFUpdated(F_DCHF); } function _getInitialAssetBal() internal view returns (uint256[] memory) { address[] memory assets = ASSET_TYPES; uint256[] memory balances = new uint256[](assets.length); for (uint256 i = 0; i < assets.length; i = _uncheckedInc(i)) { if (assets[i] == ETH_REF_ADDRESS) { balances[i] = address(this).balance; } else { balances[i] = IERC20(assets[i]).balanceOf(address(this)); } } return balances; } function _processUserGains(address _user) internal { uint256 assetGain; address[] memory assets = ASSET_TYPES; for (uint256 i = 0; i < assets.length; i = _uncheckedInc(i)) { // Get the user pending asset gain assetGain = _getPendingAssetGain(assets[i], _user); // Update user F_ASSET_Snapshot[assets[i]] _updateUserAssetSnapshot(_user, assets[i]); // Transfer the asset gain to the user _sendAssetGainToUser(_user, assets[i], assetGain); emit StakingGainsAssetWithdrawn(_user, assets[i], assetGain); } // Get the user pending DCHF gain uint256 DCHFGain = _getPendingDCHFGain(_user); // Update user F_DCHF_Snapshot _updateUserDCHFSnapshot(_user); if (protocolFee > 0) { uint256 protocolGain = (DCHFGain * protocolFee) / 10000; DCHFGain -= protocolGain; DCHF.safeTransfer(treasury, protocolGain); } // Transfer the DCHF gain to the user DCHF.safeTransfer(_user, DCHFGain); emit StakingGainsDCHFWithdrawn(_user, DCHFGain); } function _sendAssetGainToUser( address _user, address _asset, uint256 _assetGain ) internal { _assetGain = _decimalsCorrection(_asset, _assetGain); // If there are protocolFees we charge a percentage and send it to the treasury if (protocolFee > 0) { uint256 protocolGain = (_assetGain * protocolFee) / 10000; _assetGain -= protocolGain; _sendToTreasury(_asset, protocolGain); } _sendAsset(_user, _asset, _assetGain); emit AssetSent(_asset, _user, _assetGain); } /// @notice F_ASSETS has a precision of 1e18 regardless the decimals of the asset function _decimalsCorrection(address _token, uint256 _amount) internal view returns (uint256) { if (_token == address(0)) return _amount; if (_amount == 0) return 0; uint8 decimals = IERC20Metadata(_token).decimals(); if (decimals < 18) { return _amount / (10**(18 - decimals)); } else { return _amount * (10**(decimals - 18)); } } /// @notice F_ASSETS has a precision of 1e18 regardless the decimals of the asset function _decimalsPrecision(address _token, uint256 _amount) internal view returns (uint256) { if (_token == address(0)) return _amount; if (_amount == 0) return 0; uint8 decimals = IERC20Metadata(_token).decimals(); if (decimals < 18) { return _amount * (10**(18 - decimals)); } else { return _amount / (10**(decimals - 18)); } } function _sendToTreasury(address _asset, uint256 _amount) internal { _sendAsset(treasury, _asset, _amount); emit SentToTreasury(_asset, _amount); } function _sendAsset( address _to, address _asset, uint256 _amount ) internal { if (_asset == ETH_REF_ADDRESS) { (bool success, ) = _to.call{value: _amount}(""); if (success == false) revert FailToSendETH(); } else { IERC20(_asset).safeTransfer(_to, _amount); } } function _stake(uint256 _amount) internal { IMONStaking(stakingPool).stake(_amount); } function _unstake(uint256 _amount) internal { IMONStaking(stakingPool).unstake(_amount); } /// @notice Unchecked increment of an index for gas optimization purposes function _uncheckedInc(uint256 i) internal pure returns (uint256) { unchecked { return i + 1; } } function _notProtectedTokens(address _token) internal view returns (bool) { if (_token == address(DCHF) || _token == address(MON)) return false; address[] memory assets = ASSET_TYPES; for (uint256 i = 0; i < assets.length; i++) { if (assets[i] == _token) return false; } return true; } // --- 'Public view' functions --- // function balanceOfDCHF() public view returns (uint256 _balanceDCHF) { _balanceDCHF = DCHF.balanceOf(address(this)); } // Returns the global pending staking rewards that this contract could claim from the stakingPool function getGlobalPendingRewardsInDCHF() public view returns (uint256 _rewardsInDCHF) { uint256 amountDCHF = IMONStaking(stakingPool).getPendingDCHFGain(address(this)); uint256 amountAssetsInDCHF; address[] memory assets = ASSET_TYPES; for (uint256 i = 0; i < assets.length; i++) { uint256 amountAsset = IMONStaking(stakingPool).getPendingAssetGain(assets[i], address(this)); uint256 priceAsset = getPriceAssetInDCHF(assets[i]); uint256 amountAssetInDCHF = (amountAsset * priceAsset) / PRECISION; amountAssetsInDCHF += amountAssetInDCHF; } _rewardsInDCHF = amountDCHF + amountAssetsInDCHF; } function getPriceAssetInDCHF(address _asset) public view returns (uint256 _price) { _price = IPriceFeed(oracle).getDirectPrice(_asset); // 1e18 precision } function getUserSnapshot(address _user, address _asset) public view returns (uint256 _snapshot) { if (_asset == address(DCHF)) { _snapshot = snapshots[_user].F_DCHF_Snapshot; } else { _snapshot = snapshots[_user].F_ASSET_Snapshot[_asset]; } } function status() public view returns (uint256 _totalMONVested, uint256 _totalMONStaked) { (_totalMONVested, _totalMONStaked) = (totalMONVested, totalMONStaked); } function isFreezerUser(address _user) public view returns (bool _freezingUser) { if (stakes[_user] > 0) return true; return false; } // --- 'Require' functions --- // modifier entityRuleVestingExists(address _entity) { require(entitiesVesting[_entity].totalMON != 0, "Missing Vesting Rule"); _; } modifier stakeExists(address _entity) { require(stakes[_entity] > 0, "Missing Stake"); _; } modifier onlyFeeManagers() { require(msg.sender == owner() || msg.sender == feeContract, "Not Authorized"); _; } modifier callerIsStakingPool() { if (msg.sender != stakingPool) revert NotStakingPool(msg.sender); _; } receive() external payable callerIsStakingPool {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be 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 ReentrancyGuard { // 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; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * 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. */ 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 proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _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} * * _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 the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _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} * * _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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// 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 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev 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) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"AssetExists","type":"error"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"AssetNotExists","type":"error"},{"inputs":[],"name":"FailToSendETH","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"NotStakingPool","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"ProtectedToken","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"inputs":[],"name":"ZeroAmount","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"asset","type":"address"}],"name":"AssetAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AssetSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimAirdrop","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"F_ASSET","type":"uint256"}],"name":"F_AssetUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"F_DCHF","type":"uint256"}],"name":"F_DCHFUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SentToTreasury","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"prevFee","type":"uint256"}],"name":"SetFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"newStake","type":"uint256"}],"name":"StakeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"F_Snapshot","type":"uint256"}],"name":"StakerSnapshotUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"assetGain","type":"uint256"}],"name":"StakingGainsAssetWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"DCHFGain","type":"uint256"}],"name":"StakingGainsDCHFWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Sweep","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ASSET_TYPES","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DCHF","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"END_VESTING_DATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"END_VESTING_FREEZING_DATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETH_REF_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"F_ASSETS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"F_DCHF","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MON","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_VESTING_DATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_VESTING_FREEZING_DATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VEST_DELAY_FREEZER","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VEST_TIME_FREEZER","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VEST_TIME_VESTING","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WBTC_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"addAsset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_entity","type":"address"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"name":"addEntityVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_entities","type":"address[]"},{"internalType":"uint256[]","name":"_totalSupplies","type":"uint256[]"}],"name":"addEntityVestingBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"addUserToFreezer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"airdropRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"balanceOfDCHF","outputs":[{"internalType":"uint256","name":"_balanceDCHF","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"changeTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claimAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimExistingRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimMONAndRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimMONVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"entitiesFreezing","outputs":[{"internalType":"uint256","name":"totalMON","type":"uint256"},{"internalType":"uint256","name":"claimed","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"entitiesVesting","outputs":[{"internalType":"uint256","name":"totalMON","type":"uint256"},{"internalType":"uint256","name":"claimed","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_entity","type":"address"}],"name":"getClaimableMONFreezing","outputs":[{"internalType":"uint256","name":"claimable","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_entity","type":"address"}],"name":"getClaimableMONVesting","outputs":[{"internalType":"uint256","name":"claimable","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGlobalPendingRewardsInDCHF","outputs":[{"internalType":"uint256","name":"_rewardsInDCHF","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_user","type":"address"}],"name":"getPendingAssetGain","outputs":[{"internalType":"uint256","name":"_assetGain","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getPendingDCHFGain","outputs":[{"internalType":"uint256","name":"_DCHFGain","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"getPriceAssetInDCHF","outputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserPendingGainInDCHF","outputs":[{"internalType":"uint256","name":"_totalDCHFGain","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address","name":"_asset","type":"address"}],"name":"getUserSnapshot","outputs":[{"internalType":"uint256","name":"_snapshot","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"isFreezerUser","outputs":[{"internalType":"bool","name":"_freezingUser","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_entity","type":"address"}],"name":"removeEntityVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_distributor","type":"address"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeContract","type":"address"}],"name":"setFeeContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"snapshots","outputs":[{"internalType":"uint256","name":"F_DCHF_Snapshot","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"status","outputs":[{"internalType":"uint256","name":"_totalMONVested","type":"uint256"},{"internalType":"uint256","name":"_totalMONStaked","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101e06040526000608052732260fac5e5542a773aa44fbcfedf7c193bc2c59960a052738bc3702c35d33e5df7cb0f06cb72a0c34ae0c56f60c0527309ab3c0ce6cb41c13343879a667a6bdad65ee9da60e0527f4135b07a64a1556c5d12665b11cf454f3add32c6cce3b74d016691d77a0fa1f261010052731ea48b9965bb5086f3b468e50ed93888a661fc176101205273045da4bfe02b320f4403674b3b7d121737727a3661014052348015620000b657600080fd5b50620000c23362000120565b6001805542610160819052620000de906305265c009062000170565b61018052620000f2630a4cb8004262000170565b6101a05262ed4e006200010a630a4cb8004262000170565b62000116919062000170565b6101c05262000197565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600082198211156200019257634e487b7160e01b600052601160045260246000fd5b500190565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516141de6200034460003960008181610b1101528181611abd0152611b1e01526000818161089a01528181611a8c01528181611afd01528181611b4701526122ae015260008181610592015281816118a7015261190f015260008181610a5301528181611876015281816118ee01526119380152600081816109ad01528181610d530152818161124b015281816114460152818161148a0152818161263701528181612fe80152818161302501526137e7015260008181610abd0152818161181a01528181611d3801528181611ded0152818161222f0152818161256b015281816126720152818161284d015281816132c101526135560152600081816105e60152610eaf0152600081816108ce015261109501526000818161038a015281816104a801528181611d0801528181611dbd01528181611edf01528181611fbc01528181612b4b0152613423015260008181610b450152611cb201526000818161086601528181611c3c01528181612a0d01528181612c20015261398701526141de6000f3fe60806040526004361061037a5760003560e01c806365c2975e116101d1578063a3f4df7e11610102578063bdd5915f116100a0578063ef87b8fc1161006f578063ef87b8fc14610bbc578063f2fde38b14610bd4578063fa0fb0c314610bf4578063feea54f814610c1457600080fd5b8063bdd5915f14610b33578063bfe1092814610b67578063db7a1ef314610b87578063e21caf6d14610ba757600080fd5b8063b0e21e8a116100dc578063b0e21e8a14610a95578063b366097c14610aab578063b4b5e54014610adf578063b55a058314610aff57600080fd5b8063a3f4df7e146109f9578063a56016c314610a41578063a6f353f014610a7557600080fd5b80638174a5f21161016f57806390107afe1161014957806390107afe1461097b578063947d9fa01461099b5780639b87df40146109cf5780639d8c2826146109e457600080fd5b80638174a5f21461091057806384b018b21461093d5780638da5cb5b1461095d57600080fd5b806372141e63116101ab57806372141e631461085457806373d48942146108885780637dc0d1d0146108bc5780637dea153e146108f057600080fd5b806365c2975e146107ff57806369fe0e2d1461081f578063715018a61461083f57600080fd5b806334b3081f116102ab578063528dc573116102495780635b7b3dc9116102235780635b7b3dc914610771578063606c08201461078657806361d027b3146107a657806365930d14146107cb57600080fd5b8063528dc5731461070657806357fe7640146107265780635aa00ba81461075a57600080fd5b8063392e53cd11610285578063392e53cd1461066d5780633c71b2b51461069757806342dbe168146106d057806346bca504146106f057600080fd5b806334b3081f146106085780633522c6e814610638578063372500ab1461065857600080fd5b806316934fc411610318578063298410e5116102f2578063298410e5146105605780632b1223ce146105805780632d2d55eb146105b45780632eb4a7ab146105d457600080fd5b806316934fc4146104ea5780631754df2d14610517578063200d2ed21461053757600080fd5b80630bcae1ac116103545780630bcae1ac146104565780630c407cfe146104765780630c56ae3b1461049657806313759e7a146104ca57600080fd5b806301681a62146103d657806304798b6a146103f657806306e297121461041e57600080fd5b366103d157336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146103cf57604051630580b1f360e51b81523360048201526024015b60405180910390fd5b005b600080fd5b3480156103e257600080fd5b506103cf6103f1366004613bd2565b610c29565b34801561040257600080fd5b5061040b610d3b565b6040519081526020015b60405180910390f35b34801561042a57600080fd5b5060045461043e906001600160a01b031681565b6040516001600160a01b039091168152602001610415565b34801561046257600080fd5b506103cf610471366004613bed565b610dcb565b34801561048257600080fd5b5061040b610491366004613bd2565b610f5c565b3480156104a257600080fd5b5061043e7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104d657600080fd5b5061040b6104e5366004613bd2565b611073565b3480156104f657600080fd5b5061040b610505366004613bd2565b60086020526000908152604090205481565b34801561052357600080fd5b5061043e610532366004613c6c565b611108565b34801561054357600080fd5b50600a546009545b60408051928352602083019190915201610415565b34801561056c57600080fd5b506103cf61057b366004613bd2565b611132565b34801561058c57600080fd5b5061040b7f000000000000000000000000000000000000000000000000000000000000000081565b3480156105c057600080fd5b5061040b6105cf366004613c85565b611247565b3480156105e057600080fd5b5061040b7f000000000000000000000000000000000000000000000000000000000000000081565b34801561061457600080fd5b5061040b610623366004613bd2565b600d6020526000908152604090206001015481565b34801561064457600080fd5b5061040b610653366004613c85565b6112d0565b34801561066457600080fd5b506103cf6112dc565b34801561067957600080fd5b506002546106879060ff1681565b6040519015158152602001610415565b3480156106a357600080fd5b506106af630a4cb80081565b6040516fffffffffffffffffffffffffffffffff9091168152602001610415565b3480156106dc57600080fd5b506103cf6106eb366004613bd2565b611393565b3480156106fc57600080fd5b5061040b600c5481565b34801561071257600080fd5b506103cf610721366004613cb8565b6113e4565b34801561073257600080fd5b5061054b610741366004613bd2565b6006602052600090815260409020805460019091015482565b34801561076657600080fd5b506106af62ed4e0081565b34801561077d57600080fd5b506103cf611539565b34801561079257600080fd5b506103cf6107a1366004613db8565b61160d565b3480156107b257600080fd5b5060025461043e9061010090046001600160a01b031681565b3480156107d757600080fd5b5061054b6107e6366004613bd2565b6007602052600090815260409020805460019091015482565b34801561080b57600080fd5b5061040b61081a366004613bd2565b611842565b34801561082b57600080fd5b506103cf61083a366004613c6c565b611983565b34801561084b57600080fd5b506103cf611a16565b34801561086057600080fd5b5061043e7f000000000000000000000000000000000000000000000000000000000000000081565b34801561089457600080fd5b5061040b7f000000000000000000000000000000000000000000000000000000000000000081565b3480156108c857600080fd5b5061043e7f000000000000000000000000000000000000000000000000000000000000000081565b3480156108fc57600080fd5b5061068761090b366004613bd2565b611a2a565b34801561091c57600080fd5b5061040b61092b366004613bd2565b600b6020526000908152604090205481565b34801561094957600080fd5b5061040b610958366004613bd2565b611a58565b34801561096957600080fd5b506000546001600160a01b031661043e565b34801561098757600080fd5b506103cf610996366004613c85565b611b6c565b3480156109a757600080fd5b5061043e7f000000000000000000000000000000000000000000000000000000000000000081565b3480156109db57600080fd5b506103cf611e5a565b3480156109f057600080fd5b5061040b611ebd565b348015610a0557600080fd5b50610a346040518060400160405280600f81526020016e105a5c991c9bdc10dbdb9d1c9858dd608a1b81525081565b6040516104159190613ea4565b348015610a4d57600080fd5b5061040b7f000000000000000000000000000000000000000000000000000000000000000081565b348015610a8157600080fd5b506103cf610a90366004613bd2565b6120e5565b348015610aa157600080fd5b5061040b60055481565b348015610ab757600080fd5b5061043e7f000000000000000000000000000000000000000000000000000000000000000081565b348015610aeb57600080fd5b5061040b610afa366004613bd2565b61213c565b348015610b0b57600080fd5b5061040b7f000000000000000000000000000000000000000000000000000000000000000081565b348015610b3f57600080fd5b5061043e7f000000000000000000000000000000000000000000000000000000000000000081565b348015610b7357600080fd5b5060035461043e906001600160a01b031681565b348015610b9357600080fd5b506103cf610ba2366004613cb8565b612147565b348015610bb357600080fd5b506103cf612257565b348015610bc857600080fd5b5061040b6305265c0081565b348015610be057600080fd5b506103cf610bef366004613bd2565b612427565b348015610c0057600080fd5b506103cf610c0f366004613bd2565b6124a0565b348015610c2057600080fd5b506103cf6125a2565b610c316125d9565b610c3a81612633565b1515600003610c67576040516310caf96960e31b81526001600160a01b03821660048201526024016103c6565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610cae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd29190613ed7565b600254909150610cf4906001600160a01b038481169161010090041683612776565b816001600160a01b03167fab2246061d7b0dd3631d037e3f6da75782ae489eeb9f6af878a4b25df9b07c7782604051610d2f91815260200190565b60405180910390a25050565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610da2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc69190613ed7565b905090565b33600090815260066020526040902054158015610dee5750610dec33611a2a565b155b610e3a5760405162461bcd60e51b815260206004820152601760248201527f41697244726f7020616c726561647920636c61696d656400000000000000000060448201526064016103c6565b6040516bffffffffffffffffffffffff193360601b16602082015260348101849052600090605401604051602081830303815290604052805190602001209050610eda8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f000000000000000000000000000000000000000000000000000000000000000092508591506127d99050565b610f165760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b60448201526064016103c6565b610f2033856127ef565b60405184815233907fcebbbce55cb558a80c89a83b5e23dca5186979853be88c28e9e01232c7fdc98b906020015b60405180910390a250505050565b600080600e805480602002602001604051908101604052809291908181526020018280548015610fb557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610f97575b5050505050905060005b8151811015611058576000610fed838381518110610fdf57610fdf613ef0565b602002602001015186612877565b9050600061101384848151811061100657611006613ef0565b6020026020010151611073565b90506000670de0b6b3a764000061102a8385613f1c565b6110349190613f3b565b90506110408187613f5d565b9550505050808061105090613f75565b915050610fbf565b50611062836128f5565b61106c9083613f5d565b9392505050565b604051630553245160e11b81526001600160a01b0382811660048301526000917f000000000000000000000000000000000000000000000000000000000000000090911690630aa648a290602401602060405180830381865afa1580156110de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111029190613ed7565b92915050565b600e818154811061111857600080fd5b6000918252602090912001546001600160a01b0316905081565b61113a6125d9565b6001600160a01b0381166111615760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b0381166000908152600f602052604090205460ff1615156001036111aa576040516314cc0e9d60e11b81526001600160a01b03821660048201526024016103c6565b6001600160a01b0381166000818152600f60209081526040808320805460ff19166001908117909155600e805491820181559093527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd90920180546001600160a01b0319168417905590519182527f0e3c58ebfb2e7465fbb1c32e6b4f40c3c4f5ca77e8218a386aff8617831260d791015b60405180910390a150565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316036112a457506001600160a01b0382166000908152600d6020526040902060010154611102565b506001600160a01b039182166000908152600d6020908152604080832093909416825291909152205490565b600061106c8383612877565b6002600154036112fe5760405162461bcd60e51b81526004016103c690613f8e565b60026001553360008181526008602052604090205461132f5760405162461bcd60e51b81526004016103c690613fc5565b6000611339610d3b565b90506000611345612956565b90506113516000612b35565b61135a81612bb3565b600082611365610d3b565b61136f9190613fec565b905080156113805761138081612dcf565b61138933612e46565b5050600180555050565b61139b6125d9565b6001600160a01b0381166113c25760405163d92e233d60e01b815260040160405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633148061140757506004546001600160a01b031633145b6114445760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016103c6565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316036114bf576114b26001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084613087565b6114bb81612dcf565b5050565b6001600160a01b0382166000908152600f602052604081205460ff16151590036115075760405163c3457d6560e01b81526001600160a01b03831660048201526024016103c6565b600061151383836130c5565b905061152a6001600160a01b038416333085613087565b61153483826131a6565b505050565b60026001540361155b5760405162461bcd60e51b81526004016103c690613f8e565b60026001553360008181526008602052604090205461158c5760405162461bcd60e51b81526004016103c690613fc5565b6000611596610d3b565b905060006115a2612956565b905060006115af33611a58565b905080156115c0576115c081612b35565b6115c982612bb3565b6000836115d4610d3b565b6115de9190613fec565b905080156115ef576115ef81612dcf565b6115f833612e46565b6116023383613244565b505060018055505050565b6116156125d9565b805182511461165f5760405162461bcd60e51b8152602060048201526016602482015275082e4e4c2f240d8cadccee8d040dad2e6e6dac2e8c6d60531b60448201526064016103c6565b6000805b83518110156117f45760006001600160a01b031684828151811061168957611689613ef0565b60200260200101516001600160a01b0316036116b85760405163d92e233d60e01b815260040160405180910390fd5b600660008583815181106116ce576116ce613ef0565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600001546000146117415760405162461bcd60e51b81526020600482015260156024820152744578697374696e672056657374696e672052756c6560581b60448201526064016103c6565b604051806040016040528084838151811061175e5761175e613ef0565b6020026020010151815260200160008152506006600086848151811061178657611786613ef0565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101559050508281815181106117d7576117d7613ef0565b6020026020010151826117ea9190613f5d565b9150600101611663565b5080600a60008282546118079190613f5d565b9091555061153490506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084613087565b6001600160a01b038116600090815260066020908152604080832081518083019092528054825260010154918101919091527f00000000000000000000000000000000000000000000000000000000000000004210156118a55750600092915050565b7f000000000000000000000000000000000000000000000000000000000000000042106118e457602081015181516118dd9190613fec565b915061197d565b60208101516119337f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000613fec565b61195d7f000000000000000000000000000000000000000000000000000000000000000042613fec565b83516119699190613f1c565b6119739190613f3b565b61106c9190613fec565b50919050565b61198b6125d9565b61271081106119d05760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964206665652076616c756560781b60448201526064016103c6565b600580549082905560408051838152602081018390527f3be6e637f54f081a2dd12982cfd58481304fc98b604b18fa8ed4aa4e4a9d153291015b60405180910390a15050565b611a1e6125d9565b611a286000613330565b565b6001600160a01b03811660009081526008602052604081205415611a5057506001919050565b506000919050565b6001600160a01b038116600090815260076020908152604080832081518083019092528054825260010154918101919091527f0000000000000000000000000000000000000000000000000000000000000000421015611abb5750600092915050565b7f00000000000000000000000000000000000000000000000000000000000000004210611af357602081015181516118dd9190613fec565b6020810151611b427f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000613fec565b61195d7f000000000000000000000000000000000000000000000000000000000000000042613fec565b611b746125d9565b60025460ff1615611bbd5760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e48125b9a5d1a585b1a5e9959606a1b60448201526064016103c6565b6001600160a01b0382161580611bda57506001600160a01b038116155b15611bf85760405163d92e233d60e01b815260040160405180910390fd5b600280546001600160a01b03848116610100026001600160a81b0319909216919091176001908117909255600380548483166001600160a01b0319918216179091557f000000000000000000000000000000000000000000000000000000000000000082166000818152600f6020526040808220805460ff199081168817909155600e805480890182557fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd908101805488169096179095557f00000000000000000000000000000000000000000000000000000000000000008716808552838520805490931689179092558054978801815583529590920180549093169094179091555163095ea7b360e01b81527f00000000000000000000000000000000000000000000000000000000000000008216600482015260248101929092527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b3906044016020604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da59190614003565b5060405163095ea7b360e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015260001960248301527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b3906044016020604051808303816000875af1158015611e36573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115349190614003565b600260015403611e7c5760405162461bcd60e51b81526004016103c690613f8e565b600260015533600081815260086020526040902054611ead5760405162461bcd60e51b81526004016103c690613fc5565b611eb633612e46565b5060018055565b6040516302d2d79560e61b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b4b5e54090602401602060405180830381865afa158015611f26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f4a9190613ed7565b9050600080600e805480602002602001604051908101604052809291908181526020018280548015611fa557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611f87575b5050505050905060005b81518110156120d25760007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633522c6e8848481518110611ffb57611ffb613ef0565b60209081029190910101516040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa158015612050573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120749190613ed7565b9050600061208d84848151811061100657611006613ef0565b90506000670de0b6b3a76400006120a48385613f1c565b6120ae9190613f3b565b90506120ba8187613f5d565b955050505080806120ca90613f75565b915050611faf565b506120dd8284613f5d565b935050505090565b6120ed6125d9565b6001600160a01b0381166121145760405163d92e233d60e01b815260040160405180910390fd5b600280546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000611102826128f5565b61214f6125d9565b6001600160a01b0382166121765760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b038216600090815260066020526040902054156121d45760405162461bcd60e51b81526020600482015260156024820152744578697374696e672056657374696e672052756c6560581b60448201526064016103c6565b604080518082018252828152600060208083018281526001600160a01b03871683526006909152928120915182559151600190910155600a805483929061221c908490613f5d565b909155506114bb90506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084613087565b6002600154036122795760405162461bcd60e51b81526004016103c690613f8e565b60026001553360008181526006602052604081205490036122ac5760405162461bcd60e51b81526004016103c690614025565b7f0000000000000000000000000000000000000000000000000000000000000000421061230b5760405162461bcd60e51b815260206004820152600d60248201526c115b99081bd9881c195c9a5bd9609a1b60448201526064016103c6565b600061231633613380565b90508060000361233957604051631f2a200560e01b815260040160405180910390fd5b60408051808201825282815260006020808301828152338352600790915292812091518255915160019091015561236e610d3b565b9050600061237a612956565b90506123858361340d565b61238e81612bb3565b600082612399610d3b565b6123a39190613fec565b905080156123b4576123b481612dcf565b336000908152600860205260408120859055600980548692906123d8908490613f5d565b909155506123e790503361345a565b60405184815233907f39df0e5286a3ef2f42a0bf52f32cfe2c58e5b0405f47fe512f2c2439e4cfe2049060200160405180910390a2505060018055505050565b61242f6125d9565b6001600160a01b0381166124945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103c6565b61249d81613330565b50565b6002600154036124c25760405162461bcd60e51b81526004016103c690613f8e565b60026001556124cf6125d9565b6001600160a01b0381166000908152600660205260408120548291036125075760405162461bcd60e51b81526004016103c690614025565b61251082611a2a565b1561254c5760405162461bcd60e51b815260206004820152600c60248201526b4f6e6c79205665737465727360a01b60448201526064016103c6565b600061255783613380565b600254909150612599906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169161010090041683612776565b50506001805550565b3360008181526006602052604081205490036125d05760405162461bcd60e51b81526004016103c690614025565b61249d336134ed565b6000546001600160a01b03163314611a285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c6565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614806126a657507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316145b156126b357506000919050565b6000600e80548060200260200160405190810160405280929190818152602001828054801561270b57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116126ed575b5050505050905060005b815181101561276c57836001600160a01b031682828151811061273a5761273a613ef0565b60200260200101516001600160a01b03160361275a575060009392505050565b8061276481613f75565b915050612715565b5060019392505050565b6040516001600160a01b03831660248201526044810182905261153490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261357d565b6000826127e6858461364f565b14949350505050565b604080518082018252828152600060208083018281526001600160a01b03871683526006909152928120915182559151600190910155600a8054839290612837908490613f5d565b90915550506003546114bb906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691163084613087565b6001600160a01b038082166000908152600d60209081526040808320938616835292815282822054600b90915291812054909190670de0b6b3a7640000906128c0908390613fec565b6001600160a01b0385166000908152600860205260409020546128e39190613f1c565b6128ed9190613f3b565b949350505050565b6001600160a01b0381166000908152600d6020526040812060010154600c54670de0b6b3a764000090612929908390613fec565b6001600160a01b03851660009081526008602052604090205461294c9190613f1c565b61106c9190613f3b565b60606000600e8054806020026020016040519081016040528092919081815260200182805480156129b057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612992575b505050505090506000815167ffffffffffffffff8111156129d3576129d3613ce2565b6040519080825280602002602001820160405280156129fc578160200160208202803683370190505b50905060005b8251811015612b2e577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316838281518110612a4757612a47613ef0565b60200260200101516001600160a01b031603612a815747828281518110612a7057612a70613ef0565b602002602001018181525050612b26565b828181518110612a9357612a93613ef0565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612ae3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b079190613ed7565b828281518110612b1957612b19613ef0565b6020026020010181815250505b600101612a02565b5092915050565b6040516305c2fbcf60e31b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e17de78906024015b600060405180830381600087803b158015612b9857600080fd5b505af1158015612bac573d6000803e3d6000fd5b5050505050565b6000600e805480602002602001604051908101604052809291908181526020018280548015612c0b57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612bed575b5050505050905060005b8151811015611534577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316828281518110612c5a57612c5a613ef0565b60200260200101516001600160a01b031603612cce5760004790506000848381518110612c8957612c89613ef0565b602002602001015182612c9c9190613fec565b90508015612cc757612cc7848481518110612cb957612cb9613ef0565b6020026020010151826131a6565b5050612dc7565b6000828281518110612ce257612ce2613ef0565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612d32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d569190613ed7565b90506000848381518110612d6c57612d6c613ef0565b602002602001015182612d7f9190613fec565b90506000612da6858581518110612d9857612d98613ef0565b6020026020010151836130c5565b90508115612dc357612dc3858581518110612cb957612cb9613ef0565b5050505b600101612c15565b6009546000908015612dfb5780612dee670de0b6b3a764000085613f1c565b612df89190613f3b565b91505b81600c54612e099190613f5d565b600c8190556040519081527f3186b498819902d8f8768a5d1deaabbbdf0a0810af2dd82170e79e46230e81129060200160405180910390a1505050565b600080600e805480602002602001604051908101604052809291908181526020018280548015612e9f57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612e81575b5050505050905060005b8151811015612f8c57612ed5828281518110612ec757612ec7613ef0565b602002602001015185612877565b9250612efa84838381518110612eed57612eed613ef0565b602002602001015161369c565b612f1e84838381518110612f1057612f10613ef0565b602002602001015185613711565b818181518110612f3057612f30613ef0565b60200260200101516001600160a01b0316846001600160a01b03167f5461929fc7866d2777ffdec3e8203fb397bb1c8d727549022e6128217bf80ae385604051612f7c91815260200190565b60405180910390a3600101612ea9565b506000612f98846128f5565b9050612fa3846137ba565b6005541561301857600061271060055483612fbe9190613f1c565b612fc89190613f3b565b9050612fd48183613fec565b600254909250613016906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169161010090041683612776565b505b61304c6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168583612776565b836001600160a01b03167f6a3166b01bcb942408af82481d1deb05a20a96b8ebb2435536f209d2a55c7a8282604051610f4e91815260200190565b6040516001600160a01b03808516602483015283166044820152606481018290526130bf9085906323b872dd60e01b906084016127a2565b50505050565b60006001600160a01b0383166130dc575080611102565b816000036130ec57506000611102565b6000836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561312c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131509190614053565b905060128160ff16101561318657613169816012614076565b61317490600a61417d565b61317e9084613f1c565b915050611102565b613191601282614076565b61319c90600a61417d565b61317e9084613f3b565b60095460009080156131d257806131c5670de0b6b3a764000085613f1c565b6131cf9190613f3b565b91505b6001600160a01b0384166000908152600b60205260409020546131f6908390613f5d565b6001600160a01b0385166000818152600b6020526040908190208390555190917fae1df072173f21c2cc2e0aa1368be1b6b7b0f4f295d82ccae83bd489a5575f2991610f4e91815260200190565b6001600160a01b038216600090815260076020526040812060018101805491928492613271908490613f5d565b92505081905550816009600082825461328a9190613fec565b909155505033600090815260086020526040812080548492906132ae908490613fec565b909155506132e890506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168484612776565b826001600160a01b03167f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d48360405161332391815260200190565b60405180910390a2505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061338b826134ed565b6001600160a01b038216600090815260066020908152604091829020825180840190935280548084526001909101549183018290526133ca9190613fec565b600a546133d79190613fec565b600a556001600160a01b0383166000908152600660209081526040822082815560010191909155810151815161106c9190613fec565b60405163534a7e1d60e11b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a694fc3a90602401612b7e565b6000600e8054806020026020016040519081016040528092919081815260200182805480156134b257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311613494575b5050505050905060005b81518110156134e3576134db83838381518110612eed57612eed613ef0565b6001016134bc565b506114bb826137ba565b60006134f882611842565b905080600003613506575050565b6001600160a01b038216600090815260066020526040812060018101805491928492613533908490613f5d565b9091555050600a54613546908390613fec565b600a556132e86001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168484612776565b60006135d2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166138419092919063ffffffff16565b80519091501561153457808060200190518101906135f09190614003565b6115345760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103c6565b600081815b8451811015613694576136808286838151811061367357613673613ef0565b6020026020010151613850565b91508061368c81613f75565b915050613654565b509392505050565b6001600160a01b038181166000818152600b6020818152604080842054958816808552600d83528185208686528352938190208690559181528151928352820192909252908101919091527fd0630f4bd33869af4f5772c8d5f1445aecb0ab3637a101508a63fe2e8603c80390606001611a0a565b61371b828261387f565b6005549091501561375d576000612710600554836137399190613f1c565b6137439190613f3b565b905061374f8183613fec565b915061375b838261392e565b505b613768838383613985565b826001600160a01b0316826001600160a01b03167ff89c3306c782ffbbe4593aa5673e97e9ad6a8c65d240405e8986363fada66392836040516137ad91815260200190565b60405180910390a3505050565b600c546001600160a01b038281166000818152600d602090815260409182902060010185905581519283527f000000000000000000000000000000000000000000000000000000000000000090931692820192909252908101919091527fd0630f4bd33869af4f5772c8d5f1445aecb0ab3637a101508a63fe2e8603c8039060600161123c565b60606128ed8484600085613a4c565b600081831061386c57600082815260208490526040902061106c565b600083815260208390526040902061106c565b60006001600160a01b038316613896575080611102565b816000036138a657506000611102565b6000836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156138e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061390a9190614053565b905060128160ff16101561392357613191816012614076565b613169601282614076565b60025461394a9061010090046001600160a01b03168383613985565b816001600160a01b03167fcb3b1cf844e7338746f3d6afd66ab59782b22b7e485960c851b6e77689714da482604051610d2f91815260200190565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031603613a38576000836001600160a01b03168260405160006040518083038185875af1925050503d8060008114613a0b576040519150601f19603f3d011682016040523d82523d6000602084013e613a10565b606091505b50909150508015156000036130bf57604051630dd113f360e21b815260040160405180910390fd5b6115346001600160a01b0383168483612776565b606082471015613aad5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103c6565b6001600160a01b0385163b613b045760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103c6565b600080866001600160a01b03168587604051613b20919061418c565b60006040518083038185875af1925050503d8060008114613b5d576040519150601f19603f3d011682016040523d82523d6000602084013e613b62565b606091505b5091509150613b72828286613b7d565b979650505050505050565b60608315613b8c57508161106c565b825115613b9c5782518084602001fd5b8160405162461bcd60e51b81526004016103c69190613ea4565b80356001600160a01b0381168114613bcd57600080fd5b919050565b600060208284031215613be457600080fd5b61106c82613bb6565b600080600060408486031215613c0257600080fd5b83359250602084013567ffffffffffffffff80821115613c2157600080fd5b818601915086601f830112613c3557600080fd5b813581811115613c4457600080fd5b8760208260051b8501011115613c5957600080fd5b6020830194508093505050509250925092565b600060208284031215613c7e57600080fd5b5035919050565b60008060408385031215613c9857600080fd5b613ca183613bb6565b9150613caf60208401613bb6565b90509250929050565b60008060408385031215613ccb57600080fd5b613cd483613bb6565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613d2157613d21613ce2565b604052919050565b600067ffffffffffffffff821115613d4357613d43613ce2565b5060051b60200190565b600082601f830112613d5e57600080fd5b81356020613d73613d6e83613d29565b613cf8565b82815260059290921b84018101918181019086841115613d9257600080fd5b8286015b84811015613dad5780358352918301918301613d96565b509695505050505050565b60008060408385031215613dcb57600080fd5b823567ffffffffffffffff80821115613de357600080fd5b818501915085601f830112613df757600080fd5b81356020613e07613d6e83613d29565b82815260059290921b84018101918181019089841115613e2657600080fd5b948201945b83861015613e4b57613e3c86613bb6565b82529482019490820190613e2b565b96505086013592505080821115613e6157600080fd5b50613e6e85828601613d4d565b9150509250929050565b60005b83811015613e93578181015183820152602001613e7b565b838111156130bf5750506000910152565b6020815260008251806020840152613ec3816040850160208701613e78565b601f01601f19169190910160400192915050565b600060208284031215613ee957600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613f3657613f36613f06565b500290565b600082613f5857634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115613f7057613f70613f06565b500190565b600060018201613f8757613f87613f06565b5060010190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600d908201526c4d697373696e67205374616b6560981b604082015260600190565b600082821015613ffe57613ffe613f06565b500390565b60006020828403121561401557600080fd5b8151801515811461106c57600080fd5b6020808252601490820152734d697373696e672056657374696e672052756c6560601b604082015260600190565b60006020828403121561406557600080fd5b815160ff8116811461106c57600080fd5b600060ff821660ff84168082101561409057614090613f06565b90039392505050565b600181815b808511156140d45781600019048211156140ba576140ba613f06565b808516156140c757918102915b93841c939080029061409e565b509250929050565b6000826140eb57506001611102565b816140f857506000611102565b816001811461410e576002811461411857614134565b6001915050611102565b60ff84111561412957614129613f06565b50506001821b611102565b5060208310610133831016604e8410600b8410161715614157575081810a611102565b6141618383614099565b806000190482111561417557614175613f06565b029392505050565b600061106c60ff8416836140dc565b6000825161419e818460208701613e78565b919091019291505056fea2646970667358221220fd5b0fab03410ba84b02bc9993928adf70d4e35a1b71e8891ffe76c289c6f7b064736f6c634300080f0033Deployed Bytecode
0x60806040526004361061037a5760003560e01c806365c2975e116101d1578063a3f4df7e11610102578063bdd5915f116100a0578063ef87b8fc1161006f578063ef87b8fc14610bbc578063f2fde38b14610bd4578063fa0fb0c314610bf4578063feea54f814610c1457600080fd5b8063bdd5915f14610b33578063bfe1092814610b67578063db7a1ef314610b87578063e21caf6d14610ba757600080fd5b8063b0e21e8a116100dc578063b0e21e8a14610a95578063b366097c14610aab578063b4b5e54014610adf578063b55a058314610aff57600080fd5b8063a3f4df7e146109f9578063a56016c314610a41578063a6f353f014610a7557600080fd5b80638174a5f21161016f57806390107afe1161014957806390107afe1461097b578063947d9fa01461099b5780639b87df40146109cf5780639d8c2826146109e457600080fd5b80638174a5f21461091057806384b018b21461093d5780638da5cb5b1461095d57600080fd5b806372141e63116101ab57806372141e631461085457806373d48942146108885780637dc0d1d0146108bc5780637dea153e146108f057600080fd5b806365c2975e146107ff57806369fe0e2d1461081f578063715018a61461083f57600080fd5b806334b3081f116102ab578063528dc573116102495780635b7b3dc9116102235780635b7b3dc914610771578063606c08201461078657806361d027b3146107a657806365930d14146107cb57600080fd5b8063528dc5731461070657806357fe7640146107265780635aa00ba81461075a57600080fd5b8063392e53cd11610285578063392e53cd1461066d5780633c71b2b51461069757806342dbe168146106d057806346bca504146106f057600080fd5b806334b3081f146106085780633522c6e814610638578063372500ab1461065857600080fd5b806316934fc411610318578063298410e5116102f2578063298410e5146105605780632b1223ce146105805780632d2d55eb146105b45780632eb4a7ab146105d457600080fd5b806316934fc4146104ea5780631754df2d14610517578063200d2ed21461053757600080fd5b80630bcae1ac116103545780630bcae1ac146104565780630c407cfe146104765780630c56ae3b1461049657806313759e7a146104ca57600080fd5b806301681a62146103d657806304798b6a146103f657806306e297121461041e57600080fd5b366103d157336001600160a01b037f0000000000000000000000008bc3702c35d33e5df7cb0f06cb72a0c34ae0c56f16146103cf57604051630580b1f360e51b81523360048201526024015b60405180910390fd5b005b600080fd5b3480156103e257600080fd5b506103cf6103f1366004613bd2565b610c29565b34801561040257600080fd5b5061040b610d3b565b6040519081526020015b60405180910390f35b34801561042a57600080fd5b5060045461043e906001600160a01b031681565b6040516001600160a01b039091168152602001610415565b34801561046257600080fd5b506103cf610471366004613bed565b610dcb565b34801561048257600080fd5b5061040b610491366004613bd2565b610f5c565b3480156104a257600080fd5b5061043e7f0000000000000000000000008bc3702c35d33e5df7cb0f06cb72a0c34ae0c56f81565b3480156104d657600080fd5b5061040b6104e5366004613bd2565b611073565b3480156104f657600080fd5b5061040b610505366004613bd2565b60086020526000908152604090205481565b34801561052357600080fd5b5061043e610532366004613c6c565b611108565b34801561054357600080fd5b50600a546009545b60408051928352602083019190915201610415565b34801561056c57600080fd5b506103cf61057b366004613bd2565b611132565b34801561058c57600080fd5b5061040b7f00000000000000000000000000000000000000000000000000000000687e4d6781565b3480156105c057600080fd5b5061040b6105cf366004613c85565b611247565b3480156105e057600080fd5b5061040b7f4135b07a64a1556c5d12665b11cf454f3add32c6cce3b74d016691d77a0fa1f281565b34801561061457600080fd5b5061040b610623366004613bd2565b600d6020526000908152604090206001015481565b34801561064457600080fd5b5061040b610653366004613c85565b6112d0565b34801561066457600080fd5b506103cf6112dc565b34801561067957600080fd5b506002546106879060ff1681565b6040519015158152602001610415565b3480156106a357600080fd5b506106af630a4cb80081565b6040516fffffffffffffffffffffffffffffffff9091168152602001610415565b3480156106dc57600080fd5b506103cf6106eb366004613bd2565b611393565b3480156106fc57600080fd5b5061040b600c5481565b34801561071257600080fd5b506103cf610721366004613cb8565b6113e4565b34801561073257600080fd5b5061054b610741366004613bd2565b6006602052600090815260409020805460019091015482565b34801561076657600080fd5b506106af62ed4e0081565b34801561077d57600080fd5b506103cf611539565b34801561079257600080fd5b506103cf6107a1366004613db8565b61160d565b3480156107b257600080fd5b5060025461043e9061010090046001600160a01b031681565b3480156107d757600080fd5b5061054b6107e6366004613bd2565b6007602052600090815260409020805460019091015482565b34801561080b57600080fd5b5061040b61081a366004613bd2565b611842565b34801561082b57600080fd5b506103cf61083a366004613c6c565b611983565b34801561084b57600080fd5b506103cf611a16565b34801561086057600080fd5b5061043e7f000000000000000000000000000000000000000000000000000000000000000081565b34801561089457600080fd5b5061040b7f000000000000000000000000000000000000000000000000000000006da4a96781565b3480156108c857600080fd5b5061043e7f00000000000000000000000009ab3c0ce6cb41c13343879a667a6bdad65ee9da81565b3480156108fc57600080fd5b5061068761090b366004613bd2565b611a2a565b34801561091c57600080fd5b5061040b61092b366004613bd2565b600b6020526000908152604090205481565b34801561094957600080fd5b5061040b610958366004613bd2565b611a58565b34801561096957600080fd5b506000546001600160a01b031661043e565b34801561098757600080fd5b506103cf610996366004613c85565b611b6c565b3480156109a757600080fd5b5061043e7f000000000000000000000000045da4bfe02b320f4403674b3b7d121737727a3681565b3480156109db57600080fd5b506103cf611e5a565b3480156109f057600080fd5b5061040b611ebd565b348015610a0557600080fd5b50610a346040518060400160405280600f81526020016e105a5c991c9bdc10dbdb9d1c9858dd608a1b81525081565b6040516104159190613ea4565b348015610a4d57600080fd5b5061040b7f000000000000000000000000000000000000000000000000000000006357f16781565b348015610a8157600080fd5b506103cf610a90366004613bd2565b6120e5565b348015610aa157600080fd5b5061040b60055481565b348015610ab757600080fd5b5061043e7f0000000000000000000000001ea48b9965bb5086f3b468e50ed93888a661fc1781565b348015610aeb57600080fd5b5061040b610afa366004613bd2565b61213c565b348015610b0b57600080fd5b5061040b7f000000000000000000000000000000000000000000000000000000006e91f76781565b348015610b3f57600080fd5b5061043e7f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59981565b348015610b7357600080fd5b5060035461043e906001600160a01b031681565b348015610b9357600080fd5b506103cf610ba2366004613cb8565b612147565b348015610bb357600080fd5b506103cf612257565b348015610bc857600080fd5b5061040b6305265c0081565b348015610be057600080fd5b506103cf610bef366004613bd2565b612427565b348015610c0057600080fd5b506103cf610c0f366004613bd2565b6124a0565b348015610c2057600080fd5b506103cf6125a2565b610c316125d9565b610c3a81612633565b1515600003610c67576040516310caf96960e31b81526001600160a01b03821660048201526024016103c6565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610cae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd29190613ed7565b600254909150610cf4906001600160a01b038481169161010090041683612776565b816001600160a01b03167fab2246061d7b0dd3631d037e3f6da75782ae489eeb9f6af878a4b25df9b07c7782604051610d2f91815260200190565b60405180910390a25050565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000045da4bfe02b320f4403674b3b7d121737727a366001600160a01b0316906370a0823190602401602060405180830381865afa158015610da2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc69190613ed7565b905090565b33600090815260066020526040902054158015610dee5750610dec33611a2a565b155b610e3a5760405162461bcd60e51b815260206004820152601760248201527f41697244726f7020616c726561647920636c61696d656400000000000000000060448201526064016103c6565b6040516bffffffffffffffffffffffff193360601b16602082015260348101849052600090605401604051602081830303815290604052805190602001209050610eda8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f4135b07a64a1556c5d12665b11cf454f3add32c6cce3b74d016691d77a0fa1f292508591506127d99050565b610f165760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b60448201526064016103c6565b610f2033856127ef565b60405184815233907fcebbbce55cb558a80c89a83b5e23dca5186979853be88c28e9e01232c7fdc98b906020015b60405180910390a250505050565b600080600e805480602002602001604051908101604052809291908181526020018280548015610fb557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610f97575b5050505050905060005b8151811015611058576000610fed838381518110610fdf57610fdf613ef0565b602002602001015186612877565b9050600061101384848151811061100657611006613ef0565b6020026020010151611073565b90506000670de0b6b3a764000061102a8385613f1c565b6110349190613f3b565b90506110408187613f5d565b9550505050808061105090613f75565b915050610fbf565b50611062836128f5565b61106c9083613f5d565b9392505050565b604051630553245160e11b81526001600160a01b0382811660048301526000917f00000000000000000000000009ab3c0ce6cb41c13343879a667a6bdad65ee9da90911690630aa648a290602401602060405180830381865afa1580156110de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111029190613ed7565b92915050565b600e818154811061111857600080fd5b6000918252602090912001546001600160a01b0316905081565b61113a6125d9565b6001600160a01b0381166111615760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b0381166000908152600f602052604090205460ff1615156001036111aa576040516314cc0e9d60e11b81526001600160a01b03821660048201526024016103c6565b6001600160a01b0381166000818152600f60209081526040808320805460ff19166001908117909155600e805491820181559093527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd90920180546001600160a01b0319168417905590519182527f0e3c58ebfb2e7465fbb1c32e6b4f40c3c4f5ca77e8218a386aff8617831260d791015b60405180910390a150565b60007f000000000000000000000000045da4bfe02b320f4403674b3b7d121737727a366001600160a01b0316826001600160a01b0316036112a457506001600160a01b0382166000908152600d6020526040902060010154611102565b506001600160a01b039182166000908152600d6020908152604080832093909416825291909152205490565b600061106c8383612877565b6002600154036112fe5760405162461bcd60e51b81526004016103c690613f8e565b60026001553360008181526008602052604090205461132f5760405162461bcd60e51b81526004016103c690613fc5565b6000611339610d3b565b90506000611345612956565b90506113516000612b35565b61135a81612bb3565b600082611365610d3b565b61136f9190613fec565b905080156113805761138081612dcf565b61138933612e46565b5050600180555050565b61139b6125d9565b6001600160a01b0381166113c25760405163d92e233d60e01b815260040160405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633148061140757506004546001600160a01b031633145b6114445760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016103c6565b7f000000000000000000000000045da4bfe02b320f4403674b3b7d121737727a366001600160a01b0316826001600160a01b0316036114bf576114b26001600160a01b037f000000000000000000000000045da4bfe02b320f4403674b3b7d121737727a3616333084613087565b6114bb81612dcf565b5050565b6001600160a01b0382166000908152600f602052604081205460ff16151590036115075760405163c3457d6560e01b81526001600160a01b03831660048201526024016103c6565b600061151383836130c5565b905061152a6001600160a01b038416333085613087565b61153483826131a6565b505050565b60026001540361155b5760405162461bcd60e51b81526004016103c690613f8e565b60026001553360008181526008602052604090205461158c5760405162461bcd60e51b81526004016103c690613fc5565b6000611596610d3b565b905060006115a2612956565b905060006115af33611a58565b905080156115c0576115c081612b35565b6115c982612bb3565b6000836115d4610d3b565b6115de9190613fec565b905080156115ef576115ef81612dcf565b6115f833612e46565b6116023383613244565b505060018055505050565b6116156125d9565b805182511461165f5760405162461bcd60e51b8152602060048201526016602482015275082e4e4c2f240d8cadccee8d040dad2e6e6dac2e8c6d60531b60448201526064016103c6565b6000805b83518110156117f45760006001600160a01b031684828151811061168957611689613ef0565b60200260200101516001600160a01b0316036116b85760405163d92e233d60e01b815260040160405180910390fd5b600660008583815181106116ce576116ce613ef0565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600001546000146117415760405162461bcd60e51b81526020600482015260156024820152744578697374696e672056657374696e672052756c6560581b60448201526064016103c6565b604051806040016040528084838151811061175e5761175e613ef0565b6020026020010151815260200160008152506006600086848151811061178657611786613ef0565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101559050508281815181106117d7576117d7613ef0565b6020026020010151826117ea9190613f5d565b9150600101611663565b5080600a60008282546118079190613f5d565b9091555061153490506001600160a01b037f0000000000000000000000001ea48b9965bb5086f3b468e50ed93888a661fc1716333084613087565b6001600160a01b038116600090815260066020908152604080832081518083019092528054825260010154918101919091527f000000000000000000000000000000000000000000000000000000006357f1674210156118a55750600092915050565b7f00000000000000000000000000000000000000000000000000000000687e4d6742106118e457602081015181516118dd9190613fec565b915061197d565b60208101516119337f000000000000000000000000000000000000000000000000000000006357f1677f00000000000000000000000000000000000000000000000000000000687e4d67613fec565b61195d7f000000000000000000000000000000000000000000000000000000006357f16742613fec565b83516119699190613f1c565b6119739190613f3b565b61106c9190613fec565b50919050565b61198b6125d9565b61271081106119d05760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964206665652076616c756560781b60448201526064016103c6565b600580549082905560408051838152602081018390527f3be6e637f54f081a2dd12982cfd58481304fc98b604b18fa8ed4aa4e4a9d153291015b60405180910390a15050565b611a1e6125d9565b611a286000613330565b565b6001600160a01b03811660009081526008602052604081205415611a5057506001919050565b506000919050565b6001600160a01b038116600090815260076020908152604080832081518083019092528054825260010154918101919091527f000000000000000000000000000000000000000000000000000000006da4a967421015611abb5750600092915050565b7f000000000000000000000000000000000000000000000000000000006e91f7674210611af357602081015181516118dd9190613fec565b6020810151611b427f000000000000000000000000000000000000000000000000000000006da4a9677f000000000000000000000000000000000000000000000000000000006e91f767613fec565b61195d7f000000000000000000000000000000000000000000000000000000006da4a96742613fec565b611b746125d9565b60025460ff1615611bbd5760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e48125b9a5d1a585b1a5e9959606a1b60448201526064016103c6565b6001600160a01b0382161580611bda57506001600160a01b038116155b15611bf85760405163d92e233d60e01b815260040160405180910390fd5b600280546001600160a01b03848116610100026001600160a81b0319909216919091176001908117909255600380548483166001600160a01b0319918216179091557f000000000000000000000000000000000000000000000000000000000000000082166000818152600f6020526040808220805460ff199081168817909155600e805480890182557fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd908101805488169096179095557f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5998716808552838520805490931689179092558054978801815583529590920180549093169094179091555163095ea7b360e01b81527f0000000000000000000000008bc3702c35d33e5df7cb0f06cb72a0c34ae0c56f8216600482015260248101929092527f0000000000000000000000001ea48b9965bb5086f3b468e50ed93888a661fc17169063095ea7b3906044016020604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da59190614003565b5060405163095ea7b360e01b81526001600160a01b037f0000000000000000000000008bc3702c35d33e5df7cb0f06cb72a0c34ae0c56f8116600483015260001960248301527f0000000000000000000000001ea48b9965bb5086f3b468e50ed93888a661fc17169063095ea7b3906044016020604051808303816000875af1158015611e36573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115349190614003565b600260015403611e7c5760405162461bcd60e51b81526004016103c690613f8e565b600260015533600081815260086020526040902054611ead5760405162461bcd60e51b81526004016103c690613fc5565b611eb633612e46565b5060018055565b6040516302d2d79560e61b815230600482015260009081906001600160a01b037f0000000000000000000000008bc3702c35d33e5df7cb0f06cb72a0c34ae0c56f169063b4b5e54090602401602060405180830381865afa158015611f26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f4a9190613ed7565b9050600080600e805480602002602001604051908101604052809291908181526020018280548015611fa557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611f87575b5050505050905060005b81518110156120d25760007f0000000000000000000000008bc3702c35d33e5df7cb0f06cb72a0c34ae0c56f6001600160a01b0316633522c6e8848481518110611ffb57611ffb613ef0565b60209081029190910101516040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa158015612050573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120749190613ed7565b9050600061208d84848151811061100657611006613ef0565b90506000670de0b6b3a76400006120a48385613f1c565b6120ae9190613f3b565b90506120ba8187613f5d565b955050505080806120ca90613f75565b915050611faf565b506120dd8284613f5d565b935050505090565b6120ed6125d9565b6001600160a01b0381166121145760405163d92e233d60e01b815260040160405180910390fd5b600280546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6000611102826128f5565b61214f6125d9565b6001600160a01b0382166121765760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b038216600090815260066020526040902054156121d45760405162461bcd60e51b81526020600482015260156024820152744578697374696e672056657374696e672052756c6560581b60448201526064016103c6565b604080518082018252828152600060208083018281526001600160a01b03871683526006909152928120915182559151600190910155600a805483929061221c908490613f5d565b909155506114bb90506001600160a01b037f0000000000000000000000001ea48b9965bb5086f3b468e50ed93888a661fc1716333084613087565b6002600154036122795760405162461bcd60e51b81526004016103c690613f8e565b60026001553360008181526006602052604081205490036122ac5760405162461bcd60e51b81526004016103c690614025565b7f000000000000000000000000000000000000000000000000000000006da4a967421061230b5760405162461bcd60e51b815260206004820152600d60248201526c115b99081bd9881c195c9a5bd9609a1b60448201526064016103c6565b600061231633613380565b90508060000361233957604051631f2a200560e01b815260040160405180910390fd5b60408051808201825282815260006020808301828152338352600790915292812091518255915160019091015561236e610d3b565b9050600061237a612956565b90506123858361340d565b61238e81612bb3565b600082612399610d3b565b6123a39190613fec565b905080156123b4576123b481612dcf565b336000908152600860205260408120859055600980548692906123d8908490613f5d565b909155506123e790503361345a565b60405184815233907f39df0e5286a3ef2f42a0bf52f32cfe2c58e5b0405f47fe512f2c2439e4cfe2049060200160405180910390a2505060018055505050565b61242f6125d9565b6001600160a01b0381166124945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103c6565b61249d81613330565b50565b6002600154036124c25760405162461bcd60e51b81526004016103c690613f8e565b60026001556124cf6125d9565b6001600160a01b0381166000908152600660205260408120548291036125075760405162461bcd60e51b81526004016103c690614025565b61251082611a2a565b1561254c5760405162461bcd60e51b815260206004820152600c60248201526b4f6e6c79205665737465727360a01b60448201526064016103c6565b600061255783613380565b600254909150612599906001600160a01b037f0000000000000000000000001ea48b9965bb5086f3b468e50ed93888a661fc1781169161010090041683612776565b50506001805550565b3360008181526006602052604081205490036125d05760405162461bcd60e51b81526004016103c690614025565b61249d336134ed565b6000546001600160a01b03163314611a285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c6565b60007f000000000000000000000000045da4bfe02b320f4403674b3b7d121737727a366001600160a01b0316826001600160a01b031614806126a657507f0000000000000000000000001ea48b9965bb5086f3b468e50ed93888a661fc176001600160a01b0316826001600160a01b0316145b156126b357506000919050565b6000600e80548060200260200160405190810160405280929190818152602001828054801561270b57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116126ed575b5050505050905060005b815181101561276c57836001600160a01b031682828151811061273a5761273a613ef0565b60200260200101516001600160a01b03160361275a575060009392505050565b8061276481613f75565b915050612715565b5060019392505050565b6040516001600160a01b03831660248201526044810182905261153490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261357d565b6000826127e6858461364f565b14949350505050565b604080518082018252828152600060208083018281526001600160a01b03871683526006909152928120915182559151600190910155600a8054839290612837908490613f5d565b90915550506003546114bb906001600160a01b037f0000000000000000000000001ea48b9965bb5086f3b468e50ed93888a661fc17811691163084613087565b6001600160a01b038082166000908152600d60209081526040808320938616835292815282822054600b90915291812054909190670de0b6b3a7640000906128c0908390613fec565b6001600160a01b0385166000908152600860205260409020546128e39190613f1c565b6128ed9190613f3b565b949350505050565b6001600160a01b0381166000908152600d6020526040812060010154600c54670de0b6b3a764000090612929908390613fec565b6001600160a01b03851660009081526008602052604090205461294c9190613f1c565b61106c9190613f3b565b60606000600e8054806020026020016040519081016040528092919081815260200182805480156129b057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612992575b505050505090506000815167ffffffffffffffff8111156129d3576129d3613ce2565b6040519080825280602002602001820160405280156129fc578160200160208202803683370190505b50905060005b8251811015612b2e577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316838281518110612a4757612a47613ef0565b60200260200101516001600160a01b031603612a815747828281518110612a7057612a70613ef0565b602002602001018181525050612b26565b828181518110612a9357612a93613ef0565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612ae3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b079190613ed7565b828281518110612b1957612b19613ef0565b6020026020010181815250505b600101612a02565b5092915050565b6040516305c2fbcf60e31b8152600481018290527f0000000000000000000000008bc3702c35d33e5df7cb0f06cb72a0c34ae0c56f6001600160a01b031690632e17de78906024015b600060405180830381600087803b158015612b9857600080fd5b505af1158015612bac573d6000803e3d6000fd5b5050505050565b6000600e805480602002602001604051908101604052809291908181526020018280548015612c0b57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612bed575b5050505050905060005b8151811015611534577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316828281518110612c5a57612c5a613ef0565b60200260200101516001600160a01b031603612cce5760004790506000848381518110612c8957612c89613ef0565b602002602001015182612c9c9190613fec565b90508015612cc757612cc7848481518110612cb957612cb9613ef0565b6020026020010151826131a6565b5050612dc7565b6000828281518110612ce257612ce2613ef0565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612d32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d569190613ed7565b90506000848381518110612d6c57612d6c613ef0565b602002602001015182612d7f9190613fec565b90506000612da6858581518110612d9857612d98613ef0565b6020026020010151836130c5565b90508115612dc357612dc3858581518110612cb957612cb9613ef0565b5050505b600101612c15565b6009546000908015612dfb5780612dee670de0b6b3a764000085613f1c565b612df89190613f3b565b91505b81600c54612e099190613f5d565b600c8190556040519081527f3186b498819902d8f8768a5d1deaabbbdf0a0810af2dd82170e79e46230e81129060200160405180910390a1505050565b600080600e805480602002602001604051908101604052809291908181526020018280548015612e9f57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612e81575b5050505050905060005b8151811015612f8c57612ed5828281518110612ec757612ec7613ef0565b602002602001015185612877565b9250612efa84838381518110612eed57612eed613ef0565b602002602001015161369c565b612f1e84838381518110612f1057612f10613ef0565b602002602001015185613711565b818181518110612f3057612f30613ef0565b60200260200101516001600160a01b0316846001600160a01b03167f5461929fc7866d2777ffdec3e8203fb397bb1c8d727549022e6128217bf80ae385604051612f7c91815260200190565b60405180910390a3600101612ea9565b506000612f98846128f5565b9050612fa3846137ba565b6005541561301857600061271060055483612fbe9190613f1c565b612fc89190613f3b565b9050612fd48183613fec565b600254909250613016906001600160a01b037f000000000000000000000000045da4bfe02b320f4403674b3b7d121737727a3681169161010090041683612776565b505b61304c6001600160a01b037f000000000000000000000000045da4bfe02b320f4403674b3b7d121737727a36168583612776565b836001600160a01b03167f6a3166b01bcb942408af82481d1deb05a20a96b8ebb2435536f209d2a55c7a8282604051610f4e91815260200190565b6040516001600160a01b03808516602483015283166044820152606481018290526130bf9085906323b872dd60e01b906084016127a2565b50505050565b60006001600160a01b0383166130dc575080611102565b816000036130ec57506000611102565b6000836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561312c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131509190614053565b905060128160ff16101561318657613169816012614076565b61317490600a61417d565b61317e9084613f1c565b915050611102565b613191601282614076565b61319c90600a61417d565b61317e9084613f3b565b60095460009080156131d257806131c5670de0b6b3a764000085613f1c565b6131cf9190613f3b565b91505b6001600160a01b0384166000908152600b60205260409020546131f6908390613f5d565b6001600160a01b0385166000818152600b6020526040908190208390555190917fae1df072173f21c2cc2e0aa1368be1b6b7b0f4f295d82ccae83bd489a5575f2991610f4e91815260200190565b6001600160a01b038216600090815260076020526040812060018101805491928492613271908490613f5d565b92505081905550816009600082825461328a9190613fec565b909155505033600090815260086020526040812080548492906132ae908490613fec565b909155506132e890506001600160a01b037f0000000000000000000000001ea48b9965bb5086f3b468e50ed93888a661fc17168484612776565b826001600160a01b03167f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d48360405161332391815260200190565b60405180910390a2505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061338b826134ed565b6001600160a01b038216600090815260066020908152604091829020825180840190935280548084526001909101549183018290526133ca9190613fec565b600a546133d79190613fec565b600a556001600160a01b0383166000908152600660209081526040822082815560010191909155810151815161106c9190613fec565b60405163534a7e1d60e11b8152600481018290527f0000000000000000000000008bc3702c35d33e5df7cb0f06cb72a0c34ae0c56f6001600160a01b03169063a694fc3a90602401612b7e565b6000600e8054806020026020016040519081016040528092919081815260200182805480156134b257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311613494575b5050505050905060005b81518110156134e3576134db83838381518110612eed57612eed613ef0565b6001016134bc565b506114bb826137ba565b60006134f882611842565b905080600003613506575050565b6001600160a01b038216600090815260066020526040812060018101805491928492613533908490613f5d565b9091555050600a54613546908390613fec565b600a556132e86001600160a01b037f0000000000000000000000001ea48b9965bb5086f3b468e50ed93888a661fc17168484612776565b60006135d2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166138419092919063ffffffff16565b80519091501561153457808060200190518101906135f09190614003565b6115345760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103c6565b600081815b8451811015613694576136808286838151811061367357613673613ef0565b6020026020010151613850565b91508061368c81613f75565b915050613654565b509392505050565b6001600160a01b038181166000818152600b6020818152604080842054958816808552600d83528185208686528352938190208690559181528151928352820192909252908101919091527fd0630f4bd33869af4f5772c8d5f1445aecb0ab3637a101508a63fe2e8603c80390606001611a0a565b61371b828261387f565b6005549091501561375d576000612710600554836137399190613f1c565b6137439190613f3b565b905061374f8183613fec565b915061375b838261392e565b505b613768838383613985565b826001600160a01b0316826001600160a01b03167ff89c3306c782ffbbe4593aa5673e97e9ad6a8c65d240405e8986363fada66392836040516137ad91815260200190565b60405180910390a3505050565b600c546001600160a01b038281166000818152600d602090815260409182902060010185905581519283527f000000000000000000000000045da4bfe02b320f4403674b3b7d121737727a3690931692820192909252908101919091527fd0630f4bd33869af4f5772c8d5f1445aecb0ab3637a101508a63fe2e8603c8039060600161123c565b60606128ed8484600085613a4c565b600081831061386c57600082815260208490526040902061106c565b600083815260208390526040902061106c565b60006001600160a01b038316613896575080611102565b816000036138a657506000611102565b6000836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156138e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061390a9190614053565b905060128160ff16101561392357613191816012614076565b613169601282614076565b60025461394a9061010090046001600160a01b03168383613985565b816001600160a01b03167fcb3b1cf844e7338746f3d6afd66ab59782b22b7e485960c851b6e77689714da482604051610d2f91815260200190565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031603613a38576000836001600160a01b03168260405160006040518083038185875af1925050503d8060008114613a0b576040519150601f19603f3d011682016040523d82523d6000602084013e613a10565b606091505b50909150508015156000036130bf57604051630dd113f360e21b815260040160405180910390fd5b6115346001600160a01b0383168483612776565b606082471015613aad5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103c6565b6001600160a01b0385163b613b045760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103c6565b600080866001600160a01b03168587604051613b20919061418c565b60006040518083038185875af1925050503d8060008114613b5d576040519150601f19603f3d011682016040523d82523d6000602084013e613b62565b606091505b5091509150613b72828286613b7d565b979650505050505050565b60608315613b8c57508161106c565b825115613b9c5782518084602001fd5b8160405162461bcd60e51b81526004016103c69190613ea4565b80356001600160a01b0381168114613bcd57600080fd5b919050565b600060208284031215613be457600080fd5b61106c82613bb6565b600080600060408486031215613c0257600080fd5b83359250602084013567ffffffffffffffff80821115613c2157600080fd5b818601915086601f830112613c3557600080fd5b813581811115613c4457600080fd5b8760208260051b8501011115613c5957600080fd5b6020830194508093505050509250925092565b600060208284031215613c7e57600080fd5b5035919050565b60008060408385031215613c9857600080fd5b613ca183613bb6565b9150613caf60208401613bb6565b90509250929050565b60008060408385031215613ccb57600080fd5b613cd483613bb6565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613d2157613d21613ce2565b604052919050565b600067ffffffffffffffff821115613d4357613d43613ce2565b5060051b60200190565b600082601f830112613d5e57600080fd5b81356020613d73613d6e83613d29565b613cf8565b82815260059290921b84018101918181019086841115613d9257600080fd5b8286015b84811015613dad5780358352918301918301613d96565b509695505050505050565b60008060408385031215613dcb57600080fd5b823567ffffffffffffffff80821115613de357600080fd5b818501915085601f830112613df757600080fd5b81356020613e07613d6e83613d29565b82815260059290921b84018101918181019089841115613e2657600080fd5b948201945b83861015613e4b57613e3c86613bb6565b82529482019490820190613e2b565b96505086013592505080821115613e6157600080fd5b50613e6e85828601613d4d565b9150509250929050565b60005b83811015613e93578181015183820152602001613e7b565b838111156130bf5750506000910152565b6020815260008251806020840152613ec3816040850160208701613e78565b601f01601f19169190910160400192915050565b600060208284031215613ee957600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613f3657613f36613f06565b500290565b600082613f5857634e487b7160e01b600052601260045260246000fd5b500490565b60008219821115613f7057613f70613f06565b500190565b600060018201613f8757613f87613f06565b5060010190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600d908201526c4d697373696e67205374616b6560981b604082015260600190565b600082821015613ffe57613ffe613f06565b500390565b60006020828403121561401557600080fd5b8151801515811461106c57600080fd5b6020808252601490820152734d697373696e672056657374696e672052756c6560601b604082015260600190565b60006020828403121561406557600080fd5b815160ff8116811461106c57600080fd5b600060ff821660ff84168082101561409057614090613f06565b90039392505050565b600181815b808511156140d45781600019048211156140ba576140ba613f06565b808516156140c757918102915b93841c939080029061409e565b509250929050565b6000826140eb57506001611102565b816140f857506000611102565b816001811461410e576002811461411857614134565b6001915050611102565b60ff84111561412957614129613f06565b50506001821b611102565b5060208310610133831016604e8410600b8410161715614157575081810a611102565b6141618383614099565b806000190482111561417557614175613f06565b029392505050565b600061106c60ff8416836140dc565b6000825161419e818460208701613e78565b919091019291505056fea2646970667358221220fd5b0fab03410ba84b02bc9993928adf70d4e35a1b71e8891ffe76c289c6f7b064736f6c634300080f0033
Loading...LoadingLoading...Loading
Loading...Loading
Loading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...Loading[ Download: CSV Export ][ 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.
Address QR Code
My Address - Private Name Tag or Note
My Name Tag:
Private Name Tags (up to 35 characters) can be used for easy identification of addressesPrivate Note:
A private note (up to 500 characters) can be attached to this address.
Please DO NOT store any passwords or private keys here.Compiler specific version warnings:
The compiled contract might be susceptible to VerbatimInvalidDeduplication (low-severity), FullInlinerNonExpressionSplitArgumentEvaluationOrder (low-severity), MissingSideEffectsOnSelectorAccess (low-severity), StorageWriteRemovalBeforeConditionalTermination (medium/high-severity), AbiReencodingHeadOverflowWithStaticArrayCleanup (medium-severity) Solidity Compiler Bugs.
Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.SignIn
Address Cards
To use this feature, please login to your Etherscan account and return to this page.Before You Copy
Transaction Private Note
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.