Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Changeaddress NF... | 15982500 | 793 days ago | IN | 0 ETH | 0.00069144 |
Loading...
Loading
Contract Name:
WavePortal7
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/// SPDX-License-Identifier: BSL pragma solidity ^0.8.17; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/metatx/ERC2771Context.sol"; import "@openzeppelin/contracts/metatx/MinimalForwarder.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; /** [BSL License] @title CryptoMarry contract @notice This is the main contract that sets rules for proxy contract creation, minting ERC20 LOVE tokens, minting NFT certificates, and other policies for the proxy contract. Description of the methods are provided below. @author Ismailov Altynbek <[email protected]> */ /*Interface for a Proxy Contract Factory*/ interface WaverFactoryC { function newMarriage( address _addressWaveContract, uint256 id, address _waver, address _proposed, uint256 policyDays, uint256 cmFee, uint256 _minimumDeadline, uint256 _divideShare, uint256 promoDays ) external returns (address); function MarriageID(uint256 id) external returns (address); } /*Interface for a NFT Certificate Factory Contract*/ interface NFTContract { function mintCertificate( address _proposer, uint8 _hasensWaver, address _proposed, uint8 _hasensProposed, address _marriageContract, uint256 _id, uint256 _heartPatternsID, uint256 _certBackgroundID, uint256 mainID ) external; function changeStatus( address _marriageContract, bool _status ) external; function nftHolder( address _marriageContract ) external returns(uint); } /*Interface for a NFT split contracts*/ interface nftSplitC { function addAddresses(address _addAddresses) external; } /*Interface for a Proxy contract */ interface waverImplementation1 { function _addFamilyMember(address _member) external; function agreed() external; function declined() external; function getFamilyMembersNumber() external view returns (uint); function getCMfee() external view returns (uint); } contract WavePortal7 is ERC20, ERC2771Context, Ownable { address public addressNFT; // Address of NFT certificate factory address public addressNFTSplit; // Address of NFT splitting contract address public waverFactoryAddress; // Address of Proxy contract factory address public withdrawaddress; //Address to where comissions are withdrawed/ uint256 internal id; //IDs of a marriage uint256 public claimPolicyDays; //Cooldown for claiming LOVE tokens; uint256 public promoDays; //promoDays for free uint256 public promoAmount; //Amount of token to be disposed in promo period uint256 public saleCap; //Maximum cap of a LOVE token Sale uint256 public minPricePolicy; //Minimum price for NFTs uint256 public cmFee; // Small percentage paid by users for incoming and outgoing transactions. uint256 public exchangeRate; // Exchange rate for LOVE tokens for 1 ETH string public constant VERSION = "1.0.1";// Minor updates after 09.11.2022 //Structs enum Status { Declined, Proposed, Cancelled, Accepted, Processed, Divorced, WaitingConfirmation, MemberInvited, InvitationAccepted, InvitationDeclined, MemberDeleted, PartnerAddressChanged } struct Wave { uint256 id; uint256 stake; address proposer; address proposed; Status ProposalStatus; address marriageContract; } struct AddressList { address ContractAddress; uint Status; } mapping(address => uint256) internal proposers; //Marriage ID of proposer partner mapping(address => uint256) internal proposedto; //Marriage ID of proposed partner mapping(address => mapping(uint8 => uint256)) public member; //Stores family member IDs mapping(address => uint8) internal hasensName; //Whether a partner wants to display ENS address within the NFT mapping(uint256 => Wave) internal proposalAttributes; //Attributes of the Proposal of each marriage mapping(address => string) public messages; //stores messages of CM users mapping(address => uint8) internal authrizedAddresses; //Tracks whether a proxy contract addresses is authorized to interact with this contract. mapping(address => address[]) internal familyMembers; // List of family members addresses mapping(address => uint256) public claimtimer; //maps addresses to when the last time LOVE tokens were claimed. mapping(address => string) public nameAddress; //For giving Names for addresses. mapping(address => uint) public pauseAddresses; //Addresses that can be paused. mapping(address => uint) public rewardAddresses; //Addresses that may claim reward. mapping(address => string) public contactDetails; //Details of contact to send notifications mapping(address => uint) public whiteListedAddresses; // Facet addresses to be whitelisted. /* An event to track status changes of the contract*/ event NewWave( uint256 id, address sender, address indexed marriageContract, Status vid ); /* A contructor that sets initial conditions of the Contract*/ constructor( MinimalForwarder forwarder, address _nftaddress, address _waveFactory, address _withdrawaddress, address _diamonCut, address _uniswap, address _compound ) payable ERC20("CryptoMarry", "LOVE") ERC2771Context(address(forwarder)) { claimPolicyDays = 30 days; addressNFT = _nftaddress; saleCap = 1e25; minPricePolicy = 1e16 ; waverFactoryAddress = _waveFactory; //cmFee = 100; exchangeRate = 1000; withdrawaddress = _withdrawaddress; promoDays = 360 days; promoAmount = 5*1e18; whiteListedAddresses[_diamonCut] = 1; whiteListedAddresses[_uniswap] = 1; whiteListedAddresses[_compound] = 1; } error CONTRACT_NOT_AUTHORIZED(address contractAddress); /*This modifier check whether an address is authorised proxy contract*/ modifier onlyContract() { if (authrizedAddresses[msg.sender] != 1) {revert CONTRACT_NOT_AUTHORIZED(msg.sender);} _; } /*These two below functions are to reconcile minimal Forwarder and ERC20 contracts for MSGSENDER */ function _msgData() internal view override(Context, ERC2771Context) returns (bytes calldata) { return ERC2771Context._msgData(); } function _msgSender() internal view override(Context, ERC2771Context) returns (address) { return ERC2771Context._msgSender(); } /** Errors replated to propose function */ error YOU_CANNOT_PROPOSE_YOURSELF(address proposed); error USER_ALREADY_EXISTS_IN_CM(address user); error INALID_SHARE_PROPORTION(uint share); error PLATFORM_TEMPORARILY_PAUSED(); /** * @notice Proposal and separate contract is created with given params. * @dev Proxy contract is created for each proposal. Most functions of the proxy contract will be available if proposal is accepted. * @param _proposed Address of the one whom proposal is send. * @param _message String message that will be sent to the proposed Address * @param _hasensWaver preference whether Proposer wants to display ENS on the NFT certificate */ function propose( address _proposed, string memory _message, uint8 _hasensWaver, uint _policyDays, uint _minimumDeadline, uint _divideShare ) public payable { id += 1; if (pauseAddresses[address(this)]==1) {revert PLATFORM_TEMPORARILY_PAUSED();} if (msg.sender == _proposed) {revert YOU_CANNOT_PROPOSE_YOURSELF(msg.sender);} if (isMember(_proposed) != 0){revert USER_ALREADY_EXISTS_IN_CM(_proposed);} if (isMember(msg.sender) != 0){revert USER_ALREADY_EXISTS_IN_CM(msg.sender);} if (_divideShare > 10) {revert INALID_SHARE_PROPORTION (_divideShare);} proposers[msg.sender] = id; proposedto[_proposed] = id; hasensName[msg.sender] = _hasensWaver; messages[msg.sender] = _message; WaverFactoryC factory = WaverFactoryC(waverFactoryAddress); address _newMarriageAddress; /*Creating proxy contract here */ _newMarriageAddress = factory.newMarriage( address(this), id, msg.sender, _proposed, _policyDays, cmFee, _minimumDeadline, _divideShare, promoDays ); nftSplitC nftsplit = nftSplitC(addressNFTSplit); nftsplit.addAddresses(_newMarriageAddress); authrizedAddresses[_newMarriageAddress] = 1; proposalAttributes[id] = Wave({ id: id, stake: msg.value, proposer: msg.sender, proposed: _proposed, ProposalStatus: Status.Proposed, marriageContract: _newMarriageAddress }); processtxn(payable(_newMarriageAddress), msg.value); emit NewWave(id, msg.sender,_newMarriageAddress, Status.Proposed); } error PROPOSAL_STATUS_CHANGED(); /** * @notice Response is given from the proposed Address. * @dev Updates are made to the proxy contract with respective response. ENS preferences will be checked onchain. * @param _agreed Response sent as uint. 1 - Agreed, anything else will trigger Declined status. * @param _hasensProposed preference whether Proposed wants to display ENS on the NFT certificate */ function response( uint8 _agreed, uint8 _hasensProposed ) public { address msgSender_ = _msgSender(); uint256 _id = proposedto[msgSender_]; Wave storage waver = proposalAttributes[_id]; if (waver.ProposalStatus != Status.Proposed) {revert PROPOSAL_STATUS_CHANGED();} waverImplementation1 waverImplementation = waverImplementation1( waver.marriageContract ); if (_agreed == 1) { waver.ProposalStatus = Status.Processed; hasensName[msgSender_] = _hasensProposed; waverImplementation.agreed(); } else { waver.ProposalStatus = Status.Declined; proposedto[msgSender_] = 0; waverImplementation.declined(); } emit NewWave(_id, msgSender_, waver.marriageContract, waver.ProposalStatus); } /** * @notice Updates statuses from the main contract on the marriage status * @dev Helper function that is triggered from the proxy contract. Requirements are checked within the proxy. * @param _id The id of the partnership recorded within the main contract. */ function cancel(uint256 _id) external onlyContract { Wave storage waver = proposalAttributes[_id]; require(waver.ProposalStatus != Status.Cancelled); waver.ProposalStatus = Status.Cancelled; proposers[waver.proposer] = 0; proposedto[waver.proposed] = 0; emit NewWave(_id, tx.origin, msg.sender, Status.Cancelled); } error FAMILY_ACCOUNT_NOT_ESTABLISHED(); error CLAIM_TIMOUT_NOT_PASSED(); /** * @notice Users claim LOVE tokens depending on the proxy contract's balance and the number of family members. * @dev LOVE tokens are distributed once within policyDays defined by the owner. */ function claimToken() external { (address msgSender_, uint256 _id) = checkAuth(); Wave storage waver = proposalAttributes[_id]; if (waver.ProposalStatus != Status.Processed) {revert FAMILY_ACCOUNT_NOT_ESTABLISHED();} if (claimtimer[msgSender_] + claimPolicyDays > block.timestamp) {revert CLAIM_TIMOUT_NOT_PASSED();} waverImplementation1 waverImplementation = waverImplementation1( waver.marriageContract ); claimtimer[msgSender_] = block.timestamp; uint amount; uint fee = waverImplementation.getCMfee(); if ( fee == 0) { amount = promoAmount; } else if (fee < 50 && fee>0) { amount = (waver.marriageContract.balance * exchangeRate) / (20 * waverImplementation.getFamilyMembersNumber()); } else if (fee>50) { amount = (waver.marriageContract.balance * exchangeRate) / (10 * waverImplementation.getFamilyMembersNumber());} _mint(msgSender_, amount); } /** * @notice Users can buy LOVE tokens depending on the exchange rate. There is a cap for the Sales of the tokens. * @dev Only registered users within the proxy contracts can buy LOVE tokens. Sales Cap is universal for all users. */ function buyLovToken() external payable { (address msgSender_, uint256 _id) = checkAuth(); Wave storage waver = proposalAttributes[_id]; if (waver.ProposalStatus != Status.Processed) {revert FAMILY_ACCOUNT_NOT_ESTABLISHED();} uint256 issued = msg.value * exchangeRate; saleCap -= issued; _mint(msgSender_, issued); } error PAYMENT_NOT_SUFFICIENT(uint requiredPayment); /** * @notice Users can mint tiered NFT certificates. * @dev The tier of the NFT is identified by the passed params. The cost of mint depends on minPricePolicy. depending on msg.value user also automatically mints LOVE tokens depending on the Exchange rate. * @param logoID the ID of logo to be minted. * @param BackgroundID the ID of Background to be minted. * @param MainID the ID of other details to be minted. */ function MintCertificate( uint256 logoID, uint256 BackgroundID, uint256 MainID ) external payable { //getting price and NFT address if (msg.value < minPricePolicy) {revert PAYMENT_NOT_SUFFICIENT(minPricePolicy);} (, uint256 _id) = checkAuth(); Wave storage waver = proposalAttributes[_id]; if (waver.ProposalStatus != Status.Processed) {revert FAMILY_ACCOUNT_NOT_ESTABLISHED();} uint256 issued = msg.value * exchangeRate; saleCap -= issued; NFTContract NFTmint = NFTContract(addressNFT); if (BackgroundID >= 1000) { if (msg.value < minPricePolicy * 100) {revert PAYMENT_NOT_SUFFICIENT(minPricePolicy * 100);} } else if (logoID >= 100) { if (msg.value < minPricePolicy * 10) {revert PAYMENT_NOT_SUFFICIENT(minPricePolicy * 10);} } NFTmint.mintCertificate( waver.proposer, hasensName[waver.proposer], waver.proposed, hasensName[waver.proposed], waver.marriageContract, waver.id, logoID, BackgroundID, MainID ); _mint(waver.proposer, issued / 2); _mint(waver.proposed, issued / 2); } /* Adding Family Members*/ error MEMBER_NOT_INVITED(address member); /** * @notice When an Address has been added to a Proxy contract as a family member, the owner of the Address have to accept the invitation. * @dev The system checks whether the msg.sender has an invitation, if it is i.e. id>0, it adds the member to corresponding marriage id. It also makes pertinent adjustments to the proxy contract. * @param _response Bool response of the owner of Address. */ function joinFamily(uint8 _response) external { address msgSender_ = _msgSender(); if (member[msgSender_][0] == 0) {revert MEMBER_NOT_INVITED(msgSender_);} uint256 _id = member[msgSender_][0]; Wave storage waver = proposalAttributes[_id]; Status status; if (_response == 2) { member[msgSender_][1] = _id; member[msgSender_][0] = 0; waverImplementation1 waverImplementation = waverImplementation1( waver.marriageContract ); waverImplementation._addFamilyMember(msgSender_); status = Status.InvitationAccepted; } else { member[msgSender_][0] = 0; status = Status.InvitationDeclined; } emit NewWave(_id, msgSender_, waver.marriageContract, status); } /** * @notice A proxy contract adds a family member through this method. A family member is first invited, and added only if the indicated Address accepts the invitation. * @dev invited user preliminary received marriage _id and is added to a list of family Members of the contract. Only marriage partners can add a family member. * @param _familyMember Address of a member being invited. * @param _id ID of the marriage. */ function addFamilyMember(address _familyMember, uint256 _id) external onlyContract { if (isMember(_familyMember) != 0) {revert USER_ALREADY_EXISTS_IN_CM(_familyMember);} member[_familyMember][0] = _id; familyMembers[msg.sender].push(_familyMember); emit NewWave(_id, _familyMember,msg.sender,Status.MemberInvited); } /** * @notice A family member can be deleted through a proxy contract. A family member can be deleted at any stage. * @dev the list of a family members per a proxy contract is not updated to keep history of members. Deleted members can be added back. * @param _familyMember Address of a member being deleted. */ function deleteFamilyMember(address _familyMember, uint id_) external onlyContract { if (member[_familyMember][1] > 0) { member[_familyMember][1] = 0; } else { if (member[_familyMember][0] == 0) {revert MEMBER_NOT_INVITED(_familyMember);} member[_familyMember][0] = 0; } emit NewWave(id_, _familyMember, msg.sender, Status.MemberDeleted); } /** * @notice A function to add string name for an Address * @dev Names are used for better UI/UX. * @param _name String name */ function addName(string memory _name) external { nameAddress[msg.sender] = _name; } /** * @notice A function to add contact for notifications * @dev It is planned to send notifications using webhooks * @param _contact String name */ function addContact(string memory _contact) external { contactDetails[msg.sender] = _contact; } /** * @notice A view function to get the list of family members per a Proxy Contract. * @dev the list is capped by a proxy contract to avoid unlimited lists. * @param _instance Address of a Proxy Contract. */ function getFamilyMembers(address _instance) external view returns (address[] memory) { return familyMembers[_instance]; } /** * @notice If a Dissalution is initiated and accepted, this method updates the status of the partnership as Divorced. It also updates the last NFT Certificates Status. * @dev this method is triggered once settlement has happened within the proxy contract. * @param _id ID of the marriage. */ function divorceUpdate(uint256 _id) external onlyContract { Wave storage waver = proposalAttributes[_id]; if (waver.ProposalStatus != Status.Processed) {revert FAMILY_ACCOUNT_NOT_ESTABLISHED();} waver.ProposalStatus = Status.Divorced; NFTContract NFTmint = NFTContract(addressNFT); if (NFTmint.nftHolder(waver.marriageContract)>0) { NFTmint.changeStatus(waver.marriageContract, false); } emit NewWave(_id, msg.sender, msg.sender, Status.Divorced); } error COULD_NOT_PROCESS(address _to, uint amount); /** * @notice Internal function to process payments. * @dev call method is used to keep process gas limit higher than 2300. * @param _to Address that will be reveiving payment * @param _amount the amount of payment */ function processtxn(address payable _to, uint256 _amount) internal { (bool success, ) = _to.call{value: _amount}(""); if (!success) {revert COULD_NOT_PROCESS(_to,_amount);} } /** * @notice internal view function to check whether msg.sender has marriage ID. * @dev for a family member that was invited, temporary id is given. */ function isMember(address _partner) public view returns (uint256 _id) { if (proposers[_partner] > 0) { return proposers[_partner]; } else if (proposedto[_partner] > 0) { return proposedto[_partner]; } else if (member[_partner][1] > 0) { return member[_partner][1]; } else if (member[_partner][0] > 0) { return 1e9; } } function checkAuth() internal view returns (address __msgSender, uint256 _id) { address msgSender_ = _msgSender(); uint256 uid = isMember(msgSender_); return (msgSender_, uid); } /** * @notice public view function to check whether msg.sender has marriage struct Wave with proxy contract.. * @dev if msg.sender is a family member that was invited, temporary id is sent. If id>0 not found, empty struct is sent. */ function checkMarriageStatus() external view returns (Wave memory) { // Get the tokenId of the user's character NFT (address msgSender_, uint256 _id) = checkAuth(); // If the user has a tokenId in the map, return their character. if (_id > 0 && _id < 1e9) { return proposalAttributes[_id]; } if (_id == 1e9) { uint __id = member[msgSender_][0]; Wave memory waver = proposalAttributes[__id]; return Wave({ id: _id, stake: waver.stake, proposer: waver.proposer, proposed: waver.proposed, ProposalStatus: Status.WaitingConfirmation, marriageContract: waver.marriageContract }); } Wave memory emptyStruct; return emptyStruct; } /** * @notice Proxy contract can burn LOVE tokens as they are being used. * @dev only Proxy contracts can call this method/ * @param _to Address whose LOVE tokens are to be burned. * @param _amount the amount of LOVE tokens to be burned. */ function burn(address _to, uint256 _amount) external onlyContract { _burn(_to, _amount); } /* Parameters that are adjusted by the contract owner*/ /** * @notice Tuning policies related to CM functioning * @param _claimPolicyDays The number of days required before claiming next LOVE tokens * @param _minPricePolicy Minimum price of minting NFT certificate of family account */ function changePolicy(uint256 _claimPolicyDays, uint256 _minPricePolicy) external onlyOwner { claimPolicyDays = _claimPolicyDays; minPricePolicy = _minPricePolicy; } /** * @notice Changing Policies in terms of Sale Cap, Fees and the Exchange Rate * @param _saleCap uint is set in Wei. * @param _exchangeRate uint is set how much Love Tokens can be bought for 1 Ether. */ function changeTokenPolicy(uint256 _saleCap, uint256 _exchangeRate, uint256 _promoDays, uint256 _promoAmount) external onlyOwner { saleCap = _saleCap; exchangeRate = _exchangeRate; promoDays = _promoDays; promoAmount = _promoAmount; } /** * @notice A fee that is paid by users for incoming and outgoing transactions. * @param _cmFee uint is set in Wei.*/ function changeFee(uint256 _cmFee) external onlyOwner { cmFee = _cmFee; } /** * @notice A reference contract address of NFT Certificates factory and NFT split. * @param _addressNFT an Address of the NFT Factort. * @param _addressNFTSplit an Address of the NFT Split. */ function changeaddressNFT(address _addressNFT, address _addressNFTSplit ) external onlyOwner { addressNFT = _addressNFT; addressNFTSplit = _addressNFTSplit; } /** * @notice Changing contract addresses of Factory and Forwarder * @param _addressFactory an Address of the New Factory. */ function changeSystemAddresses(address _addressFactory, address _withdrawaddress) external onlyOwner { waverFactoryAddress = _addressFactory; withdrawaddress = _withdrawaddress; } /** * @notice A functionality for "Social Changing" of a partner address. * @dev can be called only by the Partnership contract * @param _partner an Address to be changed. * @param _newAddress an address to be changed to. * @param id_ Address of the partnership. */ function changePartnerAddress(address _partner, address _newAddress, uint id_) external { Wave storage waver = proposalAttributes[id_]; if (msg.sender != waver.marriageContract) {revert CONTRACT_NOT_AUTHORIZED(msg.sender);} if (proposers[_partner] > 0) { proposers[_partner] = 0; proposers[_newAddress] = id_; waver.proposer = _newAddress; } else if (proposedto[_partner] > 0) { proposedto[_partner] = 0; proposedto[_newAddress] = id_; waver.proposed = _newAddress; } emit NewWave(id_, _newAddress, msg.sender, Status.PartnerAddressChanged); } /** * @notice A function that resets indexes of users * @dev A user will not be able to access proxy contracts if triggered from the CM FrontEnd */ function forgetMe() external { proposers[msg.sender] = 0; proposedto[msg.sender] = 0; member[msg.sender][1] = 0; } error ACCOUNT_PAUSED(address sender); /** * @notice A method to withdraw comission that is accumulated within the main contract. Withdraws the whole balance. */ function withdrawcomission() external { if (msg.sender != withdrawaddress) {revert CONTRACT_NOT_AUTHORIZED(msg.sender);} if (pauseAddresses[msg.sender] == 1){revert ACCOUNT_PAUSED(msg.sender);} processtxn(payable(withdrawaddress), address(this).balance); } /** * @notice A method to withdraw comission that is accumulated within ERC20 contracts. Withdraws the whole balance. * @param _tokenID the address of the ERC20 contract. */ function withdrawERC20(address _tokenID) external { if (msg.sender != withdrawaddress) {revert CONTRACT_NOT_AUTHORIZED(msg.sender);} if (pauseAddresses[msg.sender] == 1){revert ACCOUNT_PAUSED(msg.sender);} uint256 amount; amount = IERC20(_tokenID).balanceOf(address(this)); bool success = IERC20(_tokenID).transfer(withdrawaddress, amount); if (!success) {revert COULD_NOT_PROCESS(withdrawaddress,amount);} } /** * @notice A method to pause withdrawals from the this and proxy contracts if threat is detected. * @param pauseData an List of addresses to be paused/unpaused */ function pause(AddressList[] calldata pauseData) external { if (msg.sender != withdrawaddress) {revert CONTRACT_NOT_AUTHORIZED(msg.sender);} for (uint i; i<pauseData.length; i++) { pauseAddresses[pauseData[i].ContractAddress] = pauseData[i].Status; } } /** * @notice A method to enter LOVE tokens who participated in Reward Program * @param mintData an List of addresses to be rewarded */ function reward(AddressList[] calldata mintData) external onlyOwner{ for (uint i; i<mintData.length; i++) { rewardAddresses[mintData[i].ContractAddress] = mintData[i].Status; } } /** * @notice A method to add whitelisted addresses for facets * @param addressData an List of addresses to be rewarded */ function whiteListAddr(AddressList[] calldata addressData) external onlyOwner{ for (uint i; i<addressData.length; i++) { whiteListedAddresses[addressData[i].ContractAddress] = addressData[i].Status; } } /** * @notice A method to claim LOVE tokens who participated in the Reward program. */ error REWARD_NOT_FOUND(address claimer); function claimReward() external { if (rewardAddresses[msg.sender] == 0) {revert REWARD_NOT_FOUND(msg.sender);} uint amount = rewardAddresses[msg.sender]; rewardAddresses[msg.sender] = 0; _mint(msg.sender, amount); saleCap-= amount; } /** * @notice A view function to monitor balance */ function balance() external view returns (uint ETHBalance) { return address(this).balance; } receive() external payable { if (pauseAddresses[msg.sender] == 1){revert ACCOUNT_PAUSED(msg.sender);} require(msg.value > 0); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Spend `amount` form the allowance of `owner` toward `spender`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (metatx/ERC2771Context.sol) pragma solidity ^0.8.9; import "../utils/Context.sol"; /** * @dev Context variant with ERC2771 support. */ abstract contract ERC2771Context is Context { /// @custom:oz-upgrades-unsafe-allow state-variable-immutable address private immutable _trustedForwarder; /// @custom:oz-upgrades-unsafe-allow constructor constructor(address trustedForwarder) { _trustedForwarder = trustedForwarder; } function isTrustedForwarder(address forwarder) public view virtual returns (bool) { return forwarder == _trustedForwarder; } function _msgSender() internal view virtual override returns (address sender) { if (isTrustedForwarder(msg.sender)) { // The assembly code is more direct than the Solidity version using `abi.decode`. assembly { sender := shr(96, calldataload(sub(calldatasize(), 20))) } } else { return super._msgSender(); } } function _msgData() internal view virtual override returns (bytes calldata) { if (isTrustedForwarder(msg.sender)) { return msg.data[:msg.data.length - 20]; } else { return super._msgData(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (metatx/MinimalForwarder.sol) pragma solidity ^0.8.0; import "../utils/cryptography/ECDSA.sol"; import "../utils/cryptography/draft-EIP712.sol"; /** * @dev Simple minimal forwarder to be used together with an ERC2771 compatible contract. See {ERC2771Context}. */ contract MinimalForwarder is EIP712 { using ECDSA for bytes32; struct ForwardRequest { address from; address to; uint256 value; uint256 gas; uint256 nonce; bytes data; } bytes32 private constant _TYPEHASH = keccak256("ForwardRequest(address from,address to,uint256 value,uint256 gas,uint256 nonce,bytes data)"); mapping(address => uint256) private _nonces; constructor() EIP712("MinimalForwarder", "0.0.1") {} function getNonce(address from) public view returns (uint256) { return _nonces[from]; } function verify(ForwardRequest calldata req, bytes calldata signature) public view returns (bool) { address signer = _hashTypedDataV4( keccak256(abi.encode(_TYPEHASH, req.from, req.to, req.value, req.gas, req.nonce, keccak256(req.data))) ).recover(signature); return _nonces[req.from] == req.nonce && signer == req.from; } function execute(ForwardRequest calldata req, bytes calldata signature) public payable returns (bool, bytes memory) { require(verify(req, signature), "MinimalForwarder: signature does not match request"); _nonces[req.from] = req.nonce + 1; (bool success, bytes memory returndata) = req.to.call{gas: req.gas, value: req.value}( abi.encodePacked(req.data, req.from) ); // Validate that the relayer has sent enough gas for the call. // See https://ronan.eth.link/blog/ethereum-gas-dangers/ if (gasleft() <= req.gas / 63) { // We explicitly trigger invalid opcode to consume all gas and bubble-up the effects, since // neither revert or assert consume all gas since Solidity 0.8.0 // https://docs.soliditylang.org/en/v0.8.0/control-structures.html#panic-via-assert-and-error-via-require assembly { invalid() } } return (success, returndata); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount 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); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol) pragma solidity ^0.8.0; import "./ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
{ "optimizer": { "enabled": true, "runs": 100, "details": { "yul": false } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract MinimalForwarder","name":"forwarder","type":"address"},{"internalType":"address","name":"_nftaddress","type":"address"},{"internalType":"address","name":"_waveFactory","type":"address"},{"internalType":"address","name":"_withdrawaddress","type":"address"},{"internalType":"address","name":"_diamonCut","type":"address"},{"internalType":"address","name":"_uniswap","type":"address"},{"internalType":"address","name":"_compound","type":"address"}],"stateMutability":"payable","type":"constructor"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ACCOUNT_PAUSED","type":"error"},{"inputs":[],"name":"CLAIM_TIMOUT_NOT_PASSED","type":"error"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"CONTRACT_NOT_AUTHORIZED","type":"error"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"COULD_NOT_PROCESS","type":"error"},{"inputs":[],"name":"FAMILY_ACCOUNT_NOT_ESTABLISHED","type":"error"},{"inputs":[{"internalType":"uint256","name":"share","type":"uint256"}],"name":"INALID_SHARE_PROPORTION","type":"error"},{"inputs":[{"internalType":"address","name":"member","type":"address"}],"name":"MEMBER_NOT_INVITED","type":"error"},{"inputs":[{"internalType":"uint256","name":"requiredPayment","type":"uint256"}],"name":"PAYMENT_NOT_SUFFICIENT","type":"error"},{"inputs":[],"name":"PLATFORM_TEMPORARILY_PAUSED","type":"error"},{"inputs":[],"name":"PROPOSAL_STATUS_CHANGED","type":"error"},{"inputs":[{"internalType":"address","name":"claimer","type":"address"}],"name":"REWARD_NOT_FOUND","type":"error"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"USER_ALREADY_EXISTS_IN_CM","type":"error"},{"inputs":[{"internalType":"address","name":"proposed","type":"address"}],"name":"YOU_CANNOT_PROPOSE_YOURSELF","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"marriageContract","type":"address"},{"indexed":false,"internalType":"enum WavePortal7.Status","name":"vid","type":"uint8"}],"name":"NewWave","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"logoID","type":"uint256"},{"internalType":"uint256","name":"BackgroundID","type":"uint256"},{"internalType":"uint256","name":"MainID","type":"uint256"}],"name":"MintCertificate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_contact","type":"string"}],"name":"addContact","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_familyMember","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"addFamilyMember","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"name":"addName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"addressNFT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addressNFTSplit","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"ETHBalance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyLovToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cmFee","type":"uint256"}],"name":"changeFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_partner","type":"address"},{"internalType":"address","name":"_newAddress","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"changePartnerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimPolicyDays","type":"uint256"},{"internalType":"uint256","name":"_minPricePolicy","type":"uint256"}],"name":"changePolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addressFactory","type":"address"},{"internalType":"address","name":"_withdrawaddress","type":"address"}],"name":"changeSystemAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleCap","type":"uint256"},{"internalType":"uint256","name":"_exchangeRate","type":"uint256"},{"internalType":"uint256","name":"_promoDays","type":"uint256"},{"internalType":"uint256","name":"_promoAmount","type":"uint256"}],"name":"changeTokenPolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addressNFT","type":"address"},{"internalType":"address","name":"_addressNFTSplit","type":"address"}],"name":"changeaddressNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkMarriageStatus","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"stake","type":"uint256"},{"internalType":"address","name":"proposer","type":"address"},{"internalType":"address","name":"proposed","type":"address"},{"internalType":"enum WavePortal7.Status","name":"ProposalStatus","type":"uint8"},{"internalType":"address","name":"marriageContract","type":"address"}],"internalType":"struct WavePortal7.Wave","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimPolicyDays","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimtimer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cmFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"contactDetails","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_familyMember","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"deleteFamilyMember","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"divorceUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exchangeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"forgetMe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_instance","type":"address"}],"name":"getFamilyMembers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_partner","type":"address"}],"name":"isMember","outputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_response","type":"uint8"}],"name":"joinFamily","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint8","name":"","type":"uint8"}],"name":"member","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"messages","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minPricePolicy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nameAddress","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"ContractAddress","type":"address"},{"internalType":"uint256","name":"Status","type":"uint256"}],"internalType":"struct WavePortal7.AddressList[]","name":"pauseData","type":"tuple[]"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pauseAddresses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"promoAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"promoDays","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_proposed","type":"address"},{"internalType":"string","name":"_message","type":"string"},{"internalType":"uint8","name":"_hasensWaver","type":"uint8"},{"internalType":"uint256","name":"_policyDays","type":"uint256"},{"internalType":"uint256","name":"_minimumDeadline","type":"uint256"},{"internalType":"uint256","name":"_divideShare","type":"uint256"}],"name":"propose","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_agreed","type":"uint8"},{"internalType":"uint8","name":"_hasensProposed","type":"uint8"}],"name":"response","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"ContractAddress","type":"address"},{"internalType":"uint256","name":"Status","type":"uint256"}],"internalType":"struct WavePortal7.AddressList[]","name":"mintData","type":"tuple[]"}],"name":"reward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardAddresses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"waverFactoryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"ContractAddress","type":"address"},{"internalType":"uint256","name":"Status","type":"uint256"}],"internalType":"struct WavePortal7.AddressList[]","name":"addressData","type":"tuple[]"}],"name":"whiteListAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whiteListedAddresses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenID","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawaddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawcomission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a0604052604051620045bc380380620045bc833981016040819052620000269162000262565b866040518060400160405280600b81526020016a43727970746f4d6172727960a81b815250604051806040016040528060048152602001634c4f564560e01b815250816003908162000079919062000424565b50600462000088828262000424565b5050506001600160a01b0316608052620000ab620000a562000159565b62000175565b62278d00600b55600680546001600160a01b03199081166001600160a01b03988916179091556a084595161401484a000000600e55662386f26fc10000600f55600880548216968816969096179095556103e860115560098054909516938616939093179093556301da9c00600c55674563918244f40000600d5583166000908152601f602052604080822060019081905593851682528082208490559190931683529091205550620004f4565b600062000170620001c760201b62002c6a1760201c565b905090565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6080516000906001600160a01b03163303620001ea575060131936013560601c90565b62000170620001ff60201b62002c911760201c565b3390565b60006001600160a01b0382165b92915050565b6000620002108262000203565b6200022e8162000216565b81146200023a57600080fd5b50565b8051620002108162000223565b6200022e8162000203565b805162000210816200024a565b600080600080600080600060e0888a031215620002825762000282600080fd5b6000620002908a8a6200023d565b9750506020620002a38a828b0162000255565b9650506040620002b68a828b0162000255565b9550506060620002c98a828b0162000255565b9450506080620002dc8a828b0162000255565b93505060a0620002ef8a828b0162000255565b92505060c0620003028a828b0162000255565b91505092959891949750929550565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200035257607f821691505b60208210810362000367576200036762000327565b50919050565b6000620002106200037b8381565b90565b62000389836200036d565b81546008840282811b60001990911b908116901990911617825550505050565b6000620003b88184846200037e565b505050565b81811015620003dc57620003d3600082620003a9565b600101620003bd565b5050565b601f821115620003b8576000818152602090206020601f85010481016020851015620004095750805b6200041d6020601f860104830182620003bd565b5050505050565b81516001600160401b0381111562000440576200044062000311565b6200044c82546200033d565b62000459828285620003e0565b6020601f831160018114620004905760008415620004775750858201515b600019600886021c1981166002860217865550620004ec565b600085815260208120601f198616915b82811015620004c25788850151825560209485019460019092019101620004a0565b86831015620004df5784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b6080516140ac62000510600039600061167201526140ac6000f3fe6080604052600436106103525760003560e01c806395d89b41116101bd578063d8e773a2116100f8578063f199413c1161009b578063f199413c14610a9d578063f1b13de814610abd578063f2fde38b14610add578063f4f3b20014610afd578063f559e38614610b1d578063f6df226514610b3d578063f7dd5cc314610b5f578063fead49f314610b75578063ffa1ad7414610b9557600080fd5b8063d8e773a2146109a7578063da07c0c0146109d4578063dd62ed3e146109f4578063e4a526fe14610a14578063eb5439dc14610a34578063eb91eef214610a54578063ecb4096a14610a6a578063f05ac0b114610a7d57600080fd5b8063b226821e11610160578063b226821e146108a7578063b69ef8a8146108c7578063b88a802f146108da578063bf2b22c5146108ef578063c6a1ac1a1461091c578063caa491cc1461092f578063cb56136f1461094f578063ce6c48161461098757600080fd5b806395d89b41146107af5780639dc29fac146107c45780639e9e6ce2146107e4578063a230c52414610804578063a457c2d714610824578063a52dad9514610844578063a9059cbb14610871578063b0f57a6b1461089157600080fd5b8063395093511161028d5780635c8ab787116102305780635c8ab787146106a05780635fdd59f8146106cd578063614cae62146106ed5780636a1db1bf1461070257806370a0823114610722578063715018a6146107585780638da5cb5b1461076d5780638ffd033c1461078257600080fd5b806339509351146105d75780633ba0b9a9146105f75780633e004de21461060d57806340e58ee51461062357806341cc045d1461064357806343a7c5a0146106635780634451d89f1461066b578063572b6c051461068057600080fd5b806318160ddd116102f557806318160ddd146104e35780631cd090d6146104f857806323b872dd14610518578063240bbc5214610538578063245547d31461054e5780632e4ccf721461056e57806330d952bc1461059b578063313ce567146105bb57600080fd5b806306307c0d146103a657806306c071c2146103c657806306fdde03146103e6578063078fd9ea14610411578063095ea7b31461043457806309b6ce341461046157806311456b47146104a35780631482024f146104c357600080fd5b366103a157336000908152601c60205260409020546001036103925733604051637168ce3960e01b81526004016103899190613147565b60405180910390fd5b6000341161039f57600080fd5b005b600080fd5b3480156103b257600080fd5b5061039f6103c1366004613185565b610bc6565b3480156103d257600080fd5b5061039f6103e13660046132ca565b610cf1565b3480156103f257600080fd5b506103fb610d0e565b604051610408919061335c565b60405180910390f35b34801561041d57600080fd5b50610427600e5481565b6040516104089190613373565b34801561044057600080fd5b5061045461044f366004613185565b610da0565b6040516104089190613389565b34801561046d57600080fd5b5061039f336000908152601260209081526040808320839055601382528083208390556014825280832060018452909152812055565b3480156104af57600080fd5b5061039f6104be3660046132ca565b610dc4565b3480156104cf57600080fd5b506103fb6104de366004613397565b610ddd565b3480156104ef57600080fd5b50600254610427565b34801561050457600080fd5b5061039f610513366004613409565b610e77565b34801561052457600080fd5b50610454610533366004613450565b610f28565b34801561054457600080fd5b50610427600c5481565b34801561055a57600080fd5b5061039f6105693660046134b4565b610f58565b34801561057a57600080fd5b5060065461058e906001600160a01b031681565b6040516104089190613147565b3480156105a757600080fd5b5061039f6105b6366004613185565b6110e8565b3480156105c757600080fd5b50601260405161040891906134de565b3480156105e357600080fd5b506104546105f2366004613185565b6111bd565b34801561060357600080fd5b5061042760115481565b34801561061957600080fd5b50610427600d5481565b34801561062f57600080fd5b5061039f61063e3660046134ec565b611209565b34801561064f57600080fd5b5061039f61065e36600461350d565b6112e4565b61039f611337565b34801561067757600080fd5b5061039f6113cf565b34801561068c57600080fd5b5061045461069b366004613397565b611670565b3480156106ac57600080fd5b506104276106bb366004613397565b601a6020526000908152604090205481565b3480156106d957600080fd5b506103fb6106e8366004613397565b6116a2565b3480156106f957600080fd5b5061039f6116bb565b34801561070e57600080fd5b5061039f61071d3660046134ec565b611732565b34801561072e57600080fd5b5061042761073d366004613397565b6001600160a01b031660009081526020819052604090205490565b34801561076457600080fd5b5061039f611776565b34801561077957600080fd5b5061058e6117bf565b34801561078e57600080fd5b5061042761079d366004613397565b601d6020526000908152604090205481565b3480156107bb57600080fd5b506103fb6117ce565b3480156107d057600080fd5b5061039f6107df366004613185565b6117dd565b3480156107f057600080fd5b5061039f6107ff366004613571565b61181c565b34801561081057600080fd5b5061042761081f366004613397565b611a05565b34801561083057600080fd5b5061045461083f366004613185565b611b04565b34801561085057600080fd5b5061042761085f366004613397565b601c6020526000908152604090205481565b34801561087d57600080fd5b5061045461088c366004613185565b611b70565b34801561089d57600080fd5b5061042760105481565b3480156108b357600080fd5b5060075461058e906001600160a01b031681565b3480156108d357600080fd5b5047610427565b3480156108e657600080fd5b5061039f611b88565b3480156108fb57600080fd5b5061090f61090a366004613397565b611bf2565b6040516104089190613601565b61039f61092a366004613612565b611c68565b34801561093b57600080fd5b5061039f61094a366004613409565b61200b565b34801561095b57600080fd5b5061042761096a3660046136b6565b601460209081526000928352604080842090915290825290205481565b34801561099357600080fd5b5060095461058e906001600160a01b031681565b3480156109b357600080fd5b506104276109c2366004613397565b601f6020526000908152604090205481565b3480156109e057600080fd5b5060085461058e906001600160a01b031681565b348015610a0057600080fd5b50610427610a0f3660046136d8565b6120c9565b348015610a2057600080fd5b506103fb610a2f366004613397565b6120f4565b348015610a4057600080fd5b5061039f610a4f3660046136d8565b61210d565b348015610a6057600080fd5b50610427600b5481565b61039f610a7836600461370b565b61217a565b348015610a8957600080fd5b5061039f610a983660046136d8565b61243b565b348015610aa957600080fd5b5061039f610ab8366004613740565b6124a8565b348015610ac957600080fd5b5061039f610ad83660046134ec565b6124f2565b348015610ae957600080fd5b5061039f610af8366004613397565b6126af565b348015610b0957600080fd5b5061039f610b18366004613397565b612720565b348015610b2957600080fd5b5061039f610b38366004613409565b61289b565b348015610b4957600080fd5b50610b52612959565b6040516104089190613816565b348015610b6b57600080fd5b50610427600f5481565b348015610b8157600080fd5b5061039f610b90366004613450565b612b35565b348015610ba157600080fd5b506103fb60405180604001604052806005815260200164312e302e3160d81b81525081565b3360009081526018602052604090205460ff16600114610bfb5733604051637b7d071760e11b81526004016103899190613147565b6001600160a01b03821660009081526014602090815260408083206001845290915290205415610c4f576001600160a01b038216600090815260146020908152604080832060018452909152812055610cb9565b6001600160a01b03821660009081526014602090815260408083208380529091528120549003610c9457816040516308aa085d60e01b81526004016103899190613147565b6001600160a01b03821660009081526014602090815260408083208380529091528120555b336001600160a01b03166000805160206140578339815191528284600a604051610ce593929190613824565b60405180910390a25050565b336000908152601e60205260409020610d0a828261395a565b5050565b606060038054610d1d90613862565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4990613862565b8015610d965780601f10610d6b57610100808354040283529160200191610d96565b820191906000526020600020905b815481529060010190602001808311610d7957829003601f168201915b5050505050905090565b600080610dab612c95565b9050610db8818585612c9f565b60019150505b92915050565b336000908152601b60205260409020610d0a828261395a565b601e6020526000908152604090208054610df690613862565b80601f0160208091040260200160405190810160405280929190818152602001828054610e2290613862565b8015610e6f5780601f10610e4457610100808354040283529160200191610e6f565b820191906000526020600020905b815481529060010190602001808311610e5257829003601f168201915b505050505081565b6009546001600160a01b03163314610ea45733604051637b7d071760e11b81526004016103899190613147565b60005b81811015610f2357828282818110610ec157610ec1613a17565b90506040020160200135601c6000858585818110610ee157610ee1613a17565b610ef79260206040909202019081019150613397565b6001600160a01b0316815260208101919091526040016000205580610f1b81613a43565b915050610ea7565b505050565b600080610f33612c95565b9050610f40858285612d53565b610f4b858585612d97565b60019150505b9392505050565b6000610f62612c95565b6001600160a01b038116600090815260146020908152604080832083805290915281205491925003610fa957806040516308aa085d60e01b81526004016103899190613147565b6001600160a01b038116600090815260146020908152604080832083805282528083205480845260169092528220909160ff851660020361107e576001600160a01b03848116600090815260146020908152604080832060018452909152808220869055818052808220919091556004848101549151631f74b94b60e11b815291909216918291633ee972969161104291899101613147565b600060405180830381600087803b15801561105c57600080fd5b505af1158015611070573d6000803e3d6000fd5b5050505060089150506110a6565b506001600160a01b038316600090815260146020908152604080832083805290915281205560095b60048201546040516001600160a01b0390911690600080516020614057833981519152906110d990869088908690613824565b60405180910390a25050505050565b3360009081526018602052604090205460ff1660011461111d5733604051637b7d071760e11b81526004016103899190613147565b61112682611a05565b156111465781604051632fb7cf6560e11b81526004016103899190613147565b6001600160a01b03821660008181526014602090815260408083208380528252808320859055338084526019835281842080546001810182559085529290932090910180546001600160a01b031916909317909255905160008051602061405783398151915290610ce59084908690600790613824565b6000806111c8612c95565b6001600160a01b03808216600090815260016020908152604080832093891683529290522054909150610db89082908690611204908790613a5d565b612c9f565b3360009081526018602052604090205460ff1660011461123e5733604051637b7d071760e11b81526004016103899190613147565b600081815260166020526040902060026003820154600160a01b900460ff16600b81111561126e5761126e613762565b0361127857600080fd5b60038101805460ff60a01b1916600160a11b1781556002808301546001600160a01b039081166000908152601260209081526040808320839055945490921681526013909152828120559051339160008051602061405783398151915291610ce5918691329190613824565b6112ec612c95565b6001600160a01b03166112fd6117bf565b6001600160a01b0316146113235760405162461bcd60e51b815260040161038990613aa5565b600e93909355601191909155600c55600d55565b600080611342612e98565b6000818152601660205260409020919350915060046003820154600160a01b900460ff16600b81111561137757611377613762565b146113955760405163e90e4a2160e01b815260040160405180910390fd5b6000601154346113a59190613ab5565b905080600e60008282546113b99190613ad4565b909155506113c990508482612ebd565b50505050565b6000806113da612e98565b6000818152601660205260409020919350915060046003820154600160a01b900460ff16600b81111561140f5761140f613762565b1461142d5760405163e90e4a2160e01b815260040160405180910390fd5b600b546001600160a01b0384166000908152601a6020526040902054429161145491613a5d565b111561147357604051630c6c3c8b60e01b815260040160405180910390fd5b6004808201546001600160a01b038581166000908152601a6020908152604080832042905580516318f5c72960e31b81529051939094169491938493869363c7ae39489383820193909291908290030181865afa1580156114d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fc9190613af2565b90508060000361151057600d54915061165e565b6032811080156115205750600081115b156115bf57826001600160a01b031663393e9f526040518163ffffffff1660e01b8152600401602060405180830381865afa158015611563573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115879190613af2565b611592906014613ab5565b60115460048601546115ae91906001600160a01b031631613ab5565b6115b89190613b29565b915061165e565b603281111561165e57826001600160a01b031663393e9f526040518163ffffffff1660e01b8152600401602060405180830381865afa158015611606573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061162a9190613af2565b61163590600a613ab5565b601154600486015461165191906001600160a01b031631613ab5565b61165b9190613b29565b91505b6116688683612ebd565b505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0390811691161490565b60176020526000908152604090208054610df690613862565b6009546001600160a01b031633146116e85733604051637b7d071760e11b81526004016103899190613147565b336000908152601c602052604090205460010361171a5733604051637168ce3960e01b81526004016103899190613147565b600954611730906001600160a01b031647612f5f565b565b61173a612c95565b6001600160a01b031661174b6117bf565b6001600160a01b0316146117715760405162461bcd60e51b815260040161038990613aa5565b601055565b61177e612c95565b6001600160a01b031661178f6117bf565b6001600160a01b0316146117b55760405162461bcd60e51b815260040161038990613aa5565b6117306000612fe0565b6005546001600160a01b031690565b606060048054610d1d90613862565b3360009081526018602052604090205460ff166001146118125733604051637b7d071760e11b81526004016103899190613147565b610d0a8282613032565b6000611826612c95565b6001600160a01b03811660009081526013602090815260408083205480845260169092529091209192509060016003820154600160a01b900460ff16600b81111561187357611873613762565b1461189157604051637dca5dfd60e01b815260040160405180910390fd5b60048101546001600160a01b031660ff86166001036119395760038201805460ff60a01b1916600160a21b1790556001600160a01b03848116600090815260156020526040808220805460ff191660ff8a16179055805163fcd3f30f60e01b815290519284169263fcd3f30f9260048084019391929182900301818387803b15801561191c57600080fd5b505af1158015611930573d6000803e3d6000fd5b505050506119b3565b60038201805460ff60a01b191690556001600160a01b0384811660009081526013602052604080822082905580516219f9bf60e71b8152905192841692630cfcdf809260048084019391929182900301818387803b15801561199a57600080fd5b505af11580156119ae573d6000803e3d6000fd5b505050505b600482015460038301546040516001600160a01b0390921691600080516020614057833981519152916119f59187918991600160a01b90910460ff1690613824565b60405180910390a2505050505050565b6001600160a01b03811660009081526012602052604081205415611a3f57506001600160a01b031660009081526012602052604090205490565b6001600160a01b03821660009081526013602052604090205415611a7957506001600160a01b031660009081526013602052604090205490565b6001600160a01b03821660009081526014602090815260408083206001845290915290205415611acb57506001600160a01b031660009081526014602090815260408083206001845290915290205490565b6001600160a01b038216600090815260146020908152604080832083805290915290205415611aff5750633b9aca00919050565b919050565b600080611b0f612c95565b6001600160a01b0380821660009081526001602090815260408083209389168352929052205490915083811015611b585760405162461bcd60e51b815260040161038990613b82565b611b658286868403612c9f565b506001949350505050565b600080611b7b612c95565b9050610db8818585612d97565b336000908152601d60205260408120549003611bb957336040516344eba80760e01b81526004016103899190613147565b336000818152601d60205260408120805491905590611bd89082612ebd565b80600e6000828254611bea9190613ad4565b909155505050565b6001600160a01b038116600090815260196020908152604091829020805483518184028101840190945280845260609392830182828015611c5c57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611c3e575b50505050509050919050565b6001600a6000828254611c7b9190613a5d565b9091555050306000908152601c6020526040902054600103611cb057604051633bde45cf60e11b815260040160405180910390fd5b6001600160a01b0386163303611cdb5733604051631be3089f60e01b81526004016103899190613147565b611ce486611a05565b15611d045785604051632fb7cf6560e11b81526004016103899190613147565b611d0d33611a05565b15611d2d5733604051632fb7cf6560e11b81526004016103899190613147565b600a811115611d515780604051632e47af7360e01b81526004016103899190613373565b600a543360008181526012602090815260408083208590556001600160a01b038b168352601382528083209490945591815260158252828120805460ff191660ff8916179055601790915220611da7868261395a565b506000600860009054906101000a90046001600160a01b031690506000816001600160a01b031663711a1b8330600a54338c8a6010548b8b600c546040518a63ffffffff1660e01b8152600401611e0699989796959493929190613b92565b6020604051808303816000875af1158015611e25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e499190613c23565b6007546040516390085b1960e01b81529192506001600160a01b03169081906390085b1990611e7c908590600401613147565b600060405180830381600087803b158015611e9657600080fd5b505af1158015611eaa573d6000803e3d6000fd5b505050506001600160a01b038281166000908152601860209081526040918290208054600160ff199091168117909155825160c081018452600a54815234928101929092523392820192909252918b166060830152608082019081526001600160a01b03808516602092830152600a54600090815260168352604090819020845181559284015160018401558301516002830180549183166001600160a01b031992831617905560608401516003840180549190931691811682178355608085015192916001600160a81b031990911617600160a01b83600b811115611f9257611f92613762565b021790555060a09190910151600490910180546001600160a01b0319166001600160a01b03909216919091179055611fca8234612f5f565b816001600160a01b0316600080516020614057833981519152600a54336001604051611ff893929190613824565b60405180910390a2505050505050505050565b612013612c95565b6001600160a01b03166120246117bf565b6001600160a01b03161461204a5760405162461bcd60e51b815260040161038990613aa5565b60005b81811015610f235782828281811061206757612067613a17565b90506040020160200135601f600085858581811061208757612087613a17565b61209d9260206040909202019081019150613397565b6001600160a01b03168152602081019190915260400160002055806120c181613a43565b91505061204d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b601b6020526000908152604090208054610df690613862565b612115612c95565b6001600160a01b03166121266117bf565b6001600160a01b03161461214c5760405162461bcd60e51b815260040161038990613aa5565b600880546001600160a01b039384166001600160a01b03199182161790915560098054929093169116179055565b600f543410156121a157600f546040516350b0268560e01b81526004016103899190613373565b60006121ab612e98565b6000818152601660205260409020909250905060046003820154600160a01b900460ff16600b8111156121e0576121e0613762565b146121fe5760405163e90e4a2160e01b815260040160405180910390fd5b60006011543461220e9190613ab5565b905080600e60008282546122229190613ad4565b90915550506006546001600160a01b03166103e8861061227e57600f5461224a906064613ab5565b34101561227957600f5461225f906064613ab5565b6040516350b0268560e01b81526004016103899190613373565b6122a9565b606487106122a957600f5461229490600a613ab5565b3410156122a957600f5461225f90600a613ab5565b806001600160a01b031663c14c79788460020160009054906101000a90046001600160a01b0316601560008760020160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff168660030160009054906101000a90046001600160a01b0316601560008960030160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff168860040160009054906101000a90046001600160a01b031689600001548e8e8e6040518a63ffffffff1660e01b81526004016123c099989796959493929190613c44565b600060405180830381600087803b1580156123da57600080fd5b505af11580156123ee573d6000803e3d6000fd5b50505060028085015461241592506001600160a01b0316906124109085613b29565b612ebd565b6003830154612432906001600160a01b0316612410600285613b29565b50505050505050565b612443612c95565b6001600160a01b03166124546117bf565b6001600160a01b03161461247a5760405162461bcd60e51b815260040161038990613aa5565b600680546001600160a01b039384166001600160a01b03199182161790915560078054929093169116179055565b6124b0612c95565b6001600160a01b03166124c16117bf565b6001600160a01b0316146124e75760405162461bcd60e51b815260040161038990613aa5565b600b91909155600f55565b3360009081526018602052604090205460ff166001146125275733604051637b7d071760e11b81526004016103899190613147565b600081815260166020526040902060046003820154600160a01b900460ff16600b81111561255757612557613762565b146125755760405163e90e4a2160e01b815260040160405180910390fd5b60038101805460ff60a01b1916600560a01b17905560065460048083015460405163751da68d60e11b81526001600160a01b0393841693600093859363ea3b4d1a936125c5939091169101613147565b6020604051808303816000875af11580156125e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126089190613af2565b11156126765760048083015460405163be92e99560e01b81526001600160a01b038085169363be92e995936126439392169160009101613c87565b600060405180830381600087803b15801561265d57600080fd5b505af1158015612671573d6000803e3d6000fd5b505050505b336001600160a01b0316600080516020614057833981519152843360056040516126a293929190613824565b60405180910390a2505050565b6126b7612c95565b6001600160a01b03166126c86117bf565b6001600160a01b0316146126ee5760405162461bcd60e51b815260040161038990613aa5565b6001600160a01b0381166127145760405162461bcd60e51b815260040161038990613ce5565b61271d81612fe0565b50565b6009546001600160a01b0316331461274d5733604051637b7d071760e11b81526004016103899190613147565b336000908152601c602052604090205460010361277f5733604051637168ce3960e01b81526004016103899190613147565b6040516370a0823160e01b81526000906001600160a01b038316906370a08231906127ae903090600401613147565b602060405180830381865afa1580156127cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127ef9190613af2565b60095460405163a9059cbb60e01b81529192506000916001600160a01b038581169263a9059cbb9261282992909116908690600401613cf5565b6020604051808303816000875af1158015612848573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061286c9190613d23565b905080610f2357600954604051631663bb0560e01b8152610389916001600160a01b0316908490600401613cf5565b6128a3612c95565b6001600160a01b03166128b46117bf565b6001600160a01b0316146128da5760405162461bcd60e51b815260040161038990613aa5565b60005b81811015610f23578282828181106128f7576128f7613a17565b90506040020160200135601d600085858581811061291757612917613a17565b61292d9260206040909202019081019150613397565b6001600160a01b031681526020810191909152604001600020558061295181613a43565b9150506128dd565b6129616130f1565b60008061296c612e98565b915091506000811180156129835750633b9aca0081105b15612a2857600081815260166020908152604091829020825160c0810184528154815260018201549281019290925260028101546001600160a01b03908116938301939093526003810154928316606083015290916080830190600160a01b900460ff16600b8111156129f8576129f8613762565b600b811115612a0957612a09613762565b8152600491909101546001600160a01b03166020909101529392505050565b80633b9aca0003612b2d576001600160a01b03808316600090815260146020908152604080832083805282528083205480845260168352818420825160c08101845281548152600182015494810194909452600281015486169284019290925260038201549485166060840152936080830190600160a01b900460ff16600b811115612ab657612ab6613762565b600b811115612ac757612ac7613762565b8152600491909101546001600160a01b039081166020928301526040805160c0810182529687528383015192870192909252828201518116918601919091526060808301518216908601526006608086015260a091820151169084015250909392505050565b610f516130f1565b600081815260166020526040902060048101546001600160a01b03163314612b725733604051637b7d071760e11b81526004016103899190613147565b6001600160a01b03841660009081526012602052604090205415612bd3576001600160a01b038085166000908152601260205260408082208290559185168082529190208390556002820180546001600160a01b0319169091179055612c30565b6001600160a01b03841660009081526013602052604090205415612c30576001600160a01b038085166000908152601360205260408082208290559185168082529190208390556003820180546001600160a01b03191690911790555b336001600160a01b03166000805160206140578339815191528385600b604051612c5c93929190613824565b60405180910390a250505050565b6000612c7533611670565b15612c87575060131936013560601c90565b503390565b905090565b3390565b6000612c8c612c6a565b6001600160a01b038316612cc55760405162461bcd60e51b815260040161038990613d85565b6001600160a01b038216612ceb5760405162461bcd60e51b815260040161038990613dd4565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590612d46908590613373565b60405180910390a3505050565b6000612d5f84846120c9565b905060001981146113c95781811015612d8a5760405162461bcd60e51b815260040161038990613e18565b6113c98484848403612c9f565b6001600160a01b038316612dbd5760405162461bcd60e51b815260040161038990613e6a565b6001600160a01b038216612de35760405162461bcd60e51b815260040161038990613eba565b6001600160a01b03831660009081526020819052604090205481811015612e1c5760405162461bcd60e51b815260040161038990613f0d565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290612e53908490613a5d565b92505081905550826001600160a01b0316846001600160a01b031660008051602061403783398151915284604051612e8b9190613373565b60405180910390a36113c9565b6000806000612ea5612c95565b90506000612eb282611a05565b919491935090915050565b6001600160a01b038216612ee35760405162461bcd60e51b815260040161038990613f51565b8060026000828254612ef59190613a5d565b90915550506001600160a01b03821660009081526020819052604081208054839290612f22908490613a5d565b90915550506040516001600160a01b0383169060009060008051602061403783398151915290612f53908590613373565b60405180910390a35050565b6000826001600160a01b031682604051612f7890613f61565b60006040518083038185875af1925050503d8060008114612fb5576040519150601f19603f3d011682016040523d82523d6000602084013e612fba565b606091505b5050905080610f23578282604051631663bb0560e01b8152600401610389929190613f8b565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166130585760405162461bcd60e51b815260040161038990613fd7565b6001600160a01b038216600090815260208190526040902054818110156130915760405162461bcd60e51b815260040161038990614026565b6001600160a01b03831660009081526020819052604081208383039055600280548492906130c0908490613ad4565b90915550506040516000906001600160a01b0385169060008051602061403783398151915290612d46908690613373565b6040805160c081018252600080825260208201819052918101829052606081018290529060808201908152600060209091015290565b60006001600160a01b038216610dbe565b61314181613127565b82525050565b60208101610dbe8284613138565b61315e81613127565b811461271d57600080fd5b8035610dbe81613155565b8061315e565b8035610dbe81613174565b6000806040838503121561319b5761319b600080fd5b60006131a78585613169565b92505060206131b88582860161317a565b9150509250929050565b601f01601f191690565b634e487b7160e01b600052604160045260246000fd5b6131eb826131c2565b81018181106001600160401b0382111715613208576132086131cc565b6040525050565b600061321a60405190565b9050611aff82826131e2565b60006001600160401b0382111561323f5761323f6131cc565b613248826131c2565b60200192915050565b82818337506000910152565b600061327061326b84613226565b61320f565b90508281526020810184848401111561328b5761328b600080fd5b613296848285613251565b509392505050565b600082601f8301126132b2576132b2600080fd5b81356132c284826020860161325d565b949350505050565b6000602082840312156132df576132df600080fd5b81356001600160401b038111156132f8576132f8600080fd5b6132c28482850161329e565b60005b8381101561331f578181015183820152602001613307565b50506000910152565b6000613332825190565b808452602084019350613349818560208601613304565b613352816131c2565b9093019392505050565b60208082528101610f518184613328565b80613141565b60208101610dbe828461336d565b801515613141565b60208101610dbe8284613381565b6000602082840312156133ac576133ac600080fd5b60006132c28484613169565b60008083601f8401126133cd576133cd600080fd5b5081356001600160401b038111156133e7576133e7600080fd5b60208301915083604082028301111561340257613402600080fd5b9250929050565b6000806020838503121561341f5761341f600080fd5b82356001600160401b0381111561343857613438600080fd5b613444858286016133b8565b92509250509250929050565b60008060006060848603121561346857613468600080fd5b60006134748686613169565b935050602061348586828701613169565b92505060406134968682870161317a565b9150509250925092565b60ff811661315e565b8035610dbe816134a0565b6000602082840312156134c9576134c9600080fd5b60006132c284846134a9565b60ff8116613141565b60208101610dbe82846134d5565b60006020828403121561350157613501600080fd5b60006132c2848461317a565b6000806000806080858703121561352657613526600080fd5b6000613532878761317a565b94505060206135438782880161317a565b93505060406135548782880161317a565b92505060606135658782880161317a565b91505092959194509250565b6000806040838503121561358757613587600080fd5b600061359385856134a9565b92505060206131b8858286016134a9565b60006135b08383613138565b505060200190565b60006135c2825190565b80845260209384019383018060005b838110156135f65781516135e588826135a4565b9750602083019250506001016135d1565b509495945050505050565b60208082528101610f5181846135b8565b60008060008060008060c0878903121561362e5761362e600080fd5b600061363a8989613169565b96505060208701356001600160401b0381111561365957613659600080fd5b61366589828a0161329e565b955050604061367689828a016134a9565b945050606061368789828a0161317a565b935050608061369889828a0161317a565b92505060a06136a989828a0161317a565b9150509295509295509295565b600080604083850312156136cc576136cc600080fd5b60006135938585613169565b600080604083850312156136ee576136ee600080fd5b60006136fa8585613169565b92505060206131b885828601613169565b60008060006060848603121561372357613723600080fd5b600061372f868661317a565b93505060206134858682870161317a565b6000806040838503121561375657613756600080fd5b60006131a7858561317a565b634e487b7160e01b600052602160045260246000fd5b600c811061271d5761271d613762565b80611aff81613778565b6000610dbe82613788565b61314181613792565b805160c08301906137b7848261336d565b5060208201516137ca602085018261336d565b5060408201516137dd6040850182613138565b5060608201516137f06060850182613138565b506080820151613803608085018261379d565b5060a08201516113c960a0850182613138565b60c08101610dbe82846137a6565b60608101613832828661336d565b61383f6020830185613138565b6132c2604083018461379d565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061387657607f821691505b6020821081036138885761388861384c565b50919050565b6000610dbe61389a8381565b90565b6138a68361388e565b81546008840282811b60001990911b908116901990911617825550505050565b6000610f2381848461389d565b81811015610d0a576138e66000826138c6565b6001016138d3565b601f821115610f23576000818152602090206020601f850104810160208510156139155750805b6139276020601f8601048301826138d3565b5050505050565b6000196008929092029190911c191690565b600061394c838361392e565b600290930290921792915050565b81516001600160401b03811115613973576139736131cc565b61397d8254613862565b6139888282856138ee565b6020601f8311600181146139b657600084156139a45750858201515b6139ae8582613940565b865550611668565b600085815260208120601f198616915b828110156139e657888501518255602094850194600190920191016139c6565b86831015613a0357848901516139ff601f89168261392e565b8355505b600160028802018855505050505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198203613a5657613a56613a2d565b5060010190565b80820180821115610dbe57610dbe613a2d565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910190815260005b5060200190565b60208082528101610dbe81613a70565b818102808215838204851417613acd57613acd613a2d565b5092915050565b81810381811115610dbe57610dbe613a2d565b8051610dbe81613174565b600060208284031215613b0757613b07600080fd5b60006132c28484613ae7565b634e487b7160e01b600052601260045260246000fd5b600082613b3857613b38613b13565b500490565b602581526000602082017f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77815264207a65726f60d81b602082015291505b5060400190565b60208082528101610dbe81613b3d565b6101208101613ba1828c613138565b613bae602083018b61336d565b613bbb604083018a613138565b613bc86060830189613138565b613bd5608083018861336d565b613be260a083018761336d565b613bef60c083018661336d565b613bfc60e083018561336d565b613c0a61010083018461336d565b9a9950505050505050505050565b8051610dbe81613155565b600060208284031215613c3857613c38600080fd5b60006132c28484613c18565b6101208101613c53828c613138565b613c60602083018b6134d5565b613c6d604083018a613138565b613c7a60608301896134d5565b613bd56080830188613138565b60408101613c958285613138565b610f516020830184613381565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150613b7b565b60208082528101610dbe81613ca2565b60408101613d038285613138565b610f51602083018461336d565b80151561315e565b8051610dbe81613d10565b600060208284031215613d3857613d38600080fd5b60006132c28484613d18565b602481526000602082017f45524332303a20617070726f76652066726f6d20746865207a65726f206164648152637265737360e01b60208201529150613b7b565b60208082528101610dbe81613d44565b602281526000602082017f45524332303a20617070726f766520746f20746865207a65726f206164647265815261737360f01b60208201529150613b7b565b60208082528101610dbe81613d95565b601d81526000602082017f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000081529150613a9e565b60208082528101610dbe81613de4565b602581526000602082017f45524332303a207472616e736665722066726f6d20746865207a65726f206164815264647265737360d81b60208201529150613b7b565b60208082528101610dbe81613e28565b602381526000602082017f45524332303a207472616e7366657220746f20746865207a65726f206164647281526265737360e81b60208201529150613b7b565b60208082528101610dbe81613e7a565b602681526000602082017f45524332303a207472616e7366657220616d6f756e7420657863656564732062815265616c616e636560d01b60208201529150613b7b565b60208082528101610dbe81613eca565b601f81526000602082017f45524332303a206d696e7420746f20746865207a65726f20616464726573730081529150613a9e565b60208082528101610dbe81613f1d565b6000610dbe8261389a565b6000610dbe82613127565b6000610dbe82613f6c565b61314181613f77565b60408101613d038285613f82565b602181526000602082017f45524332303a206275726e2066726f6d20746865207a65726f206164647265738152607360f81b60208201529150613b7b565b60208082528101610dbe81613f99565b602281526000602082017f45524332303a206275726e20616d6f756e7420657863656564732062616c616e815261636560f01b60208201529150613b7b565b60208082528101610dbe81613fe756feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efaab4a163f07264b3f8202b3c1c4598e9721c2c2119aa1b967408d968dc0f8b04a264697066735822122028498a1cf923b16dda9ae613d7c557711b6df7212d4df619422ede135a3adb3564736f6c63430008110033000000000000000000000000a4abb2bfeda234ad4a72ca8fc2309cc039a4f74b000000000000000000000000eb161b2d330b68909ce69360a245832612844830000000000000000000000000e9eed09e21301edf574d6d621885a82c1f6c97e70000000000000000000000007227a213962d62b5719bb0fdd4a21dedf62f5bfe000000000000000000000000ddaafff199a81fcf0393ed6b8d09911ae7f96106000000000000000000000000392b4ff74cf4fd1f30c3515853dc370cdb9c24db0000000000000000000000001ab6721784818563cdd08a56ea691e800d3e49d2
Deployed Bytecode
0x6080604052600436106103525760003560e01c806395d89b41116101bd578063d8e773a2116100f8578063f199413c1161009b578063f199413c14610a9d578063f1b13de814610abd578063f2fde38b14610add578063f4f3b20014610afd578063f559e38614610b1d578063f6df226514610b3d578063f7dd5cc314610b5f578063fead49f314610b75578063ffa1ad7414610b9557600080fd5b8063d8e773a2146109a7578063da07c0c0146109d4578063dd62ed3e146109f4578063e4a526fe14610a14578063eb5439dc14610a34578063eb91eef214610a54578063ecb4096a14610a6a578063f05ac0b114610a7d57600080fd5b8063b226821e11610160578063b226821e146108a7578063b69ef8a8146108c7578063b88a802f146108da578063bf2b22c5146108ef578063c6a1ac1a1461091c578063caa491cc1461092f578063cb56136f1461094f578063ce6c48161461098757600080fd5b806395d89b41146107af5780639dc29fac146107c45780639e9e6ce2146107e4578063a230c52414610804578063a457c2d714610824578063a52dad9514610844578063a9059cbb14610871578063b0f57a6b1461089157600080fd5b8063395093511161028d5780635c8ab787116102305780635c8ab787146106a05780635fdd59f8146106cd578063614cae62146106ed5780636a1db1bf1461070257806370a0823114610722578063715018a6146107585780638da5cb5b1461076d5780638ffd033c1461078257600080fd5b806339509351146105d75780633ba0b9a9146105f75780633e004de21461060d57806340e58ee51461062357806341cc045d1461064357806343a7c5a0146106635780634451d89f1461066b578063572b6c051461068057600080fd5b806318160ddd116102f557806318160ddd146104e35780631cd090d6146104f857806323b872dd14610518578063240bbc5214610538578063245547d31461054e5780632e4ccf721461056e57806330d952bc1461059b578063313ce567146105bb57600080fd5b806306307c0d146103a657806306c071c2146103c657806306fdde03146103e6578063078fd9ea14610411578063095ea7b31461043457806309b6ce341461046157806311456b47146104a35780631482024f146104c357600080fd5b366103a157336000908152601c60205260409020546001036103925733604051637168ce3960e01b81526004016103899190613147565b60405180910390fd5b6000341161039f57600080fd5b005b600080fd5b3480156103b257600080fd5b5061039f6103c1366004613185565b610bc6565b3480156103d257600080fd5b5061039f6103e13660046132ca565b610cf1565b3480156103f257600080fd5b506103fb610d0e565b604051610408919061335c565b60405180910390f35b34801561041d57600080fd5b50610427600e5481565b6040516104089190613373565b34801561044057600080fd5b5061045461044f366004613185565b610da0565b6040516104089190613389565b34801561046d57600080fd5b5061039f336000908152601260209081526040808320839055601382528083208390556014825280832060018452909152812055565b3480156104af57600080fd5b5061039f6104be3660046132ca565b610dc4565b3480156104cf57600080fd5b506103fb6104de366004613397565b610ddd565b3480156104ef57600080fd5b50600254610427565b34801561050457600080fd5b5061039f610513366004613409565b610e77565b34801561052457600080fd5b50610454610533366004613450565b610f28565b34801561054457600080fd5b50610427600c5481565b34801561055a57600080fd5b5061039f6105693660046134b4565b610f58565b34801561057a57600080fd5b5060065461058e906001600160a01b031681565b6040516104089190613147565b3480156105a757600080fd5b5061039f6105b6366004613185565b6110e8565b3480156105c757600080fd5b50601260405161040891906134de565b3480156105e357600080fd5b506104546105f2366004613185565b6111bd565b34801561060357600080fd5b5061042760115481565b34801561061957600080fd5b50610427600d5481565b34801561062f57600080fd5b5061039f61063e3660046134ec565b611209565b34801561064f57600080fd5b5061039f61065e36600461350d565b6112e4565b61039f611337565b34801561067757600080fd5b5061039f6113cf565b34801561068c57600080fd5b5061045461069b366004613397565b611670565b3480156106ac57600080fd5b506104276106bb366004613397565b601a6020526000908152604090205481565b3480156106d957600080fd5b506103fb6106e8366004613397565b6116a2565b3480156106f957600080fd5b5061039f6116bb565b34801561070e57600080fd5b5061039f61071d3660046134ec565b611732565b34801561072e57600080fd5b5061042761073d366004613397565b6001600160a01b031660009081526020819052604090205490565b34801561076457600080fd5b5061039f611776565b34801561077957600080fd5b5061058e6117bf565b34801561078e57600080fd5b5061042761079d366004613397565b601d6020526000908152604090205481565b3480156107bb57600080fd5b506103fb6117ce565b3480156107d057600080fd5b5061039f6107df366004613185565b6117dd565b3480156107f057600080fd5b5061039f6107ff366004613571565b61181c565b34801561081057600080fd5b5061042761081f366004613397565b611a05565b34801561083057600080fd5b5061045461083f366004613185565b611b04565b34801561085057600080fd5b5061042761085f366004613397565b601c6020526000908152604090205481565b34801561087d57600080fd5b5061045461088c366004613185565b611b70565b34801561089d57600080fd5b5061042760105481565b3480156108b357600080fd5b5060075461058e906001600160a01b031681565b3480156108d357600080fd5b5047610427565b3480156108e657600080fd5b5061039f611b88565b3480156108fb57600080fd5b5061090f61090a366004613397565b611bf2565b6040516104089190613601565b61039f61092a366004613612565b611c68565b34801561093b57600080fd5b5061039f61094a366004613409565b61200b565b34801561095b57600080fd5b5061042761096a3660046136b6565b601460209081526000928352604080842090915290825290205481565b34801561099357600080fd5b5060095461058e906001600160a01b031681565b3480156109b357600080fd5b506104276109c2366004613397565b601f6020526000908152604090205481565b3480156109e057600080fd5b5060085461058e906001600160a01b031681565b348015610a0057600080fd5b50610427610a0f3660046136d8565b6120c9565b348015610a2057600080fd5b506103fb610a2f366004613397565b6120f4565b348015610a4057600080fd5b5061039f610a4f3660046136d8565b61210d565b348015610a6057600080fd5b50610427600b5481565b61039f610a7836600461370b565b61217a565b348015610a8957600080fd5b5061039f610a983660046136d8565b61243b565b348015610aa957600080fd5b5061039f610ab8366004613740565b6124a8565b348015610ac957600080fd5b5061039f610ad83660046134ec565b6124f2565b348015610ae957600080fd5b5061039f610af8366004613397565b6126af565b348015610b0957600080fd5b5061039f610b18366004613397565b612720565b348015610b2957600080fd5b5061039f610b38366004613409565b61289b565b348015610b4957600080fd5b50610b52612959565b6040516104089190613816565b348015610b6b57600080fd5b50610427600f5481565b348015610b8157600080fd5b5061039f610b90366004613450565b612b35565b348015610ba157600080fd5b506103fb60405180604001604052806005815260200164312e302e3160d81b81525081565b3360009081526018602052604090205460ff16600114610bfb5733604051637b7d071760e11b81526004016103899190613147565b6001600160a01b03821660009081526014602090815260408083206001845290915290205415610c4f576001600160a01b038216600090815260146020908152604080832060018452909152812055610cb9565b6001600160a01b03821660009081526014602090815260408083208380529091528120549003610c9457816040516308aa085d60e01b81526004016103899190613147565b6001600160a01b03821660009081526014602090815260408083208380529091528120555b336001600160a01b03166000805160206140578339815191528284600a604051610ce593929190613824565b60405180910390a25050565b336000908152601e60205260409020610d0a828261395a565b5050565b606060038054610d1d90613862565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4990613862565b8015610d965780601f10610d6b57610100808354040283529160200191610d96565b820191906000526020600020905b815481529060010190602001808311610d7957829003601f168201915b5050505050905090565b600080610dab612c95565b9050610db8818585612c9f565b60019150505b92915050565b336000908152601b60205260409020610d0a828261395a565b601e6020526000908152604090208054610df690613862565b80601f0160208091040260200160405190810160405280929190818152602001828054610e2290613862565b8015610e6f5780601f10610e4457610100808354040283529160200191610e6f565b820191906000526020600020905b815481529060010190602001808311610e5257829003601f168201915b505050505081565b6009546001600160a01b03163314610ea45733604051637b7d071760e11b81526004016103899190613147565b60005b81811015610f2357828282818110610ec157610ec1613a17565b90506040020160200135601c6000858585818110610ee157610ee1613a17565b610ef79260206040909202019081019150613397565b6001600160a01b0316815260208101919091526040016000205580610f1b81613a43565b915050610ea7565b505050565b600080610f33612c95565b9050610f40858285612d53565b610f4b858585612d97565b60019150505b9392505050565b6000610f62612c95565b6001600160a01b038116600090815260146020908152604080832083805290915281205491925003610fa957806040516308aa085d60e01b81526004016103899190613147565b6001600160a01b038116600090815260146020908152604080832083805282528083205480845260169092528220909160ff851660020361107e576001600160a01b03848116600090815260146020908152604080832060018452909152808220869055818052808220919091556004848101549151631f74b94b60e11b815291909216918291633ee972969161104291899101613147565b600060405180830381600087803b15801561105c57600080fd5b505af1158015611070573d6000803e3d6000fd5b5050505060089150506110a6565b506001600160a01b038316600090815260146020908152604080832083805290915281205560095b60048201546040516001600160a01b0390911690600080516020614057833981519152906110d990869088908690613824565b60405180910390a25050505050565b3360009081526018602052604090205460ff1660011461111d5733604051637b7d071760e11b81526004016103899190613147565b61112682611a05565b156111465781604051632fb7cf6560e11b81526004016103899190613147565b6001600160a01b03821660008181526014602090815260408083208380528252808320859055338084526019835281842080546001810182559085529290932090910180546001600160a01b031916909317909255905160008051602061405783398151915290610ce59084908690600790613824565b6000806111c8612c95565b6001600160a01b03808216600090815260016020908152604080832093891683529290522054909150610db89082908690611204908790613a5d565b612c9f565b3360009081526018602052604090205460ff1660011461123e5733604051637b7d071760e11b81526004016103899190613147565b600081815260166020526040902060026003820154600160a01b900460ff16600b81111561126e5761126e613762565b0361127857600080fd5b60038101805460ff60a01b1916600160a11b1781556002808301546001600160a01b039081166000908152601260209081526040808320839055945490921681526013909152828120559051339160008051602061405783398151915291610ce5918691329190613824565b6112ec612c95565b6001600160a01b03166112fd6117bf565b6001600160a01b0316146113235760405162461bcd60e51b815260040161038990613aa5565b600e93909355601191909155600c55600d55565b600080611342612e98565b6000818152601660205260409020919350915060046003820154600160a01b900460ff16600b81111561137757611377613762565b146113955760405163e90e4a2160e01b815260040160405180910390fd5b6000601154346113a59190613ab5565b905080600e60008282546113b99190613ad4565b909155506113c990508482612ebd565b50505050565b6000806113da612e98565b6000818152601660205260409020919350915060046003820154600160a01b900460ff16600b81111561140f5761140f613762565b1461142d5760405163e90e4a2160e01b815260040160405180910390fd5b600b546001600160a01b0384166000908152601a6020526040902054429161145491613a5d565b111561147357604051630c6c3c8b60e01b815260040160405180910390fd5b6004808201546001600160a01b038581166000908152601a6020908152604080832042905580516318f5c72960e31b81529051939094169491938493869363c7ae39489383820193909291908290030181865afa1580156114d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fc9190613af2565b90508060000361151057600d54915061165e565b6032811080156115205750600081115b156115bf57826001600160a01b031663393e9f526040518163ffffffff1660e01b8152600401602060405180830381865afa158015611563573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115879190613af2565b611592906014613ab5565b60115460048601546115ae91906001600160a01b031631613ab5565b6115b89190613b29565b915061165e565b603281111561165e57826001600160a01b031663393e9f526040518163ffffffff1660e01b8152600401602060405180830381865afa158015611606573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061162a9190613af2565b61163590600a613ab5565b601154600486015461165191906001600160a01b031631613ab5565b61165b9190613b29565b91505b6116688683612ebd565b505050505050565b7f000000000000000000000000a4abb2bfeda234ad4a72ca8fc2309cc039a4f74b6001600160a01b0390811691161490565b60176020526000908152604090208054610df690613862565b6009546001600160a01b031633146116e85733604051637b7d071760e11b81526004016103899190613147565b336000908152601c602052604090205460010361171a5733604051637168ce3960e01b81526004016103899190613147565b600954611730906001600160a01b031647612f5f565b565b61173a612c95565b6001600160a01b031661174b6117bf565b6001600160a01b0316146117715760405162461bcd60e51b815260040161038990613aa5565b601055565b61177e612c95565b6001600160a01b031661178f6117bf565b6001600160a01b0316146117b55760405162461bcd60e51b815260040161038990613aa5565b6117306000612fe0565b6005546001600160a01b031690565b606060048054610d1d90613862565b3360009081526018602052604090205460ff166001146118125733604051637b7d071760e11b81526004016103899190613147565b610d0a8282613032565b6000611826612c95565b6001600160a01b03811660009081526013602090815260408083205480845260169092529091209192509060016003820154600160a01b900460ff16600b81111561187357611873613762565b1461189157604051637dca5dfd60e01b815260040160405180910390fd5b60048101546001600160a01b031660ff86166001036119395760038201805460ff60a01b1916600160a21b1790556001600160a01b03848116600090815260156020526040808220805460ff191660ff8a16179055805163fcd3f30f60e01b815290519284169263fcd3f30f9260048084019391929182900301818387803b15801561191c57600080fd5b505af1158015611930573d6000803e3d6000fd5b505050506119b3565b60038201805460ff60a01b191690556001600160a01b0384811660009081526013602052604080822082905580516219f9bf60e71b8152905192841692630cfcdf809260048084019391929182900301818387803b15801561199a57600080fd5b505af11580156119ae573d6000803e3d6000fd5b505050505b600482015460038301546040516001600160a01b0390921691600080516020614057833981519152916119f59187918991600160a01b90910460ff1690613824565b60405180910390a2505050505050565b6001600160a01b03811660009081526012602052604081205415611a3f57506001600160a01b031660009081526012602052604090205490565b6001600160a01b03821660009081526013602052604090205415611a7957506001600160a01b031660009081526013602052604090205490565b6001600160a01b03821660009081526014602090815260408083206001845290915290205415611acb57506001600160a01b031660009081526014602090815260408083206001845290915290205490565b6001600160a01b038216600090815260146020908152604080832083805290915290205415611aff5750633b9aca00919050565b919050565b600080611b0f612c95565b6001600160a01b0380821660009081526001602090815260408083209389168352929052205490915083811015611b585760405162461bcd60e51b815260040161038990613b82565b611b658286868403612c9f565b506001949350505050565b600080611b7b612c95565b9050610db8818585612d97565b336000908152601d60205260408120549003611bb957336040516344eba80760e01b81526004016103899190613147565b336000818152601d60205260408120805491905590611bd89082612ebd565b80600e6000828254611bea9190613ad4565b909155505050565b6001600160a01b038116600090815260196020908152604091829020805483518184028101840190945280845260609392830182828015611c5c57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611c3e575b50505050509050919050565b6001600a6000828254611c7b9190613a5d565b9091555050306000908152601c6020526040902054600103611cb057604051633bde45cf60e11b815260040160405180910390fd5b6001600160a01b0386163303611cdb5733604051631be3089f60e01b81526004016103899190613147565b611ce486611a05565b15611d045785604051632fb7cf6560e11b81526004016103899190613147565b611d0d33611a05565b15611d2d5733604051632fb7cf6560e11b81526004016103899190613147565b600a811115611d515780604051632e47af7360e01b81526004016103899190613373565b600a543360008181526012602090815260408083208590556001600160a01b038b168352601382528083209490945591815260158252828120805460ff191660ff8916179055601790915220611da7868261395a565b506000600860009054906101000a90046001600160a01b031690506000816001600160a01b031663711a1b8330600a54338c8a6010548b8b600c546040518a63ffffffff1660e01b8152600401611e0699989796959493929190613b92565b6020604051808303816000875af1158015611e25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e499190613c23565b6007546040516390085b1960e01b81529192506001600160a01b03169081906390085b1990611e7c908590600401613147565b600060405180830381600087803b158015611e9657600080fd5b505af1158015611eaa573d6000803e3d6000fd5b505050506001600160a01b038281166000908152601860209081526040918290208054600160ff199091168117909155825160c081018452600a54815234928101929092523392820192909252918b166060830152608082019081526001600160a01b03808516602092830152600a54600090815260168352604090819020845181559284015160018401558301516002830180549183166001600160a01b031992831617905560608401516003840180549190931691811682178355608085015192916001600160a81b031990911617600160a01b83600b811115611f9257611f92613762565b021790555060a09190910151600490910180546001600160a01b0319166001600160a01b03909216919091179055611fca8234612f5f565b816001600160a01b0316600080516020614057833981519152600a54336001604051611ff893929190613824565b60405180910390a2505050505050505050565b612013612c95565b6001600160a01b03166120246117bf565b6001600160a01b03161461204a5760405162461bcd60e51b815260040161038990613aa5565b60005b81811015610f235782828281811061206757612067613a17565b90506040020160200135601f600085858581811061208757612087613a17565b61209d9260206040909202019081019150613397565b6001600160a01b03168152602081019190915260400160002055806120c181613a43565b91505061204d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b601b6020526000908152604090208054610df690613862565b612115612c95565b6001600160a01b03166121266117bf565b6001600160a01b03161461214c5760405162461bcd60e51b815260040161038990613aa5565b600880546001600160a01b039384166001600160a01b03199182161790915560098054929093169116179055565b600f543410156121a157600f546040516350b0268560e01b81526004016103899190613373565b60006121ab612e98565b6000818152601660205260409020909250905060046003820154600160a01b900460ff16600b8111156121e0576121e0613762565b146121fe5760405163e90e4a2160e01b815260040160405180910390fd5b60006011543461220e9190613ab5565b905080600e60008282546122229190613ad4565b90915550506006546001600160a01b03166103e8861061227e57600f5461224a906064613ab5565b34101561227957600f5461225f906064613ab5565b6040516350b0268560e01b81526004016103899190613373565b6122a9565b606487106122a957600f5461229490600a613ab5565b3410156122a957600f5461225f90600a613ab5565b806001600160a01b031663c14c79788460020160009054906101000a90046001600160a01b0316601560008760020160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff168660030160009054906101000a90046001600160a01b0316601560008960030160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a900460ff168860040160009054906101000a90046001600160a01b031689600001548e8e8e6040518a63ffffffff1660e01b81526004016123c099989796959493929190613c44565b600060405180830381600087803b1580156123da57600080fd5b505af11580156123ee573d6000803e3d6000fd5b50505060028085015461241592506001600160a01b0316906124109085613b29565b612ebd565b6003830154612432906001600160a01b0316612410600285613b29565b50505050505050565b612443612c95565b6001600160a01b03166124546117bf565b6001600160a01b03161461247a5760405162461bcd60e51b815260040161038990613aa5565b600680546001600160a01b039384166001600160a01b03199182161790915560078054929093169116179055565b6124b0612c95565b6001600160a01b03166124c16117bf565b6001600160a01b0316146124e75760405162461bcd60e51b815260040161038990613aa5565b600b91909155600f55565b3360009081526018602052604090205460ff166001146125275733604051637b7d071760e11b81526004016103899190613147565b600081815260166020526040902060046003820154600160a01b900460ff16600b81111561255757612557613762565b146125755760405163e90e4a2160e01b815260040160405180910390fd5b60038101805460ff60a01b1916600560a01b17905560065460048083015460405163751da68d60e11b81526001600160a01b0393841693600093859363ea3b4d1a936125c5939091169101613147565b6020604051808303816000875af11580156125e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126089190613af2565b11156126765760048083015460405163be92e99560e01b81526001600160a01b038085169363be92e995936126439392169160009101613c87565b600060405180830381600087803b15801561265d57600080fd5b505af1158015612671573d6000803e3d6000fd5b505050505b336001600160a01b0316600080516020614057833981519152843360056040516126a293929190613824565b60405180910390a2505050565b6126b7612c95565b6001600160a01b03166126c86117bf565b6001600160a01b0316146126ee5760405162461bcd60e51b815260040161038990613aa5565b6001600160a01b0381166127145760405162461bcd60e51b815260040161038990613ce5565b61271d81612fe0565b50565b6009546001600160a01b0316331461274d5733604051637b7d071760e11b81526004016103899190613147565b336000908152601c602052604090205460010361277f5733604051637168ce3960e01b81526004016103899190613147565b6040516370a0823160e01b81526000906001600160a01b038316906370a08231906127ae903090600401613147565b602060405180830381865afa1580156127cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127ef9190613af2565b60095460405163a9059cbb60e01b81529192506000916001600160a01b038581169263a9059cbb9261282992909116908690600401613cf5565b6020604051808303816000875af1158015612848573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061286c9190613d23565b905080610f2357600954604051631663bb0560e01b8152610389916001600160a01b0316908490600401613cf5565b6128a3612c95565b6001600160a01b03166128b46117bf565b6001600160a01b0316146128da5760405162461bcd60e51b815260040161038990613aa5565b60005b81811015610f23578282828181106128f7576128f7613a17565b90506040020160200135601d600085858581811061291757612917613a17565b61292d9260206040909202019081019150613397565b6001600160a01b031681526020810191909152604001600020558061295181613a43565b9150506128dd565b6129616130f1565b60008061296c612e98565b915091506000811180156129835750633b9aca0081105b15612a2857600081815260166020908152604091829020825160c0810184528154815260018201549281019290925260028101546001600160a01b03908116938301939093526003810154928316606083015290916080830190600160a01b900460ff16600b8111156129f8576129f8613762565b600b811115612a0957612a09613762565b8152600491909101546001600160a01b03166020909101529392505050565b80633b9aca0003612b2d576001600160a01b03808316600090815260146020908152604080832083805282528083205480845260168352818420825160c08101845281548152600182015494810194909452600281015486169284019290925260038201549485166060840152936080830190600160a01b900460ff16600b811115612ab657612ab6613762565b600b811115612ac757612ac7613762565b8152600491909101546001600160a01b039081166020928301526040805160c0810182529687528383015192870192909252828201518116918601919091526060808301518216908601526006608086015260a091820151169084015250909392505050565b610f516130f1565b600081815260166020526040902060048101546001600160a01b03163314612b725733604051637b7d071760e11b81526004016103899190613147565b6001600160a01b03841660009081526012602052604090205415612bd3576001600160a01b038085166000908152601260205260408082208290559185168082529190208390556002820180546001600160a01b0319169091179055612c30565b6001600160a01b03841660009081526013602052604090205415612c30576001600160a01b038085166000908152601360205260408082208290559185168082529190208390556003820180546001600160a01b03191690911790555b336001600160a01b03166000805160206140578339815191528385600b604051612c5c93929190613824565b60405180910390a250505050565b6000612c7533611670565b15612c87575060131936013560601c90565b503390565b905090565b3390565b6000612c8c612c6a565b6001600160a01b038316612cc55760405162461bcd60e51b815260040161038990613d85565b6001600160a01b038216612ceb5760405162461bcd60e51b815260040161038990613dd4565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590612d46908590613373565b60405180910390a3505050565b6000612d5f84846120c9565b905060001981146113c95781811015612d8a5760405162461bcd60e51b815260040161038990613e18565b6113c98484848403612c9f565b6001600160a01b038316612dbd5760405162461bcd60e51b815260040161038990613e6a565b6001600160a01b038216612de35760405162461bcd60e51b815260040161038990613eba565b6001600160a01b03831660009081526020819052604090205481811015612e1c5760405162461bcd60e51b815260040161038990613f0d565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290612e53908490613a5d565b92505081905550826001600160a01b0316846001600160a01b031660008051602061403783398151915284604051612e8b9190613373565b60405180910390a36113c9565b6000806000612ea5612c95565b90506000612eb282611a05565b919491935090915050565b6001600160a01b038216612ee35760405162461bcd60e51b815260040161038990613f51565b8060026000828254612ef59190613a5d565b90915550506001600160a01b03821660009081526020819052604081208054839290612f22908490613a5d565b90915550506040516001600160a01b0383169060009060008051602061403783398151915290612f53908590613373565b60405180910390a35050565b6000826001600160a01b031682604051612f7890613f61565b60006040518083038185875af1925050503d8060008114612fb5576040519150601f19603f3d011682016040523d82523d6000602084013e612fba565b606091505b5050905080610f23578282604051631663bb0560e01b8152600401610389929190613f8b565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166130585760405162461bcd60e51b815260040161038990613fd7565b6001600160a01b038216600090815260208190526040902054818110156130915760405162461bcd60e51b815260040161038990614026565b6001600160a01b03831660009081526020819052604081208383039055600280548492906130c0908490613ad4565b90915550506040516000906001600160a01b0385169060008051602061403783398151915290612d46908690613373565b6040805160c081018252600080825260208201819052918101829052606081018290529060808201908152600060209091015290565b60006001600160a01b038216610dbe565b61314181613127565b82525050565b60208101610dbe8284613138565b61315e81613127565b811461271d57600080fd5b8035610dbe81613155565b8061315e565b8035610dbe81613174565b6000806040838503121561319b5761319b600080fd5b60006131a78585613169565b92505060206131b88582860161317a565b9150509250929050565b601f01601f191690565b634e487b7160e01b600052604160045260246000fd5b6131eb826131c2565b81018181106001600160401b0382111715613208576132086131cc565b6040525050565b600061321a60405190565b9050611aff82826131e2565b60006001600160401b0382111561323f5761323f6131cc565b613248826131c2565b60200192915050565b82818337506000910152565b600061327061326b84613226565b61320f565b90508281526020810184848401111561328b5761328b600080fd5b613296848285613251565b509392505050565b600082601f8301126132b2576132b2600080fd5b81356132c284826020860161325d565b949350505050565b6000602082840312156132df576132df600080fd5b81356001600160401b038111156132f8576132f8600080fd5b6132c28482850161329e565b60005b8381101561331f578181015183820152602001613307565b50506000910152565b6000613332825190565b808452602084019350613349818560208601613304565b613352816131c2565b9093019392505050565b60208082528101610f518184613328565b80613141565b60208101610dbe828461336d565b801515613141565b60208101610dbe8284613381565b6000602082840312156133ac576133ac600080fd5b60006132c28484613169565b60008083601f8401126133cd576133cd600080fd5b5081356001600160401b038111156133e7576133e7600080fd5b60208301915083604082028301111561340257613402600080fd5b9250929050565b6000806020838503121561341f5761341f600080fd5b82356001600160401b0381111561343857613438600080fd5b613444858286016133b8565b92509250509250929050565b60008060006060848603121561346857613468600080fd5b60006134748686613169565b935050602061348586828701613169565b92505060406134968682870161317a565b9150509250925092565b60ff811661315e565b8035610dbe816134a0565b6000602082840312156134c9576134c9600080fd5b60006132c284846134a9565b60ff8116613141565b60208101610dbe82846134d5565b60006020828403121561350157613501600080fd5b60006132c2848461317a565b6000806000806080858703121561352657613526600080fd5b6000613532878761317a565b94505060206135438782880161317a565b93505060406135548782880161317a565b92505060606135658782880161317a565b91505092959194509250565b6000806040838503121561358757613587600080fd5b600061359385856134a9565b92505060206131b8858286016134a9565b60006135b08383613138565b505060200190565b60006135c2825190565b80845260209384019383018060005b838110156135f65781516135e588826135a4565b9750602083019250506001016135d1565b509495945050505050565b60208082528101610f5181846135b8565b60008060008060008060c0878903121561362e5761362e600080fd5b600061363a8989613169565b96505060208701356001600160401b0381111561365957613659600080fd5b61366589828a0161329e565b955050604061367689828a016134a9565b945050606061368789828a0161317a565b935050608061369889828a0161317a565b92505060a06136a989828a0161317a565b9150509295509295509295565b600080604083850312156136cc576136cc600080fd5b60006135938585613169565b600080604083850312156136ee576136ee600080fd5b60006136fa8585613169565b92505060206131b885828601613169565b60008060006060848603121561372357613723600080fd5b600061372f868661317a565b93505060206134858682870161317a565b6000806040838503121561375657613756600080fd5b60006131a7858561317a565b634e487b7160e01b600052602160045260246000fd5b600c811061271d5761271d613762565b80611aff81613778565b6000610dbe82613788565b61314181613792565b805160c08301906137b7848261336d565b5060208201516137ca602085018261336d565b5060408201516137dd6040850182613138565b5060608201516137f06060850182613138565b506080820151613803608085018261379d565b5060a08201516113c960a0850182613138565b60c08101610dbe82846137a6565b60608101613832828661336d565b61383f6020830185613138565b6132c2604083018461379d565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061387657607f821691505b6020821081036138885761388861384c565b50919050565b6000610dbe61389a8381565b90565b6138a68361388e565b81546008840282811b60001990911b908116901990911617825550505050565b6000610f2381848461389d565b81811015610d0a576138e66000826138c6565b6001016138d3565b601f821115610f23576000818152602090206020601f850104810160208510156139155750805b6139276020601f8601048301826138d3565b5050505050565b6000196008929092029190911c191690565b600061394c838361392e565b600290930290921792915050565b81516001600160401b03811115613973576139736131cc565b61397d8254613862565b6139888282856138ee565b6020601f8311600181146139b657600084156139a45750858201515b6139ae8582613940565b865550611668565b600085815260208120601f198616915b828110156139e657888501518255602094850194600190920191016139c6565b86831015613a0357848901516139ff601f89168261392e565b8355505b600160028802018855505050505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198203613a5657613a56613a2d565b5060010190565b80820180821115610dbe57610dbe613a2d565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910190815260005b5060200190565b60208082528101610dbe81613a70565b818102808215838204851417613acd57613acd613a2d565b5092915050565b81810381811115610dbe57610dbe613a2d565b8051610dbe81613174565b600060208284031215613b0757613b07600080fd5b60006132c28484613ae7565b634e487b7160e01b600052601260045260246000fd5b600082613b3857613b38613b13565b500490565b602581526000602082017f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77815264207a65726f60d81b602082015291505b5060400190565b60208082528101610dbe81613b3d565b6101208101613ba1828c613138565b613bae602083018b61336d565b613bbb604083018a613138565b613bc86060830189613138565b613bd5608083018861336d565b613be260a083018761336d565b613bef60c083018661336d565b613bfc60e083018561336d565b613c0a61010083018461336d565b9a9950505050505050505050565b8051610dbe81613155565b600060208284031215613c3857613c38600080fd5b60006132c28484613c18565b6101208101613c53828c613138565b613c60602083018b6134d5565b613c6d604083018a613138565b613c7a60608301896134d5565b613bd56080830188613138565b60408101613c958285613138565b610f516020830184613381565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150613b7b565b60208082528101610dbe81613ca2565b60408101613d038285613138565b610f51602083018461336d565b80151561315e565b8051610dbe81613d10565b600060208284031215613d3857613d38600080fd5b60006132c28484613d18565b602481526000602082017f45524332303a20617070726f76652066726f6d20746865207a65726f206164648152637265737360e01b60208201529150613b7b565b60208082528101610dbe81613d44565b602281526000602082017f45524332303a20617070726f766520746f20746865207a65726f206164647265815261737360f01b60208201529150613b7b565b60208082528101610dbe81613d95565b601d81526000602082017f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000081529150613a9e565b60208082528101610dbe81613de4565b602581526000602082017f45524332303a207472616e736665722066726f6d20746865207a65726f206164815264647265737360d81b60208201529150613b7b565b60208082528101610dbe81613e28565b602381526000602082017f45524332303a207472616e7366657220746f20746865207a65726f206164647281526265737360e81b60208201529150613b7b565b60208082528101610dbe81613e7a565b602681526000602082017f45524332303a207472616e7366657220616d6f756e7420657863656564732062815265616c616e636560d01b60208201529150613b7b565b60208082528101610dbe81613eca565b601f81526000602082017f45524332303a206d696e7420746f20746865207a65726f20616464726573730081529150613a9e565b60208082528101610dbe81613f1d565b6000610dbe8261389a565b6000610dbe82613127565b6000610dbe82613f6c565b61314181613f77565b60408101613d038285613f82565b602181526000602082017f45524332303a206275726e2066726f6d20746865207a65726f206164647265738152607360f81b60208201529150613b7b565b60208082528101610dbe81613f99565b602281526000602082017f45524332303a206275726e20616d6f756e7420657863656564732062616c616e815261636560f01b60208201529150613b7b565b60208082528101610dbe81613fe756feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efaab4a163f07264b3f8202b3c1c4598e9721c2c2119aa1b967408d968dc0f8b04a264697066735822122028498a1cf923b16dda9ae613d7c557711b6df7212d4df619422ede135a3adb3564736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a4abb2bfeda234ad4a72ca8fc2309cc039a4f74b000000000000000000000000eb161b2d330b68909ce69360a245832612844830000000000000000000000000e9eed09e21301edf574d6d621885a82c1f6c97e70000000000000000000000007227a213962d62b5719bb0fdd4a21dedf62f5bfe000000000000000000000000ddaafff199a81fcf0393ed6b8d09911ae7f96106000000000000000000000000392b4ff74cf4fd1f30c3515853dc370cdb9c24db0000000000000000000000001ab6721784818563cdd08a56ea691e800d3e49d2
-----Decoded View---------------
Arg [0] : forwarder (address): 0xA4abb2BFEdA234AD4a72ca8fc2309Cc039A4f74B
Arg [1] : _nftaddress (address): 0xeb161B2D330B68909CE69360A245832612844830
Arg [2] : _waveFactory (address): 0xe9EEd09E21301eDf574D6d621885A82C1f6C97E7
Arg [3] : _withdrawaddress (address): 0x7227A213962d62b5719Bb0FdD4a21DEDF62f5bfe
Arg [4] : _diamonCut (address): 0xdDAaFfF199A81fcf0393ed6b8D09911AE7F96106
Arg [5] : _uniswap (address): 0x392B4fF74cf4FD1f30C3515853dC370Cdb9c24db
Arg [6] : _compound (address): 0x1ab6721784818563cDD08a56EA691e800D3E49D2
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000a4abb2bfeda234ad4a72ca8fc2309cc039a4f74b
Arg [1] : 000000000000000000000000eb161b2d330b68909ce69360a245832612844830
Arg [2] : 000000000000000000000000e9eed09e21301edf574d6d621885a82c1f6c97e7
Arg [3] : 0000000000000000000000007227a213962d62b5719bb0fdd4a21dedf62f5bfe
Arg [4] : 000000000000000000000000ddaafff199a81fcf0393ed6b8d09911ae7f96106
Arg [5] : 000000000000000000000000392b4ff74cf4fd1f30c3515853dc370cdb9c24db
Arg [6] : 0000000000000000000000001ab6721784818563cdd08a56ea691e800d3e49d2
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.