Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 283 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 18143359 | 510 days ago | IN | 0 ETH | 0.0031023 | ||||
Claim | 18143354 | 510 days ago | IN | 0 ETH | 0.00313193 | ||||
Claim | 16949876 | 678 days ago | IN | 0 ETH | 0.0028507 | ||||
Claim | 16949875 | 678 days ago | IN | 0 ETH | 0.00273045 | ||||
Claim | 16949874 | 678 days ago | IN | 0 ETH | 0.00280139 | ||||
Claim | 16949874 | 678 days ago | IN | 0 ETH | 0.00280139 | ||||
Claim | 16949873 | 678 days ago | IN | 0 ETH | 0.00272815 | ||||
Bid | 16947801 | 678 days ago | IN | 0.08 ETH | 0.00392915 | ||||
Bid | 16941996 | 679 days ago | IN | 0.01 ETH | 0.00368171 | ||||
Claim | 16934946 | 680 days ago | IN | 0 ETH | 0.00461053 | ||||
Claim | 16931994 | 680 days ago | IN | 0 ETH | 0.00299315 | ||||
Bid | 16930480 | 680 days ago | IN | 0.015 ETH | 0.0029436 | ||||
Bid | 16921050 | 682 days ago | IN | 1 ETH | 0.00883685 | ||||
Bid | 16920545 | 682 days ago | IN | 0.04 ETH | 0.00324913 | ||||
Claim | 16916502 | 682 days ago | IN | 0 ETH | 0.00163751 | ||||
Bid | 16914961 | 683 days ago | IN | 0.0069 ETH | 0.00156322 | ||||
Bid | 16913138 | 683 days ago | IN | 0.15 ETH | 0.0024586 | ||||
Bid | 16907899 | 684 days ago | IN | 0.1 ETH | 0.00238523 | ||||
Bid | 16901259 | 685 days ago | IN | 0.123 ETH | 0.00192056 | ||||
Claim | 16893833 | 686 days ago | IN | 0 ETH | 0.00233107 | ||||
Bid | 16893606 | 686 days ago | IN | 0.12 ETH | 0.00207426 | ||||
Bid | 16891238 | 686 days ago | IN | 0.1 ETH | 0.00437019 | ||||
Bid | 16888884 | 686 days ago | IN | 0.0121 ETH | 0.00102546 | ||||
Bid | 16888685 | 686 days ago | IN | 0.011 ETH | 0.00112119 | ||||
Claim | 16886478 | 687 days ago | IN | 0 ETH | 0.00233737 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
18143359 | 510 days ago | 0.01 ETH | ||||
18143354 | 510 days ago | 0.05 ETH | ||||
16949876 | 678 days ago | 0.08 ETH | ||||
16949875 | 678 days ago | 0.01 ETH | ||||
16949874 | 678 days ago | 0.03931 ETH | ||||
16949874 | 678 days ago | 0.123 ETH | ||||
16949873 | 678 days ago | 0.11 ETH | ||||
16934946 | 680 days ago | 0.015 ETH | ||||
16931994 | 680 days ago | 1 ETH | ||||
16920545 | 682 days ago | 0.00759 ETH | ||||
16916502 | 682 days ago | 0.14 ETH | ||||
16913138 | 683 days ago | 0.11 ETH | ||||
16893833 | 686 days ago | 0.01099 ETH | ||||
16893606 | 686 days ago | 0.11 ETH | ||||
16888884 | 686 days ago | 0.01111 ETH | ||||
16888685 | 686 days ago | 0.011 ETH | ||||
16886478 | 687 days ago | 0.01 ETH | ||||
16882874 | 687 days ago | 0.011 ETH | ||||
16878054 | 688 days ago | 0.1 ETH | ||||
16870911 | 689 days ago | 0.0495 ETH | ||||
16864791 | 690 days ago | 0.0055 ETH | ||||
16863722 | 690 days ago | 0.01 ETH | ||||
16856951 | 691 days ago | 0.13365432 ETH | ||||
16856951 | 691 days ago | 0.0999 ETH | ||||
16853862 | 691 days ago | 0.069 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
GBM
Compiler Version
v0.8.5+commit.a4f2e591
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED // © Copyright 2021. Patent pending. All rights reserved. Perpetual Altruism Ltd. pragma solidity 0.8.5; import "./IGBM.sol"; import "./IGBMInitiator.sol"; import "../tokens/IERC20.sol"; import "../tokens/IERC721.sol"; import "../tokens/IERC721TokenReceiver.sol"; import "../tokens/IERC1155.sol"; import "../tokens/IERC1155TokenReceiver.sol"; import "../tokens/Ownable.sol"; /// @title GBM auction contract /// @dev See GBM.auction on how to use this contract /// @author Guillaume Gonnaud and Javier Fraile contract GBM is IGBM, IERC1155TokenReceiver, IERC721TokenReceiver { //Struct used to store the representation of an NFT being auctionned struct token_representation { address contractAddress; // The contract address uint256 tokenID; // The ID of the token on the contract bytes4 tokenKind; // The ERC name of the token implementation bytes4(keccak256("ERC721")) or bytes4(keccak256("ERC1155")) uint256 tokenAmount; // Amount of token units under auction } struct Auction { uint256 dueIncentives; // _auctionID => dueIncentives uint256 debt; // _auctionID => unsettled debt address highestBidder; // _auctionID => bidder uint256 highestBid; // _auctionID => bid bool biddingAllowed; // tokencontract => Allow to start/pause ongoing auctions uint256 startTime; // _auctionID => timestamp uint256 endTime; // _auctionID => timestamp uint256 hammerTimeDuration; // _auctionID => duration in seconds uint256 bidDecimals; // _auctionID => bidDecimals uint256 stepMin; // _auctionID => stepMin uint256 incMin; // _auctionID => minimal earned incentives uint256 incMax; // _auctionID => maximal earned incentives uint256 bidMultiplier; // _auctionID => bid incentive growth multiplier } struct Collection { uint256 startTime; uint256 endTime; uint256 hammerTimeDuration; uint256 bidDecimals; uint256 stepMin; uint256 incMin; // minimal earned incentives uint256 incMax; // maximal earned incentives uint256 bidMultiplier; // bid incentive growth multiplier bool biddingAllowed; // Allow to start/pause ongoing auctions } //The address of the auctionner to whom all profits will be sent address public override owner; //Contract address storing the ERC20 currency used in auctions mapping(uint256 => token_representation) internal tokenMapping; //_auctionID => token_primaryKey mapping(address => mapping(bytes4 => mapping(uint256 => mapping(uint256 => uint256)))) auctionMapping; // contractAddress => tokenKind => tokenID => TokenIndex => _auctionID mapping(address => mapping(bytes4 => mapping(uint256 => mapping(uint256 => uint256)))) previousAuctionData; // contractAddress => tokenKind => tokenID => TokenIndex => _auctionID mapping(address => Collection) collections; mapping(uint256 => bool) claimed; // _auctionID => claimed Boolean preventing multiple claim of a token mapping(uint256 => Auction) auctions; mapping(address => mapping(uint256 => uint256)) eRC1155_tokensIndex; //Contract => TokenID => Auction index being auctionned mapping(address => mapping(uint256 => uint256)) eRC721_tokensIndex; //Contract => TokenID => Auction index being auctionned mapping(address => mapping(uint256 => uint256)) eRC1155_tokensUnderAuction; //Contract => TokenID => Amount being auctionned modifier onlyTokenOwner(address _contract) { require(msg.sender == Ownable(_contract).owner(), "Only allowed to the owner of the token contract"); _; } constructor() { // owner = msg.sender; owner = address(0x2a2C412c440Dfb0E7cae46EFF581e3E26aFd1Cd0); } /// @notice Place a GBM bid for a GBM auction /// @param _auctionID The auction you want to bid on /// @param _bidAmount The amount of the ERC20 token the bid is made of. They should be withdrawable by this contract. /// @param _highestBid The current higest bid. Throw if incorrect. function bid(uint256 _auctionID, uint256 _bidAmount, uint256 _highestBid) external payable override { require(tokenMapping[_auctionID].contractAddress != address(0x0), "bid: auctionID does not exist"); require(collections[tokenMapping[_auctionID].contractAddress].biddingAllowed, "bid: bidding is currently not allowed"); require(_bidAmount > 1, "bid: _bidAmount cannot be 0"); require(_highestBid == auctions[_auctionID].highestBid, "bid: current highest bid do not match the submitted transaction _highestBid"); //An auction start time of 0 also indicate the auction has not been created at all require(getAuctionStartTime(_auctionID) <= block.timestamp && getAuctionStartTime(_auctionID) != 0, "bid: Auction has not started yet"); require(getAuctionEndTime(_auctionID) >= block.timestamp, "bid: Auction has already ended"); require(_bidAmount > _highestBid, "bid: _bidAmount must be higher than _highestBid"); require((_highestBid * (getAuctionBidDecimals(_auctionID) + getAuctionStepMin(_auctionID))) <= (_bidAmount * getAuctionBidDecimals(_auctionID)), "bid: _bidAmount must meet the minimum bid" ); //Transfer the money of the bidder to the GBM smart contract require(msg.value == _bidAmount, "The bid amount doesn't match the amount of currency sent"); //Extend the duration time of the auction if we are close to the end if(getAuctionEndTime(_auctionID) < block.timestamp + getHammerTimeDuration(_auctionID)) { auctions[_auctionID].endTime = block.timestamp + getHammerTimeDuration(_auctionID); emit Auction_EndTimeUpdated(_auctionID, auctions[_auctionID].endTime); } // Saving incentives for later sending uint256 duePay = auctions[_auctionID].dueIncentives; address previousHighestBidder = auctions[_auctionID].highestBidder; uint256 previousHighestBid = auctions[_auctionID].highestBid; // Emitting the event sequence if(previousHighestBidder != address(0)) { emit Auction_BidRemoved(_auctionID, previousHighestBidder, previousHighestBid); } if(duePay != 0) { auctions[_auctionID].debt = auctions[_auctionID].debt + duePay; emit Auction_IncentivePaid(_auctionID, previousHighestBidder, duePay); } emit Auction_BidPlaced(_auctionID, msg.sender, _bidAmount); // Calculating incentives for the new bidder auctions[_auctionID].dueIncentives = calculateIncentives(_auctionID, _bidAmount); //Setting the new bid/bidder as the highest bid/bidder auctions[_auctionID].highestBidder = msg.sender; auctions[_auctionID].highestBid = _bidAmount; if((previousHighestBid + duePay) != 0) { //Refunding the previous bid as well as sending the incentives (bool sent, bytes memory data) = previousHighestBidder.call{value: previousHighestBid + duePay}(""); //Not check to avoid a contract revert in the receive function that locks the auction // require(sent, "Failed to refund ETH"); } } /// @notice Attribute a token to the winner of the auction and distribute the proceeds to the owner of this contract. /// throw if bidding is disabled or if the auction is not finished. /// @param _auctionID The auctionID of the auction to complete function claim(uint256 _auctionID) external override { address _ca = tokenMapping[_auctionID].contractAddress; uint256 _tid = tokenMapping[_auctionID].tokenID; bytes4 _tkd = tokenMapping[_auctionID].tokenKind; uint256 _tam = tokenMapping[_auctionID].tokenAmount; require(_ca != address(0x0), "claim: auctionID does not exist"); require(collections[_ca].biddingAllowed, "claim: Claiming is currently not allowed"); require(getAuctionEndTime(_auctionID) < block.timestamp, "claim: Auction has not yet ended"); require(!claimed[_auctionID], "claim: this auction has alredy been claimed"); claimed[_auctionID] = true; if (auctions[_auctionID].highestBid == 0) { auctions[_auctionID].highestBidder = Ownable(_ca).owner(); } //Transfer the proceeds to this smart contract owner uint256 finalAmount = auctions[_auctionID].highestBid - auctions[_auctionID].debt; (bool sent, bytes memory data) = owner.call{value: finalAmount}(""); // require(sent, "Failed to final amount"); if (tokenMapping[_auctionID].tokenKind == bytes4(keccak256("ERC721"))) { //0x73ad2146 IERC721(_ca).safeTransferFrom(address(this), auctions[_auctionID].highestBidder, _tid); auctionMapping[_ca][_tkd][_tid][0] = 0; } else if (tokenMapping[_auctionID].tokenKind == bytes4(keccak256("ERC1155"))) { //0x973bb640 IERC1155(_ca).safeTransferFrom(address(this), auctions[_auctionID].highestBidder, _tid, _tam, ""); eRC1155_tokensUnderAuction[_ca][_tid] = eRC1155_tokensUnderAuction[_ca][_tid] - _tam; } emit Auction_Claimed(_auctionID); } /// @notice Register an auction contract default parameters for a GBM auction. To use to save gas /// @param _contract The token contract the auctionned token belong to /// @param _initiator Set to 0 if you want to use the default value registered for the token contract function registerAnAuctionContract(address _contract, address _initiator) public override onlyTokenOwner(_contract) { collections[_contract].startTime = IGBMInitiator(_initiator).getStartTime(uint256(uint160(_contract))); collections[_contract].endTime = IGBMInitiator(_initiator).getEndTime(uint256(uint160(_contract))); collections[_contract].hammerTimeDuration = IGBMInitiator(_initiator).getHammerTimeDuration(uint256(uint160(_contract))); collections[_contract].bidDecimals = IGBMInitiator(_initiator).getBidDecimals(uint256(uint160(_contract))); collections[_contract].stepMin = IGBMInitiator(_initiator).getStepMin(uint256(uint160(_contract))); collections[_contract].incMin = IGBMInitiator(_initiator).getIncMin(uint256(uint160(_contract))); collections[_contract].incMax = IGBMInitiator(_initiator).getIncMax(uint256(uint160(_contract))); collections[_contract].bidMultiplier = IGBMInitiator(_initiator).getBidMultiplier(uint256(uint160(_contract))); require(collections[_contract].startTime > 0, "registerAnAuctionContract: Start time is not correct"); } /// @notice Allow/disallow bidding and claiming for a whole token contract address. /// @param _contract The token contract the auctionned token belong to /// @param _value True if bidding/claiming should be allowed. function setBiddingAllowed(address _contract, bool _value) external override onlyTokenOwner(_contract) { collections[_contract].biddingAllowed = _value; } /// @notice Register an auction token and emit the relevant Auction_Initialized & Auction_StartTimeUpdated events /// Throw if the token owner is not the GBM smart contract/supply of auctionned 1155 token is insufficient /// @param _contract The token contract the auctionned token belong to /// @param _tokenID The token ID of the token being auctionned /// @param _tokenKind either bytes4(keccak256("ERC721")) or bytes4(keccak256("ERC1155")) /// @param _tokenAmount The amount of tokens being auctionned /// @param _initiator Set to 0 if you want to use the default value registered for the token contract (if wanting to reset to default, /// use an initiator sending back 0 on it's getters) function registerAnAuctionToken(address _contract, uint256 _tokenID, bytes4 _tokenKind, uint256 _tokenAmount, address _initiator) public override onlyTokenOwner(_contract) { registerAuctionData(_contract, _tokenID, _tokenKind, _tokenAmount, _initiator); } /// @notice Modify the auction of a token /// Throw if the token owner is not the GBM smart contract/supply of auctionned 1155 token is insufficient /// @param _auctionID ID of the auction to modify /// @param _initiator Set to 0 if you want to use the default value registered for the token contract (if wanting to reset to default, /// use an initiator sending back 0 on it's getters) function modifyAnAuctionToken(uint256 _auctionID, address _initiator) external override { modifyAnAuctionToken(_auctionID, 0, _initiator); } /// @notice Modify the auction of a token /// Throw if the token owner is not the GBM smart contract/supply of auctionned 1155 token is insufficient /// @param _auctionID ID of the auction to modify /// @param _tokenAmount The amount of tokens being auctionned /// @param _initiator Set to 0 if you want to use the default value registered for the token contract (if wanting to reset to default, /// use an initiator sending back 0 on it's getters) function modifyAnAuctionToken(uint256 _auctionID, uint256 _tokenAmount, address _initiator) public override { address _ca = tokenMapping[_auctionID].contractAddress; bytes4 _tki = tokenMapping[_auctionID].tokenKind; uint256 _tid = tokenMapping[_auctionID].tokenID; uint256 _tam = tokenMapping[_auctionID].tokenAmount; require(msg.sender == Ownable(_ca).owner(), "modifyAnAuctionToken: Only the owner of a contract can modify an auction"); require(_ca != address(0), "modifyAnAuctionToken: Auction ID is not correct"); require(auctions[_auctionID].startTime > block.timestamp, "modifyAnAuctionToken: Auction has already started"); require(_initiator != address(0), "modifyAnAuctionToken: Initiator address is not correct"); if (_tam != _tokenAmount && _tokenAmount != 0) { require(_tki == bytes4(keccak256("ERC1155")), "modifyAnAuctionToken: Token amount for auction token kind not correct"); require(_tokenAmount >= 1, "modifyAnAuctionToken: Token amount not correct"); tokenMapping[_auctionID].tokenAmount = _tokenAmount; uint256 _tokenDiff; if (_tam < _tokenAmount) { _tokenDiff = _tokenAmount - _tam; require((eRC1155_tokensUnderAuction[_ca][_tid] + _tokenDiff) <= IERC1155(_ca).balanceOf(address(this), _tid), "modifyAnAuctionToken: Cannot set to auction that amount of tokens"); eRC1155_tokensUnderAuction[_ca][_tid] = eRC1155_tokensUnderAuction[_ca][_tid] + _tokenDiff; } else { _tokenDiff = _tam - _tokenAmount; require((eRC1155_tokensUnderAuction[_ca][_tid] - _tokenDiff) <= IERC1155(_ca).balanceOf(address(this), _tid), "modifyAnAuctionToken: Cannot set to auction that amount of tokens"); eRC1155_tokensUnderAuction[_ca][_tid] = eRC1155_tokensUnderAuction[_ca][_tid] - _tokenDiff; } } auctions[_auctionID].startTime = IGBMInitiator(_initiator).getStartTime(_auctionID); auctions[_auctionID].endTime = IGBMInitiator(_initiator).getEndTime(_auctionID); auctions[_auctionID].hammerTimeDuration = IGBMInitiator(_initiator).getHammerTimeDuration(_auctionID); auctions[_auctionID].bidDecimals = IGBMInitiator(_initiator).getBidDecimals(_auctionID); auctions[_auctionID].stepMin = IGBMInitiator(_initiator).getStepMin(_auctionID); auctions[_auctionID].incMin = IGBMInitiator(_initiator).getIncMin(_auctionID); auctions[_auctionID].incMax = IGBMInitiator(_initiator).getIncMax(_auctionID); auctions[_auctionID].bidMultiplier = IGBMInitiator(_initiator).getBidMultiplier(_auctionID); require(auctions[_auctionID].startTime > 0, "modifyAnAuctionToken: Start time is not correct"); } /// @notice Register an auction token and emit the relevant Auction_Initialized & Auction_StartTimeUpdated events /// Throw if the token owner is not the GBM smart contract/supply of auctionned 1155 token is insufficient /// @param _contract The token contract the auctionned token belong to /// @param _tokenID The token ID of the token being auctionned /// @param _tokenKind either bytes4(keccak256("ERC721")) or bytes4(keccak256("ERC1155")) /// @param _tokenAmount The amount of tokens being auctionned /// @param _initiator Set to 0 if you want to use the default value registered for the token contract (if wanting to reset to default, /// use an initiator sending back 0 on it's getters) function registerAuctionData(address _contract, uint256 _tokenID, bytes4 _tokenKind, uint256 _tokenAmount, address _initiator) internal { require(msg.sender == Ownable(_contract).owner(), "registerAuctionData: Only the owner of a contract can allow/disallow bidding"); if (_tokenKind == bytes4(keccak256("ERC721"))) { require(_tokenAmount == 1, "registerAuctionData: Token amount not correct"); require(auctionMapping[_contract][_tokenKind][_tokenID][0] == 0, "registerAuctionData: The auction already exist for the specified token"); } else { require(_tokenAmount >= 1, "registerAuctionData: Token amount not correct"); require(auctionMapping[_contract][_tokenKind][_tokenID][eRC1155_tokensIndex[_contract][_tokenID]] == 0, "registerAuctionData: The auction already exist for the specified token"); } //Checking the kind of token being registered require(_tokenKind == bytes4(keccak256("ERC721")) || _tokenKind == bytes4(keccak256("ERC1155")), "registerAuctionData: Only ERC1155 and ERC721 tokens are supported" ); //Building the auction object token_representation memory newAuction; newAuction.contractAddress = _contract; newAuction.tokenID = _tokenID; newAuction.tokenKind = _tokenKind; newAuction.tokenAmount = _tokenAmount; uint256 auctionId; if (_tokenKind == bytes4(keccak256("ERC721"))) { require( msg.sender == Ownable(_contract).owner() || address(this) == IERC721(_contract).ownerOf(_tokenID), "registerAuctionData: the specified ERC-721 token cannot be auctionned" ); uint256 _721Index = eRC721_tokensIndex[_contract][_tokenID]; auctionId = uint256(keccak256(abi.encodePacked(_contract, _tokenID, _tokenKind, block.number))); auctionMapping[_contract][_tokenKind][_tokenID][0] = auctionId; previousAuctionData[_contract][_tokenKind][_tokenID][_721Index] = auctionId; eRC721_tokensIndex[_contract][_tokenID] = _721Index + 1; } else { require( msg.sender == Ownable(_contract).owner() || (eRC1155_tokensUnderAuction[_contract][_tokenID] + _tokenAmount) <= IERC1155(_contract).balanceOf(address(this), _tokenID), "registerAuctionData: the specified ERC-1155 token cannot be auctionned" ); uint256 _1155Index = eRC1155_tokensIndex[_contract][_tokenID]; auctionId = uint256(keccak256(abi.encodePacked(_contract, _tokenID, _tokenKind, _1155Index, block.number))); auctionMapping[_contract][_tokenKind][_tokenID][_1155Index] = auctionId; eRC1155_tokensIndex[_contract][_tokenID] = eRC1155_tokensIndex[_contract][_tokenID] + 1; eRC1155_tokensUnderAuction[_contract][_tokenID] = eRC1155_tokensUnderAuction[_contract][_tokenID] + _tokenAmount; } tokenMapping[auctionId] = newAuction; //_auctionID => token_primaryKey if(_initiator != address(0x0)) { auctions[auctionId].startTime = IGBMInitiator(_initiator).getStartTime(auctionId); auctions[auctionId].endTime = IGBMInitiator(_initiator).getEndTime(auctionId); auctions[auctionId].hammerTimeDuration = IGBMInitiator(_initiator).getHammerTimeDuration(auctionId); auctions[auctionId].bidDecimals = IGBMInitiator(_initiator).getBidDecimals(auctionId); auctions[auctionId].stepMin = IGBMInitiator(_initiator).getStepMin(auctionId); auctions[auctionId].incMin = IGBMInitiator(_initiator).getIncMin(auctionId); auctions[auctionId].incMax = IGBMInitiator(_initiator).getIncMax(auctionId); auctions[auctionId].bidMultiplier = IGBMInitiator(_initiator).getBidMultiplier(auctionId); require(auctions[auctionId].startTime > 0, "registerAuctionData: Start time is not correct"); } //Event emitted when an auction is being setup emit Auction_Initialized(auctionId, _tokenID, _contract, _tokenKind); //Event emitted when the start time of an auction changes (due to admin interaction ) emit Auction_StartTimeUpdated(auctionId, getAuctionStartTime(auctionId)); } function massRegistrerERC721Each(address _initiator, address _ERC721Contract, uint256 _tokenIDStart, uint256 _tokenIDEnd) external override { while(_tokenIDStart < _tokenIDEnd) { IERC721(_ERC721Contract).safeTransferFrom(msg.sender, address(this), _tokenIDStart, ""); registerAnAuctionToken(_ERC721Contract, _tokenIDStart, bytes4(keccak256("ERC721")), 1, _initiator); _tokenIDStart++; } } function massRegistrerERC1155Each(address _initiator, address _ERC1155Contract, uint256 _tokenID, uint256 _indexStart, uint256 _indexEnd) external override { registerAnAuctionContract(_ERC1155Contract, _initiator); IERC1155(_ERC1155Contract).safeTransferFrom(msg.sender, address(this), _tokenID, _indexEnd - _indexStart, ""); while(_indexStart < _indexEnd) { registerAnAuctionToken(_ERC1155Contract, _tokenID, bytes4(keccak256("ERC1155")), 1, _initiator); _indexStart++; } } function getAuctionHighestBidder(uint256 _auctionID) external override view returns(address) { return auctions[_auctionID].highestBidder; } function getAuctionHighestBid(uint256 _auctionID) external override view returns(uint256) { return auctions[_auctionID].highestBid; } function getAuctionDebt(uint256 _auctionID) external override view returns(uint256) { return auctions[_auctionID].debt; } function getAuctionDueIncentives(uint256 _auctionID) external override view returns(uint256) { return auctions[_auctionID].dueIncentives; } function getAuctionID(address _contract, bytes4 _tokenKind, uint256 _tokenID, uint256 _index) external override view returns(uint256) { if (_tokenKind == bytes4(keccak256("ERC721"))) { return previousAuctionData[_contract][_tokenKind][_tokenID][_index]; } else { return auctionMapping[_contract][_tokenKind][_tokenID][_index]; } } function getTokenKind(uint256 _auctionID) external override view returns(bytes4) { return tokenMapping[_auctionID].tokenKind; } function getTokenId(uint256 _auctionID) external override view returns(uint256) { return tokenMapping[_auctionID].tokenID; } function getTokenAmount(uint256 _auctionID) external override view returns(uint256){ return tokenMapping[_auctionID].tokenAmount; } function getContractAddress(uint256 _auctionID) external override view returns(address) { return tokenMapping[_auctionID].contractAddress; } function getAuctionStartTime(uint256 _auctionID) public override view returns(uint256) { if(auctions[_auctionID].startTime != 0) { return auctions[_auctionID].startTime; } else { return collections[tokenMapping[_auctionID].contractAddress].startTime; } } function getAuctionEndTime(uint256 _auctionID) public override view returns(uint256) { if(auctions[_auctionID].endTime != 0) { return auctions[_auctionID].endTime; } else { return collections[tokenMapping[_auctionID].contractAddress].endTime; } } function getHammerTimeDuration(uint256 _auctionID) public override view returns(uint256) { if(auctions[_auctionID].hammerTimeDuration != 0) { return auctions[_auctionID].hammerTimeDuration; } else { return collections[tokenMapping[_auctionID].contractAddress].hammerTimeDuration; } } function getAuctionBidDecimals(uint256 _auctionID) public override view returns(uint256) { if(auctions[_auctionID].bidDecimals != 0) { return auctions[_auctionID].bidDecimals; } else { return collections[tokenMapping[_auctionID].contractAddress].bidDecimals; } } function getAuctionStepMin(uint256 _auctionID) public override view returns(uint256) { if(auctions[_auctionID].stepMin != 0) { return auctions[_auctionID].stepMin; } else { return collections[tokenMapping[_auctionID].contractAddress].stepMin; } } function getAuctionIncMin(uint256 _auctionID) public override view returns(uint256) { if(auctions[_auctionID].incMin != 0) { return auctions[_auctionID].incMin; } else { return collections[tokenMapping[_auctionID].contractAddress].incMin; } } function getAuctionIncMax(uint256 _auctionID) public override view returns(uint256) { if(auctions[_auctionID].incMax != 0) { return auctions[_auctionID].incMax; } else { return collections[tokenMapping[_auctionID].contractAddress].incMax; } } function getAuctionBidMultiplier(uint256 _auctionID) public override view returns(uint256) { if(auctions[_auctionID].bidMultiplier != 0) { return auctions[_auctionID].bidMultiplier; } else { return collections[tokenMapping[_auctionID].contractAddress].bidMultiplier; } } function onERC721Received(address /* _operator */, address /* _from */, uint256 /* _tokenID */, bytes calldata /* _data */) external pure override returns(bytes4) { return bytes4(keccak256("onERC721Received(address,address,uint256,bytes)")); } function onERC1155Received(address /* _operator */, address /* _from */, uint256 /* _id */, uint256 /* _value */, bytes calldata /* _data */) external pure override returns(bytes4) { return bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)")); } function onERC1155BatchReceived(address /* _operator */, address /* _from */, uint256[] calldata /* _ids */, uint256[] calldata /* _values */, bytes calldata /* _data */) external pure override returns(bytes4) { return bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)")); } /// @notice Calculating and setting how much payout a bidder will receive if outbid /// @dev Only callable internally function calculateIncentives(uint256 _auctionID, uint256 _newBidValue) internal view returns (uint256) { uint256 bidDecimals = getAuctionBidDecimals(_auctionID); uint256 bidIncMax = getAuctionIncMax(_auctionID); //Init the baseline bid we need to perform against uint256 baseBid = auctions[_auctionID].highestBid * (bidDecimals + getAuctionStepMin(_auctionID)) / bidDecimals; //If no bids are present, set a basebid value of 1 to prevent divide by 0 errors if(baseBid == 0) { baseBid = 1; } //Ratio of newBid compared to expected minBid uint256 decimaledRatio = ((bidDecimals * getAuctionBidMultiplier(_auctionID) * (_newBidValue - baseBid) ) / baseBid) + getAuctionIncMin(_auctionID) * bidDecimals; if(decimaledRatio > (bidDecimals * bidIncMax)) { decimaledRatio = bidDecimals * bidIncMax; } return (_newBidValue * decimaledRatio)/(bidDecimals*bidDecimals); } }
// SPDX-License-Identifier: UNLICENSED // © Copyright 2021. Patent pending. All rights reserved. Perpetual Altruism Ltd. pragma solidity 0.8.5; /// @title IGBM GBM auction interface /// @dev See GBM.auction on how to use this contract /// @author Guillaume Gonnaud and Javier Fraile interface IGBM { //Event emitted when an auction is being setup event Auction_Initialized(uint256 indexed _auctionID, uint256 indexed _tokenID, address indexed _contractAddress, bytes4 _tokenKind); //Event emitted when the start time of an auction changes (due to admin interaction ) event Auction_StartTimeUpdated(uint256 indexed _auctionID, uint256 _startTime); //Event emitted when the end time of an auction changes (be it due to admin interaction or bid at the end) event Auction_EndTimeUpdated(uint256 indexed _auctionID, uint256 _endTime); //Event emitted when a Bid is placed event Auction_BidPlaced(uint256 indexed _auctionID, address indexed _bidder, uint256 _bidAmount); //Event emitted when a bid is removed (due to a new bid displacing it) event Auction_BidRemoved(uint256 indexed _auctionID, address indexed _bidder, uint256 _bidAmount); //Event emitted when incentives are paid (due to a new bid rewarding the _earner bid) event Auction_IncentivePaid(uint256 indexed _auctionID, address indexed _earner, uint256 _incentiveAmount); //Event emitted when a token is claimed event Auction_Claimed(uint256 indexed _auctionID); function bid(uint256 _auctionID, uint256 _bidAmount, uint256 _highestBid) external payable; function claim(uint256 _auctionID) external; function registerAnAuctionContract(address _contract, address _initiator) external; function setBiddingAllowed(address _contract, bool _value) external; function registerAnAuctionToken(address _contract, uint256 _tokenId, bytes4 _tokenKind, uint256 _tokenAmount, address _initiator) external; function modifyAnAuctionToken(uint256 _auctionID, address _initiator) external; function modifyAnAuctionToken(uint256 _auctionID, uint256 _tokenAmount, address _initiator) external; function massRegistrerERC721Each(address _initiator, address _ERC721Contract, uint256 _tokenIDStart, uint256 _tokenIDEnd) external; function massRegistrerERC1155Each(address _initiator, address _ERC1155Contract, uint256 _tokenID, uint256 _indexStart, uint256 _indexEnd) external; function owner() external returns(address); function getAuctionID(address _contract, bytes4 _tokenKind, uint256 _tokenID, uint256 _tokenIndex) external view returns(uint256); function getTokenId(uint256 _auctionID) external view returns(uint256); function getContractAddress(uint256 _auctionID) external view returns(address); function getTokenKind(uint256 _auctionID) external view returns(bytes4); function getTokenAmount(uint256 _auctionID) external view returns(uint256); function getAuctionHighestBidder(uint256 _auctionID) external view returns(address); function getAuctionHighestBid(uint256 _auctionID) external view returns(uint256); function getAuctionDebt(uint256 _auctionID) external view returns(uint256); function getAuctionDueIncentives(uint256 _auctionID) external view returns(uint256); function getAuctionStartTime(uint256 _auctionID) external view returns(uint256); function getAuctionEndTime(uint256 _auctionID) external view returns(uint256); function getHammerTimeDuration(uint256 _auctionID) external view returns(uint256); function getAuctionBidDecimals(uint256 _auctionID) external view returns(uint256); function getAuctionStepMin(uint256 _auctionID) external view returns(uint256); function getAuctionIncMin(uint256 _auctionID) external view returns(uint256); function getAuctionIncMax(uint256 _auctionID) external view returns(uint256); function getAuctionBidMultiplier(uint256 _auctionID) external view returns(uint256); }
// SPDX-License-Identifier: UNLICENSED // © Copyright 2021. Patent pending. All rights reserved. Perpetual Altruism Ltd. pragma solidity 0.8.5; /// @title IGBMInitiator: GBM Auction initiator interface. /// @dev Will be called when initializing GBM auctions on the main GBM contract. /// @author Guillaume Gonnaud and Javier Fraile interface IGBMInitiator { // Auction id either = the contract token address cast as uint256 or // auctionId = uint256(keccak256(abi.encodePacked(_contract, _tokenId, _tokenKind))); <= ERC721 // auctionId = uint256(keccak256(abi.encodePacked(_contract, _tokenId, _tokenKind, _1155Index))); <= ERC1155 function getStartTime(uint256 _auctionId) external view returns(uint256); function getEndTime(uint256 _auctionId) external view returns(uint256); function getHammerTimeDuration(uint256 _auctionId) external view returns(uint256); function getBidDecimals(uint256 _auctionId) external view returns(uint256); function getStepMin(uint256 _auctionId) external view returns(uint256); function getIncMin(uint256 _auctionId) external view returns(uint256); function getIncMax(uint256 _auctionId) external view returns(uint256); function getBidMultiplier(uint256 _auctionId) external view returns(uint256); }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.5; /// @title ERC-1155 Multi Token Standard /// @dev ee https://eips.ethereum.org/EIPS/eip-1155 /// The ERC-165 identifier for this interface is 0xd9b67a26. interface IERC1155 /* is ERC165 */ { /** @dev Either `TransferSingle` or `TransferBatch` MUST emit when tokens are transferred, including zero value transfers as well as minting or burning (see "Safe Transfer Rules" section of the standard). The `_operator` argument MUST be the address of an account/contract that is approved to make the transfer (SHOULD be msg.sender). The `_from` argument MUST be the address of the holder whose balance is decreased. The `_to` argument MUST be the address of the recipient whose balance is increased. The `_id` argument MUST be the token type being transferred. The `_value` argument MUST be the number of tokens the holder balance is decreased by and match what the recipient balance is increased by. When minting/creating tokens, the `_from` argument MUST be set to `0x0` (i.e. zero address). When burning/destroying tokens, the `_to` argument MUST be set to `0x0` (i.e. zero address). */ event TransferSingle(address indexed _operator, address indexed _from, address indexed _to, uint256 _id, uint256 _value); /** @dev Either `TransferSingle` or `TransferBatch` MUST emit when tokens are transferred, including zero value transfers as well as minting or burning (see "Safe Transfer Rules" section of the standard). The `_operator` argument MUST be the address of an account/contract that is approved to make the transfer (SHOULD be msg.sender). The `_from` argument MUST be the address of the holder whose balance is decreased. The `_to` argument MUST be the address of the recipient whose balance is increased. The `_ids` argument MUST be the list of tokens being transferred. The `_values` argument MUST be the list of number of tokens (matching the list and order of tokens specified in _ids) the holder balance is decreased by and match what the recipient balance is increased by. When minting/creating tokens, the `_from` argument MUST be set to `0x0` (i.e. zero address). When burning/destroying tokens, the `_to` argument MUST be set to `0x0` (i.e. zero address). */ event TransferBatch(address indexed _operator, address indexed _from, address indexed _to, uint256[] _ids, uint256[] _values); /** @dev MUST emit when approval for a second party/operator address to manage all tokens for an owner address is enabled or disabled (absence of an event assumes disabled). */ event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved); /** @dev MUST emit when the URI is updated for a token ID. URIs are defined in RFC 3986. The URI MUST point to a JSON file that conforms to the "ERC-1155 Metadata URI JSON Schema". */ event URI(string _value, uint256 indexed _id); /** @notice Transfers `_value` amount of an `_id` from the `_from` address to the `_to` address specified (with safety call). @dev Caller must be approved to manage the tokens being transferred out of the `_from` account (see "Approval" section of the standard). MUST revert if `_to` is the zero address. MUST revert if balance of holder for token `_id` is lower than the `_value` sent. MUST revert on any other error. MUST emit the `TransferSingle` event to reflect the balance change (see "Safe Transfer Rules" section of the standard). After the above conditions are met, this function MUST check if `_to` is a smart contract (e.g. code size > 0). If so, it MUST call `onERC1155Received` on `_to` and act appropriately (see "Safe Transfer Rules" section of the standard). @param _from Source address @param _to Target address @param _id ID of the token type @param _value Transfer amount @param _data Additional data with no specified format, MUST be sent unaltered in call to `onERC1155Received` on `_to` */ function safeTransferFrom(address _from, address _to, uint256 _id, uint256 _value, bytes calldata _data) external; /** @notice Transfers `_values` amount(s) of `_ids` from the `_from` address to the `_to` address specified (with safety call). @dev Caller must be approved to manage the tokens being transferred out of the `_from` account (see "Approval" section of the standard). MUST revert if `_to` is the zero address. MUST revert if length of `_ids` is not the same as length of `_values`. MUST revert if any of the balance(s) of the holder(s) for token(s) in `_ids` is lower than the respective amount(s) in `_values` sent to the recipient. MUST revert on any other error. MUST emit `TransferSingle` or `TransferBatch` event(s) such that all the balance changes are reflected (see "Safe Transfer Rules" section of the standard). Balance changes and events MUST follow the ordering of the arrays (_ids[0]/_values[0] before _ids[1]/_values[1], etc). After the above conditions for the transfer(s) in the batch are met, this function MUST check if `_to` is a smart contract (e.g. code size > 0). If so, it MUST call the relevant `ERC1155TokenReceiver` hook(s) on `_to` and act appropriately (see "Safe Transfer Rules" section of the standard). @param _from Source address @param _to Target address @param _ids IDs of each token type (order and length must match _values array) @param _values Transfer amounts per token type (order and length must match _ids array) @param _data Additional data with no specified format, MUST be sent unaltered in call to the `ERC1155TokenReceiver` hook(s) on `_to` */ function safeBatchTransferFrom(address _from, address _to, uint256[] calldata _ids, uint256[] calldata _values, bytes calldata _data) external; /** @notice Get the balance of an account's tokens. @param _owner The address of the token holder @param _id ID of the token @return The _owner's balance of the token type requested */ function balanceOf(address _owner, uint256 _id) external view returns (uint256); /** @notice Get the balance of multiple account/token pairs @param _owners The addresses of the token holders @param _ids ID of the tokens @return The _owner's balance of the token types requested (i.e. balance for each (owner, id) pair) */ function balanceOfBatch(address[] calldata _owners, uint256[] calldata _ids) external view returns (uint256[] memory); /** @notice Enable or disable approval for a third party ("operator") to manage all of the caller's tokens. @dev MUST emit the ApprovalForAll event on success. @param _operator Address to add to the set of authorized operators @param _approved True if the operator is approved, false to revoke approval */ function setApprovalForAll(address _operator, bool _approved) external; /** @notice Queries the approval status of an operator for a given owner. @param _owner The owner of the tokens @param _operator Address of authorized operator @return True if the operator is approved, false if not */ function isApprovedForAll(address _owner, address _operator) external view returns (bool); }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.5; /** Note: The ERC-165 identifier for this interface is 0x4e2312e0. */ interface IERC1155TokenReceiver { /** @notice Handle the receipt of a single ERC1155 token type. @dev An ERC1155-compliant smart contract MUST call this function on the token recipient contract, at the end of a `safeTransferFrom` after the balance has been updated. This function MUST return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61) if it accepts the transfer. This function MUST revert if it rejects the transfer. Return of any other value than the prescribed keccak256 generated value MUST result in the transaction being reverted by the caller. @param _operator The address which initiated the transfer (i.e. msg.sender) @param _from The address which previously owned the token @param _id The ID of the token being transferred @param _value The amount of tokens being transferred @param _data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` */ function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _value, bytes calldata _data) external returns(bytes4); /** @notice Handle the receipt of multiple ERC1155 token types. @dev An ERC1155-compliant smart contract MUST call this function on the token recipient contract, at the end of a `safeBatchTransferFrom` after the balances have been updated. This function MUST return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81) if it accepts the transfer(s). This function MUST revert if it rejects the transfer(s). Return of any other value than the prescribed keccak256 generated value MUST result in the transaction being reverted by the caller. @param _operator The address which initiated the batch transfer (i.e. msg.sender) @param _from The address which previously owned the token @param _ids An array containing ids of each token being transferred (order and length must match _values array) @param _values An array containing amounts of each token being transferred (order and length must match _ids array) @param _data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` */ function onERC1155BatchReceived(address _operator, address _from, uint256[] calldata _ids, uint256[] calldata _values, bytes calldata _data) external returns(bytes4); }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.5; /// @title ERC20 interface /// @dev https://github.com/ethereum/EIPs/issues/20 interface IERC20 { event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.5; /// @title ERC-721 Non-Fungible Token Standard /// @dev See https://eips.ethereum.org/EIPS/eip-721 /// Note: the ERC-165 identifier for this interface is 0x80ac58cd. interface IERC721 /* is ERC165 */ { /// @dev This emits when ownership of any NFT changes by any mechanism. /// This event emits when NFTs are created (`from` == 0) and destroyed /// (`to` == 0). Exception: during contract creation, any number of NFTs /// may be created and assigned without emitting Transfer. At the time of /// any transfer, the approved address for that NFT (if any) is reset to none. event Transfer(address indexed _from, address indexed _to, uint256 indexed _tokenId); /// @dev This emits when the approved address for an NFT is changed or /// reaffirmed. The zero address indicates there is no approved address. /// When a Transfer event emits, this also indicates that the approved /// address for that NFT (if any) is reset to none. event Approval(address indexed _owner, address indexed _approved, uint256 indexed _tokenId); /// @dev This emits when an operator is enabled or disabled for an owner. /// The operator can manage all NFTs of the owner. event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved); /// @notice Count all NFTs assigned to an owner /// @dev NFTs assigned to the zero address are considered invalid, and this /// function throws for queries about the zero address. /// @param _owner An address for whom to query the balance /// @return The number of NFTs owned by `_owner`, possibly zero function balanceOf(address _owner) external view returns (uint256); /// @notice Find the owner of an NFT /// @dev NFTs assigned to zero address are considered invalid, and queries /// about them do throw. /// @param _tokenId The identifier for an NFT /// @return The address of the owner of the NFT function ownerOf(uint256 _tokenId) external view returns (address); /// @notice Transfers the ownership of an NFT from one address to another address /// @dev Throws unless `msg.sender` is the current owner, an authorized /// operator, or the approved address for this NFT. Throws if `_from` is /// not the current owner. Throws if `_to` is the zero address. Throws if /// `_tokenId` is not a valid NFT. When transfer is complete, this function /// checks if `_to` is a smart contract (code size > 0). If so, it calls /// `onERC721Received` on `_to` and throws if the return value is not /// `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`. /// @param _from The current owner of the NFT /// @param _to The new owner /// @param _tokenId The NFT to transfer /// @param data Additional data with no specified format, sent in call to `_to` function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes calldata data) external payable; /// @notice Transfers the ownership of an NFT from one address to another address /// @dev This works identically to the other function with an extra data parameter, /// except this function just sets data to "". /// @param _from The current owner of the NFT /// @param _to The new owner /// @param _tokenId The NFT to transfer function safeTransferFrom(address _from, address _to, uint256 _tokenId) external payable; /// @notice Transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE /// TO CONFIRM THAT `_to` IS CAPABLE OF RECEIVING NFTS OR ELSE /// THEY MAY BE PERMANENTLY LOST /// @dev Throws unless `msg.sender` is the current owner, an authorized /// operator, or the approved address for this NFT. Throws if `_from` is /// not the current owner. Throws if `_to` is the zero address. Throws if /// `_tokenId` is not a valid NFT. /// @param _from The current owner of the NFT /// @param _to The new owner /// @param _tokenId The NFT to transfer function transferFrom(address _from, address _to, uint256 _tokenId) external payable; /// @notice Change or reaffirm the approved address for an NFT /// @dev The zero address indicates there is no approved address. /// Throws unless `msg.sender` is the current NFT owner, or an authorized /// operator of the current owner. /// @param _approved The new approved NFT controller /// @param _tokenId The NFT to approve function approve(address _approved, uint256 _tokenId) external payable; /// @notice Enable or disable approval for a third party ("operator") to manage /// all of `msg.sender`'s assets /// @dev Emits the ApprovalForAll event. The contract MUST allow /// multiple operators per owner. /// @param _operator Address to add to the set of authorized operators /// @param _approved True if the operator is approved, false to revoke approval function setApprovalForAll(address _operator, bool _approved) external; /// @notice Get the approved address for a single NFT /// @dev Throws if `_tokenId` is not a valid NFT. /// @param _tokenId The NFT to find the approved address for /// @return The approved address for this NFT, or the zero address if there is none function getApproved(uint256 _tokenId) external view returns (address); /// @notice Query if an address is an authorized operator for another address /// @param _owner The address that owns the NFTs /// @param _operator The address that acts on behalf of the owner /// @return True if `_operator` is an approved operator for `_owner`, false otherwise function isApprovedForAll(address _owner, address _operator) external view returns (bool); }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.5; /// @title IERC721TokenReceiver /// @dev See https://eips.ethereum.org/EIPS/eip-721. Note: the ERC-165 identifier for this interface is 0x150b7a02. interface IERC721TokenReceiver { /// @notice Handle the receipt of an NFT /// @dev The ERC721 smart contract calls this function on the recipient /// after a `transfer`. This function MAY throw to revert and reject the /// transfer. Return of other than the magic value MUST result in the /// transaction being reverted. /// Note: the contract address is always the message sender. /// @param _operator The address which called `safeTransferFrom` function /// @param _from The address which previously owned the token /// @param _tokenId The NFT identifier which is being transferred /// @param _data Additional data with no specified format /// @return `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` /// unless throwing function onERC721Received(address _operator, address _from, uint256 _tokenId, bytes calldata _data) external returns(bytes4); }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.5; interface Ownable { function owner() external returns(address); }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "berlin", "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_auctionID","type":"uint256"},{"indexed":true,"internalType":"address","name":"_bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"_bidAmount","type":"uint256"}],"name":"Auction_BidPlaced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_auctionID","type":"uint256"},{"indexed":true,"internalType":"address","name":"_bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"_bidAmount","type":"uint256"}],"name":"Auction_BidRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"Auction_Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_auctionID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"Auction_EndTimeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_auctionID","type":"uint256"},{"indexed":true,"internalType":"address","name":"_earner","type":"address"},{"indexed":false,"internalType":"uint256","name":"_incentiveAmount","type":"uint256"}],"name":"Auction_IncentivePaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_auctionID","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_tokenID","type":"uint256"},{"indexed":true,"internalType":"address","name":"_contractAddress","type":"address"},{"indexed":false,"internalType":"bytes4","name":"_tokenKind","type":"bytes4"}],"name":"Auction_Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_auctionID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"Auction_StartTimeUpdated","type":"event"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"},{"internalType":"uint256","name":"_bidAmount","type":"uint256"},{"internalType":"uint256","name":"_highestBid","type":"uint256"}],"name":"bid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"getAuctionBidDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"getAuctionBidMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"getAuctionDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"getAuctionDueIncentives","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"getAuctionEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"getAuctionHighestBid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"getAuctionHighestBidder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"bytes4","name":"_tokenKind","type":"bytes4"},{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getAuctionID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"getAuctionIncMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"getAuctionIncMin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"getAuctionStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"getAuctionStepMin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"getContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"getHammerTimeDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"getTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"getTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"}],"name":"getTokenKind","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_initiator","type":"address"},{"internalType":"address","name":"_ERC1155Contract","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"uint256","name":"_indexStart","type":"uint256"},{"internalType":"uint256","name":"_indexEnd","type":"uint256"}],"name":"massRegistrerERC1155Each","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_initiator","type":"address"},{"internalType":"address","name":"_ERC721Contract","type":"address"},{"internalType":"uint256","name":"_tokenIDStart","type":"uint256"},{"internalType":"uint256","name":"_tokenIDEnd","type":"uint256"}],"name":"massRegistrerERC721Each","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"internalType":"address","name":"_initiator","type":"address"}],"name":"modifyAnAuctionToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionID","type":"uint256"},{"internalType":"address","name":"_initiator","type":"address"}],"name":"modifyAnAuctionToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"address","name":"_initiator","type":"address"}],"name":"registerAnAuctionContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"bytes4","name":"_tokenKind","type":"bytes4"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"internalType":"address","name":"_initiator","type":"address"}],"name":"registerAnAuctionToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"setBiddingAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50600080546001600160a01b031916732a2c412c440dfb0e7cae46eff581e3e26afd1cd0179055614037806100466000396000f3fe6080604052600436106101cd5760003560e01c8063930e79f1116100f7578063cb7020e411610095578063e07bc69c11610064578063e07bc69c14610628578063e65c74a214610648578063ef8c55fd14610668578063f23a6e611461068857600080fd5b8063cb7020e41461058f578063da081c94146105af578063db145701146105cf578063dfab114b146105ef57600080fd5b8063b3f78050116100d1578063b3f78050146104c7578063bc197c81146104e7578063c2507ac11461052f578063c26e748c1461055f57600080fd5b8063930e79f114610451578063aefa7d9814610471578063b3cbc3b4146104a757600080fd5b8063404753381161016f5780636e0105e01161013e5780636e0105e0146103b957806374f8c40b146103d95780638da5cb5b146103f9578063919e84f51461043157600080fd5b806340475338146103295780634ff50af21461034957806350d265d4146103695780636b9a894e1461038957600080fd5b8063150b7a02116101ab578063150b7a021461028f5780632ac9bf09146102d4578063379607f5146102e95780633f21cf811461030957600080fd5b806303ea66a4146101d25780630facebea1461021257806314ff5ea31461025e575b600080fd5b3480156101de57600080fd5b506101ff6101ed366004613ce5565b60009081526006602052604090205490565b6040519081526020015b60405180910390f35b34801561021e57600080fd5b5061024561022d366004613ce5565b60009081526001602052604090206002015460e01b90565b6040516001600160e01b03199091168152602001610209565b34801561026a57600080fd5b506101ff610279366004613ce5565b6000908152600160208190526040909120015490565b34801561029b57600080fd5b506102456102aa366004613aa0565b7f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f95945050505050565b6102e76102e2366004613d75565b6106ce565b005b3480156102f557600080fd5b506102e7610304366004613ce5565b610d2f565b34801561031557600080fd5b506101ff610324366004613ce5565b61125e565b34801561033557600080fd5b506102e7610344366004613c88565b6112bc565b34801561035557600080fd5b506102e7610364366004613d3c565b61136d565b34801561037557600080fd5b506102e7610384366004613c26565b611e68565b34801561039557600080fd5b506101ff6103a4366004613ce5565b60009081526006602052604090206001015490565b3480156103c557600080fd5b506102e76103d4366004613d17565b611f3b565b3480156103e557600080fd5b506101ff6103f4366004613c59565b611f4b565b34801561040557600080fd5b50600054610419906001600160a01b031681565b6040516001600160a01b039091168152602001610209565b34801561043d57600080fd5b506101ff61044c366004613ce5565b611ff2565b34801561045d57600080fd5b506101ff61046c366004613ce5565b612048565b34801561047d57600080fd5b5061041961048c366004613ce5565b6000908152600160205260409020546001600160a01b031690565b3480156104b357600080fd5b506102e76104c2366004613b13565b6120a1565b3480156104d357600080fd5b506102e76104e23660046139a8565b612163565b3480156104f357600080fd5b506102456105023660046139e1565b7fbc197c819b3e337a6f9652dd10becd7eef83032af3b9d958d3d42f669414662198975050505050505050565b34801561053b57600080fd5b506101ff61054a366004613ce5565b60009081526001602052604090206003015490565b34801561056b57600080fd5b506101ff61057a366004613ce5565b60009081526006602052604090206003015490565b34801561059b57600080fd5b506101ff6105aa366004613ce5565b6126f4565b3480156105bb57600080fd5b506101ff6105ca366004613ce5565b61274d565b3480156105db57600080fd5b506101ff6105ea366004613ce5565b6127a6565b3480156105fb57600080fd5b5061041961060a366004613ce5565b6000908152600660205260409020600201546001600160a01b031690565b34801561063457600080fd5b506101ff610643366004613ce5565b6127ff565b34801561065457600080fd5b506102e7610663366004613bd5565b612858565b34801561067457600080fd5b506101ff610683366004613ce5565b61291f565b34801561069457600080fd5b506102456106a3366004613b59565b7ff23a6e612e1ff4830e658fe43f4e3cb4a5f8170bd5d9e69fb5d7a7fa9e4fdf979695505050505050565b6000838152600160205260409020546001600160a01b03166107375760405162461bcd60e51b815260206004820152601d60248201527f6269643a2061756374696f6e494420646f6573206e6f7420657869737400000060448201526064015b60405180910390fd5b6000838152600160209081526040808320546001600160a01b03168352600490915290206008015460ff166107bc5760405162461bcd60e51b815260206004820152602560248201527f6269643a2062696464696e672069732063757272656e746c79206e6f7420616c6044820152641b1bddd95960da1b606482015260840161072e565b6001821161080c5760405162461bcd60e51b815260206004820152601b60248201527f6269643a205f626964416d6f756e742063616e6e6f7420626520300000000000604482015260640161072e565b60008381526006602052604090206003015481146108a65760405162461bcd60e51b815260206004820152604b60248201527f6269643a2063757272656e7420686967686573742062696420646f206e6f742060448201527f6d6174636820746865207375626d6974746564207472616e73616374696f6e2060648201526a17da1a59da195cdd109a5960aa1b608482015260a40161072e565b426108b084611ff2565b111580156108c557506108c283611ff2565b15155b6109115760405162461bcd60e51b815260206004820181905260248201527f6269643a2041756374696f6e20686173206e6f74207374617274656420796574604482015260640161072e565b4261091b84612048565b10156109695760405162461bcd60e51b815260206004820152601e60248201527f6269643a2041756374696f6e2068617320616c726561647920656e6465640000604482015260640161072e565b8082116109d05760405162461bcd60e51b815260206004820152602f60248201527f6269643a205f626964416d6f756e74206d75737420626520686967686572207460448201526e1a185b8817da1a59da195cdd109a59608a1b606482015260840161072e565b6109d98361125e565b6109e39083613f82565b6109ec846127ff565b6109f58561125e565b6109ff9190613f48565b610a099083613f82565b1115610a695760405162461bcd60e51b815260206004820152602960248201527f6269643a205f626964416d6f756e74206d757374206d65657420746865206d696044820152681b9a5b5d5b48189a5960ba1b606482015260840161072e565b813414610ade5760405162461bcd60e51b815260206004820152603860248201527f5468652062696420616d6f756e7420646f65736e2774206d617463682074686560448201527f20616d6f756e74206f662063757272656e63792073656e740000000000000000606482015260840161072e565b610ae7836126f4565b610af19042613f48565b610afa84612048565b1015610b6357610b09836126f4565b610b139042613f48565b600084815260066020819052604091829020018290555184917f2e7f50c8a01968bd8edfe9b3ae46a4d0fa3ce89e533d76245c2684ee9882c0cb91610b5a91815260200190565b60405180910390a25b60008381526006602052604090208054600282015460039092015490916001600160a01b0316908115610bd557816001600160a01b0316867ffff24e92e1cbce6e08fa0c957732709b2be79be2ce26c732bcfae1cc368356e583604051610bcc91815260200190565b60405180910390a35b8215610c4e57600086815260066020526040902060010154610bf8908490613f48565b60008781526006602090815260409182902060010192909255518481526001600160a01b0384169188917fc6330f2f35039b6e7bcfdeb0c2e959d355b88d8c2292ca4a4c42f514cc958be3910160405180910390a35b604051858152339087907f1cd77ec6c10f614681f30c7aa33ebc645b4d597aaf7039f6210e71d0e15c91819060200160405180910390a3610c8f8686612978565b60008781526006602052604090209081556002810180546001600160a01b03191633179055600301859055610cc48382613f48565b15610d27576000806001600160a01b038416610ce08685613f48565b604051600081818185875af1925050503d8060008114610d1c576040519150601f19603f3d011682016040523d82523d6000602084013e610d21565b606091505b50505050505b505050505050565b600081815260016020819052604090912080549181015460028201546003909201546001600160a01b0390931692909160e01b9083610db05760405162461bcd60e51b815260206004820152601f60248201527f636c61696d3a2061756374696f6e494420646f6573206e6f7420657869737400604482015260640161072e565b6001600160a01b03841660009081526004602052604090206008015460ff16610e2c5760405162461bcd60e51b815260206004820152602860248201527f636c61696d3a20436c61696d696e672069732063757272656e746c79206e6f7460448201526708185b1b1bddd95960c21b606482015260840161072e565b42610e3686612048565b10610e835760405162461bcd60e51b815260206004820181905260248201527f636c61696d3a2041756374696f6e20686173206e6f742079657420656e646564604482015260640161072e565b60008581526005602052604090205460ff1615610ef65760405162461bcd60e51b815260206004820152602b60248201527f636c61696d3a20746869732061756374696f6e2068617320616c72656479206260448201526a19595b8818db185a5b595960aa1b606482015260840161072e565b6000858152600560209081526040808320805460ff191660011790556006909152902060030154610fc457836001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610f5c57600080fd5b505af1158015610f70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f949190613984565b600086815260066020526040902060020180546001600160a01b0319166001600160a01b03929092169190911790555b60008581526006602052604081206001810154600390910154610fe79190613fa1565b60008054604051929350909182916001600160a01b03169084908381818185875af1925050503d8060008114611039576040519150601f19603f3d011682016040523d82523d6000602084013e61103e565b606091505b5060008a815260016020526040902060020154919350915060e01b6001600160e01b0319166339d690a360e11b14156111305760008881526006602052604090819020600201549051632142170760e11b81523060048201526001600160a01b03918216602482015260448101889052908816906342842e0e90606401600060405180830381600087803b1580156110d557600080fd5b505af11580156110e9573d6000803e3d6000fd5b5050506001600160a01b03881660009081526002602090815260408083206001600160e01b03198a16845282528083208a8452825280832083805290915281205550611229565b60008881526001602052604090206002015460e01b6001600160e01b03191663025ceed960e61b14156112295760008881526006602052604090819020600201549051637921219560e11b81526001600160a01b03808a169263f242432a926111a392309216908b908a90600401613da1565b600060405180830381600087803b1580156111bd57600080fd5b505af11580156111d1573d6000803e3d6000fd5b5050506001600160a01b03881660009081526009602090815260408083208a845290915290205461120491508590613fa1565b6001600160a01b03881660009081526009602090815260408083208a84529091529020555b60405188907fb1270969942994e0432341247ac48a59854a62941bad895492ab9e45418582db90600090a25050505050505050565b6000818152600660205260408120600801541561128b575060009081526006602052604090206008015490565b506000908152600160209081526040808320546001600160a01b03168352600490915290206003015490565b919050565b84806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156112f857600080fd5b505af115801561130c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113309190613984565b6001600160a01b0316336001600160a01b0316146113605760405162461bcd60e51b815260040161072e90613e92565b610d278686868686612a75565b600083815260016020818152604080842080546002820154948201546003909201548351638da5cb5b60e01b815293516001600160a01b039092169660e09690961b95929490938793638da5cb5b93600480840194939192918390030190829087803b1580156113dc57600080fd5b505af11580156113f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114149190613984565b6001600160a01b0316336001600160a01b0316146114ab5760405162461bcd60e51b815260206004820152604860248201527f6d6f64696679416e41756374696f6e546f6b656e3a204f6e6c7920746865206f60448201527f776e6572206f66206120636f6e74726163742063616e206d6f6469667920616e6064820152671030bab1ba34b7b760c11b608482015260a40161072e565b6001600160a01b0384166115195760405162461bcd60e51b815260206004820152602f60248201527f6d6f64696679416e41756374696f6e546f6b656e3a2041756374696f6e20494460448201526e081a5cc81b9bdd0818dbdc9c9958dd608a1b606482015260840161072e565b60008781526006602052604090206005015442106115935760405162461bcd60e51b815260206004820152603160248201527f6d6f64696679416e41756374696f6e546f6b656e3a2041756374696f6e2068616044820152701cc8185b1c9958591e481cdd185c9d1959607a1b606482015260840161072e565b6001600160a01b0385166116085760405162461bcd60e51b815260206004820152603660248201527f6d6f64696679416e41756374696f6e546f6b656e3a20496e69746961746f72206044820152751859191c995cdcc81a5cc81b9bdd0818dbdc9c9958dd60521b606482015260840161072e565b85811415801561161757508515155b1561198e576001600160e01b0319831663025ceed960e61b146116b05760405162461bcd60e51b815260206004820152604560248201527f6d6f64696679416e41756374696f6e546f6b656e3a20546f6b656e20616d6f7560448201527f6e7420666f722061756374696f6e20746f6b656e206b696e64206e6f7420636f6064820152641c9c9958dd60da1b608482015260a40161072e565b60018610156117185760405162461bcd60e51b815260206004820152602e60248201527f6d6f64696679416e41756374696f6e546f6b656e3a20546f6b656e20616d6f7560448201526d1b9d081b9bdd0818dbdc9c9958dd60921b606482015260840161072e565b6000878152600160205260408120600301879055868210156118625761173e8288613fa1565b604051627eeac760e11b8152306004820152602481018590529091506001600160a01b0386169062fdd58e9060440160206040518083038186803b15801561178557600080fd5b505afa158015611799573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117bd9190613cfe565b6001600160a01b03861660009081526009602090815260408083208784529091529020546117ec908390613f48565b111561180a5760405162461bcd60e51b815260040161072e90613ee1565b6001600160a01b0385166000908152600960209081526040808320868452909152902054611839908290613f48565b6001600160a01b038616600090815260096020908152604080832087845290915290205561198c565b61186c8783613fa1565b604051627eeac760e11b8152306004820152602481018590529091506001600160a01b0386169062fdd58e9060440160206040518083038186803b1580156118b357600080fd5b505afa1580156118c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118eb9190613cfe565b6001600160a01b038616600090815260096020908152604080832087845290915290205461191a908390613fa1565b11156119385760405162461bcd60e51b815260040161072e90613ee1565b6001600160a01b0385166000908152600960209081526040808320868452909152902054611967908290613fa1565b6001600160a01b03861660009081526009602090815260408083208784529091529020555b505b604051635e15f0df60e11b8152600481018890526001600160a01b0386169063bc2be1be9060240160206040518083038186803b1580156119ce57600080fd5b505afa1580156119e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a069190613cfe565b600088815260066020526040908190206005019190915551639067b67760e01b8152600481018890526001600160a01b03861690639067b6779060240160206040518083038186803b158015611a5b57600080fd5b505afa158015611a6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a939190613cfe565b6000888152600660208190526040918290200191909155516332dc083960e21b8152600481018890526001600160a01b0386169063cb7020e49060240160206040518083038186803b158015611ae857600080fd5b505afa158015611afc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b209190613cfe565b6000888152600660205260409081902060070191909155516343a648db60e11b8152600481018890526001600160a01b0386169063874c91b69060240160206040518083038186803b158015611b7557600080fd5b505afa158015611b89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bad9190613cfe565b600088815260066020526040908190206008019190915551632ec461c960e01b8152600481018890526001600160a01b03861690632ec461c99060240160206040518083038186803b158015611c0257600080fd5b505afa158015611c16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3a9190613cfe565b600088815260066020526040908190206009019190915551630e798fc760e11b8152600481018890526001600160a01b03861690631cf31f8e9060240160206040518083038186803b158015611c8f57600080fd5b505afa158015611ca3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cc79190613cfe565b60008881526006602052604090819020600a0191909155516331a200ad60e21b8152600481018890526001600160a01b0386169063c68802b49060240160206040518083038186803b158015611d1c57600080fd5b505afa158015611d30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d549190613cfe565b60008881526006602052604090819020600b019190915551633f18b21d60e21b8152600481018890526001600160a01b0386169063fc62c8749060240160206040518083038186803b158015611da957600080fd5b505afa158015611dbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611de19190613cfe565b6000888152600660205260409020600c81019190915560050154611e5f5760405162461bcd60e51b815260206004820152602f60248201527f6d6f64696679416e41756374696f6e546f6b656e3a2053746172742074696d6560448201526e081a5cc81b9bdd0818dbdc9c9958dd608a1b606482015260840161072e565b50505050505050565b81806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611ea457600080fd5b505af1158015611eb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611edc9190613984565b6001600160a01b0316336001600160a01b031614611f0c5760405162461bcd60e51b815260040161072e90613e92565b506001600160a01b03919091166000908152600460205260409020600801805460ff1916911515919091179055565b611f478260008361136d565b5050565b60006001600160e01b031984166339d690a360e11b1415611faa57506001600160a01b03841660009081526003602090815260408083206001600160e01b03198716845282528083208584528252808320848452909152902054611fea565b506001600160a01b03841660009081526002602090815260408083206001600160e01b031987168452825280832085845282528083208484529091529020545b949350505050565b6000818152600660205260408120600501541561201f575060009081526006602052604090206005015490565b506000908152600160209081526040808320546001600160a01b03168352600490915290205490565b6000818152600660208190526040822001541561207657506000908152600660208190526040909120015490565b506000908152600160208181526040808420546001600160a01b031684526004909152909120015490565b8082101561215d57604051635c46a7ef60e11b81523360048201523060248201526044810183905260806064820152600060848201526001600160a01b0384169063b88d4fde9060a401600060405180830381600087803b15801561210557600080fd5b505af1158015612119573d6000803e3d6000fd5b5050505061214b83837f73ad2146b3d3a286642c794379d750360a2d53a3459a11b3e5d6cc900f55f44a6001886112bc565b8161215581613fb8565b9250506120a1565b50505050565b81806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561219f57600080fd5b505af11580156121b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121d79190613984565b6001600160a01b0316336001600160a01b0316146122075760405162461bcd60e51b815260040161072e90613e92565b604051635e15f0df60e11b81526001600160a01b03848116600483015283169063bc2be1be9060240160206040518083038186803b15801561224857600080fd5b505afa15801561225c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122809190613cfe565b6001600160a01b038481166000818152600460208190526040918290209490945551639067b67760e01b815292830152831690639067b6779060240160206040518083038186803b1580156122d457600080fd5b505afa1580156122e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230c9190613cfe565b6001600160a01b0384811660008181526004602081905260409182902060010194909455516332dc083960e21b81529283015283169063cb7020e49060240160206040518083038186803b15801561236357600080fd5b505afa158015612377573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239b9190613cfe565b6001600160a01b0384811660008181526004602081905260409182902060020194909455516343a648db60e11b81529283015283169063874c91b69060240160206040518083038186803b1580156123f257600080fd5b505afa158015612406573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061242a9190613cfe565b6001600160a01b038481166000818152600460208190526040918290206003019490945551632ec461c960e01b815292830152831690632ec461c99060240160206040518083038186803b15801561248157600080fd5b505afa158015612495573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124b99190613cfe565b6001600160a01b0384811660008181526004602081905260409182902081019490945551630e798fc760e11b815292830152831690631cf31f8e9060240160206040518083038186803b15801561250f57600080fd5b505afa158015612523573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125479190613cfe565b6001600160a01b0384811660008181526004602081905260409182902060050194909455516331a200ad60e21b81529283015283169063c68802b49060240160206040518083038186803b15801561259e57600080fd5b505afa1580156125b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125d69190613cfe565b6001600160a01b038481166000818152600460208190526040918290206006019490945551633f18b21d60e21b81529283015283169063fc62c8749060240160206040518083038186803b15801561262d57600080fd5b505afa158015612641573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126659190613cfe565b6001600160a01b03841660009081526004602052604090206007810191909155546126ef5760405162461bcd60e51b815260206004820152603460248201527f7265676973746572416e41756374696f6e436f6e74726163743a205374617274604482015273081d1a5b59481a5cc81b9bdd0818dbdc9c9958dd60621b606482015260840161072e565b505050565b60008181526006602052604081206007015415612721575060009081526006602052604090206007015490565b506000908152600160209081526040808320546001600160a01b03168352600490915290206002015490565b6000818152600660205260408120600c01541561277a57506000908152600660205260409020600c015490565b506000908152600160209081526040808320546001600160a01b03168352600490915290206007015490565b6000818152600660205260408120600b0154156127d357506000908152600660205260409020600b015490565b506000908152600160209081526040808320546001600160a01b03168352600490915290206006015490565b6000818152600660205260408120600901541561282c575060009081526006602052604090206009015490565b506000908152600160209081526040808320546001600160a01b03168352600491829052909120015490565b6128628486612163565b6001600160a01b03841663f242432a33308661287e8787613fa1565b6040518563ffffffff1660e01b815260040161289d9493929190613da1565b600060405180830381600087803b1580156128b757600080fd5b505af11580156128cb573d6000803e3d6000fd5b505050505b808210156129185761290684847f973bb64086f173ec8099b7ed3d43da984f4a332e4417a08bc6a286e6402b05866001896112bc565b8161291081613fb8565b9250506128d0565b5050505050565b6000818152600660205260408120600a01541561294c57506000908152600660205260409020600a015490565b506000908152600160209081526040808320546001600160a01b03168352600490915290206005015490565b6000806129848461125e565b90506000612991856127a6565b905060008261299f876127ff565b6129a99085613f48565b6000888152600660205260409020600301546129c59190613f82565b6129cf9190613f60565b9050806129da575060015b6000836129e68861291f565b6129f09190613f82565b826129fb8189613fa1565b612a048a61274d565b612a0e9088613f82565b612a189190613f82565b612a229190613f60565b612a2c9190613f48565b9050612a388385613f82565b811115612a4c57612a498385613f82565b90505b612a568480613f82565b612a608288613f82565b612a6a9190613f60565b979650505050505050565b846001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612ab057600080fd5b505af1158015612ac4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae89190613984565b6001600160a01b0316336001600160a01b031614612b835760405162461bcd60e51b815260206004820152604c60248201527f726567697374657241756374696f6e446174613a204f6e6c7920746865206f7760448201527f6e6572206f66206120636f6e74726163742063616e20616c6c6f772f6469736160648201526b6c6c6f772062696464696e6760a01b608482015260a40161072e565b6001600160e01b031983166339d690a360e11b1415612c1c5781600114612bbc5760405162461bcd60e51b815260040161072e90613dd9565b6001600160a01b03851660009081526002602090815260408083206001600160e01b0319871684528252808320878452825280832083805290915290205415612c175760405162461bcd60e51b815260040161072e90613e26565b612ca9565b6001821015612c3d5760405162461bcd60e51b815260040161072e90613dd9565b6001600160a01b03851660008181526002602090815260408083206001600160e01b03198816845282528083208884528252808320938352600782528083208884528252808320548352929052205415612ca95760405162461bcd60e51b815260040161072e90613e26565b6001600160e01b031983166339d690a360e11b1480612cd857506001600160e01b0319831663025ceed960e61b145b612d545760405162461bcd60e51b815260206004820152604160248201527f726567697374657241756374696f6e446174613a204f6e6c792045524331313560448201527f3520616e642045524337323120746f6b656e732061726520737570706f7274656064820152601960fa1b608482015260a40161072e565b604080516080810182526001600160a01b0387168152602081018690526001600160e01b0319851691810182905260608101849052906000906339d690a360e11b141561303157866001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612dd657600080fd5b505af1158015612dea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e0e9190613984565b6001600160a01b0316336001600160a01b03161480612eb557506040516331a9108f60e11b8152600481018790526001600160a01b03881690636352211e9060240160206040518083038186803b158015612e6857600080fd5b505afa158015612e7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea09190613984565b6001600160a01b0316306001600160a01b0316145b612f355760405162461bcd60e51b815260206004820152604560248201527f726567697374657241756374696f6e446174613a20746865207370656369666960448201527f6564204552432d37323120746f6b656e2063616e6e6f742062652061756374696064820152641bdb9b995960da1b608482015260a40161072e565b506001600160a01b0386166000818152600860209081526040808320898452825280832054815160608c901b6bffffffffffffffffffffffff191681850152603481018b90526001600160e01b03198a16605482018190524360588084019190915284518084039091018152607890920184528151918501919091208686526002855283862082875285528386208c8752855283862086805285528386208190559585526003845282852090855283528184208a85528352818420818552909252909120829055613007816001613f48565b6001600160a01b03891660009081526008602090815260408083208b845290915290205550613315565b866001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561306c57600080fd5b505af1158015613080573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130a49190613984565b6001600160a01b0316336001600160a01b0316148061316c5750604051627eeac760e11b8152306004820152602481018790526001600160a01b0388169062fdd58e9060440160206040518083038186803b15801561310257600080fd5b505afa158015613116573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061313a9190613cfe565b6001600160a01b03881660009081526009602090815260408083208a8452909152902054613169908690613f48565b11155b6131ed5760405162461bcd60e51b815260206004820152604660248201527f726567697374657241756374696f6e446174613a20746865207370656369666960448201527f6564204552432d3131353520746f6b656e2063616e6e6f7420626520617563746064820152651a5bdb9b995960d21b608482015260a40161072e565b506001600160a01b03861660008181526007602090815260408083208984528083528184208054835160608e901b6bffffffffffffffffffffffff191681870152603481018d90526001600160e01b03198c1660548201819052605882018390524360788084019190915286518084039091018152609890920186528151918701919091209787526002865284872090875285528386208c875285528386208187528552928520869055938a905290915290546132ab906001613f48565b6001600160a01b03891660008181526007602090815260408083208c8452825280832094909455918152600982528281208a825290915220546132ef908690613f48565b6001600160a01b03891660009081526009602090815260408083208b8452909152902055505b600081815260016020818152604092839020855181546001600160a01b0319166001600160a01b0391821617825591860151928101929092559184015160028201805463ffffffff191660e09290921c919091179055606084015160039091015583161561384d57604051635e15f0df60e11b8152600481018290526001600160a01b0384169063bc2be1be9060240160206040518083038186803b1580156133bd57600080fd5b505afa1580156133d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133f59190613cfe565b600082815260066020526040908190206005019190915551639067b67760e01b8152600481018290526001600160a01b03841690639067b6779060240160206040518083038186803b15801561344a57600080fd5b505afa15801561345e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134829190613cfe565b6000828152600660208190526040918290200191909155516332dc083960e21b8152600481018290526001600160a01b0384169063cb7020e49060240160206040518083038186803b1580156134d757600080fd5b505afa1580156134eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061350f9190613cfe565b6000828152600660205260409081902060070191909155516343a648db60e11b8152600481018290526001600160a01b0384169063874c91b69060240160206040518083038186803b15801561356457600080fd5b505afa158015613578573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061359c9190613cfe565b600082815260066020526040908190206008019190915551632ec461c960e01b8152600481018290526001600160a01b03841690632ec461c99060240160206040518083038186803b1580156135f157600080fd5b505afa158015613605573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136299190613cfe565b600082815260066020526040908190206009019190915551630e798fc760e11b8152600481018290526001600160a01b03841690631cf31f8e9060240160206040518083038186803b15801561367e57600080fd5b505afa158015613692573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136b69190613cfe565b60008281526006602052604090819020600a0191909155516331a200ad60e21b8152600481018290526001600160a01b0384169063c68802b49060240160206040518083038186803b15801561370b57600080fd5b505afa15801561371f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137439190613cfe565b60008281526006602052604090819020600b019190915551633f18b21d60e21b8152600481018290526001600160a01b0384169063fc62c8749060240160206040518083038186803b15801561379857600080fd5b505afa1580156137ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137d09190613cfe565b6000828152600660205260409020600c8101919091556005015461384d5760405162461bcd60e51b815260206004820152602e60248201527f726567697374657241756374696f6e446174613a2053746172742074696d652060448201526d1a5cc81b9bdd0818dbdc9c9958dd60921b606482015260840161072e565b6040516001600160e01b0319861681526001600160a01b03881690879083907fb9d707ce49c63f003358ae85d59fc5c7762e8de3ce5a41f6bb0e7fb5e1a4cd859060200160405180910390a4807f13868ce1b50a84aac263efd89923de989e831c1c1184925e076d0db83d2b14536138c483611ff2565b60405190815260200160405180910390a250505050505050565b60008083601f8401126138f057600080fd5b50813567ffffffffffffffff81111561390857600080fd5b6020830191508360208260051b850101111561392357600080fd5b9250929050565b80356001600160e01b0319811681146112b757600080fd5b60008083601f84011261395457600080fd5b50813567ffffffffffffffff81111561396c57600080fd5b60208301915083602082850101111561392357600080fd5b60006020828403121561399657600080fd5b81516139a181613fe9565b9392505050565b600080604083850312156139bb57600080fd5b82356139c681613fe9565b915060208301356139d681613fe9565b809150509250929050565b60008060008060008060008060a0898b0312156139fd57600080fd5b8835613a0881613fe9565b97506020890135613a1881613fe9565b9650604089013567ffffffffffffffff80821115613a3557600080fd5b613a418c838d016138de565b909850965060608b0135915080821115613a5a57600080fd5b613a668c838d016138de565b909650945060808b0135915080821115613a7f57600080fd5b50613a8c8b828c01613942565b999c989b5096995094979396929594505050565b600080600080600060808688031215613ab857600080fd5b8535613ac381613fe9565b94506020860135613ad381613fe9565b935060408601359250606086013567ffffffffffffffff811115613af657600080fd5b613b0288828901613942565b969995985093965092949392505050565b60008060008060808587031215613b2957600080fd5b8435613b3481613fe9565b93506020850135613b4481613fe9565b93969395505050506040820135916060013590565b60008060008060008060a08789031215613b7257600080fd5b8635613b7d81613fe9565b95506020870135613b8d81613fe9565b94506040870135935060608701359250608087013567ffffffffffffffff811115613bb757600080fd5b613bc389828a01613942565b979a9699509497509295939492505050565b600080600080600060a08688031215613bed57600080fd5b8535613bf881613fe9565b94506020860135613c0881613fe9565b94979496505050506040830135926060810135926080909101359150565b60008060408385031215613c3957600080fd5b8235613c4481613fe9565b9150602083013580151581146139d657600080fd5b60008060008060808587031215613c6f57600080fd5b8435613c7a81613fe9565b9350613b446020860161392a565b600080600080600060a08688031215613ca057600080fd5b8535613cab81613fe9565b945060208601359350613cc06040870161392a565b9250606086013591506080860135613cd781613fe9565b809150509295509295909350565b600060208284031215613cf757600080fd5b5035919050565b600060208284031215613d1057600080fd5b5051919050565b60008060408385031215613d2a57600080fd5b8235915060208301356139d681613fe9565b600080600060608486031215613d5157600080fd5b83359250602084013591506040840135613d6a81613fe9565b809150509250925092565b600080600060608486031215613d8a57600080fd5b505081359360208301359350604090920135919050565b6001600160a01b0394851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b6020808252602d908201527f726567697374657241756374696f6e446174613a20546f6b656e20616d6f756e60408201526c1d081b9bdd0818dbdc9c9958dd609a1b606082015260800190565b60208082526046908201527f726567697374657241756374696f6e446174613a205468652061756374696f6e60408201527f20616c726561647920657869737420666f722074686520737065636966696564606082015265103a37b5b2b760d11b608082015260a00190565b6020808252602f908201527f4f6e6c7920616c6c6f77656420746f20746865206f776e6572206f662074686560408201526e081d1bdad95b8818dbdb9d1c9858dd608a1b606082015260800190565b60208082526041908201527f6d6f64696679416e41756374696f6e546f6b656e3a2043616e6e6f742073657460408201527f20746f2061756374696f6e207468617420616d6f756e74206f6620746f6b656e6060820152607360f81b608082015260a00190565b60008219821115613f5b57613f5b613fd3565b500190565b600082613f7d57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615613f9c57613f9c613fd3565b500290565b600082821015613fb357613fb3613fd3565b500390565b6000600019821415613fcc57613fcc613fd3565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114613ffe57600080fd5b5056fea2646970667358221220f49c27936eeca9cccb9720441164794d988b7b61cbaf2348e7730287a1c664ea64736f6c63430008050033
Deployed Bytecode
0x6080604052600436106101cd5760003560e01c8063930e79f1116100f7578063cb7020e411610095578063e07bc69c11610064578063e07bc69c14610628578063e65c74a214610648578063ef8c55fd14610668578063f23a6e611461068857600080fd5b8063cb7020e41461058f578063da081c94146105af578063db145701146105cf578063dfab114b146105ef57600080fd5b8063b3f78050116100d1578063b3f78050146104c7578063bc197c81146104e7578063c2507ac11461052f578063c26e748c1461055f57600080fd5b8063930e79f114610451578063aefa7d9814610471578063b3cbc3b4146104a757600080fd5b8063404753381161016f5780636e0105e01161013e5780636e0105e0146103b957806374f8c40b146103d95780638da5cb5b146103f9578063919e84f51461043157600080fd5b806340475338146103295780634ff50af21461034957806350d265d4146103695780636b9a894e1461038957600080fd5b8063150b7a02116101ab578063150b7a021461028f5780632ac9bf09146102d4578063379607f5146102e95780633f21cf811461030957600080fd5b806303ea66a4146101d25780630facebea1461021257806314ff5ea31461025e575b600080fd5b3480156101de57600080fd5b506101ff6101ed366004613ce5565b60009081526006602052604090205490565b6040519081526020015b60405180910390f35b34801561021e57600080fd5b5061024561022d366004613ce5565b60009081526001602052604090206002015460e01b90565b6040516001600160e01b03199091168152602001610209565b34801561026a57600080fd5b506101ff610279366004613ce5565b6000908152600160208190526040909120015490565b34801561029b57600080fd5b506102456102aa366004613aa0565b7f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f95945050505050565b6102e76102e2366004613d75565b6106ce565b005b3480156102f557600080fd5b506102e7610304366004613ce5565b610d2f565b34801561031557600080fd5b506101ff610324366004613ce5565b61125e565b34801561033557600080fd5b506102e7610344366004613c88565b6112bc565b34801561035557600080fd5b506102e7610364366004613d3c565b61136d565b34801561037557600080fd5b506102e7610384366004613c26565b611e68565b34801561039557600080fd5b506101ff6103a4366004613ce5565b60009081526006602052604090206001015490565b3480156103c557600080fd5b506102e76103d4366004613d17565b611f3b565b3480156103e557600080fd5b506101ff6103f4366004613c59565b611f4b565b34801561040557600080fd5b50600054610419906001600160a01b031681565b6040516001600160a01b039091168152602001610209565b34801561043d57600080fd5b506101ff61044c366004613ce5565b611ff2565b34801561045d57600080fd5b506101ff61046c366004613ce5565b612048565b34801561047d57600080fd5b5061041961048c366004613ce5565b6000908152600160205260409020546001600160a01b031690565b3480156104b357600080fd5b506102e76104c2366004613b13565b6120a1565b3480156104d357600080fd5b506102e76104e23660046139a8565b612163565b3480156104f357600080fd5b506102456105023660046139e1565b7fbc197c819b3e337a6f9652dd10becd7eef83032af3b9d958d3d42f669414662198975050505050505050565b34801561053b57600080fd5b506101ff61054a366004613ce5565b60009081526001602052604090206003015490565b34801561056b57600080fd5b506101ff61057a366004613ce5565b60009081526006602052604090206003015490565b34801561059b57600080fd5b506101ff6105aa366004613ce5565b6126f4565b3480156105bb57600080fd5b506101ff6105ca366004613ce5565b61274d565b3480156105db57600080fd5b506101ff6105ea366004613ce5565b6127a6565b3480156105fb57600080fd5b5061041961060a366004613ce5565b6000908152600660205260409020600201546001600160a01b031690565b34801561063457600080fd5b506101ff610643366004613ce5565b6127ff565b34801561065457600080fd5b506102e7610663366004613bd5565b612858565b34801561067457600080fd5b506101ff610683366004613ce5565b61291f565b34801561069457600080fd5b506102456106a3366004613b59565b7ff23a6e612e1ff4830e658fe43f4e3cb4a5f8170bd5d9e69fb5d7a7fa9e4fdf979695505050505050565b6000838152600160205260409020546001600160a01b03166107375760405162461bcd60e51b815260206004820152601d60248201527f6269643a2061756374696f6e494420646f6573206e6f7420657869737400000060448201526064015b60405180910390fd5b6000838152600160209081526040808320546001600160a01b03168352600490915290206008015460ff166107bc5760405162461bcd60e51b815260206004820152602560248201527f6269643a2062696464696e672069732063757272656e746c79206e6f7420616c6044820152641b1bddd95960da1b606482015260840161072e565b6001821161080c5760405162461bcd60e51b815260206004820152601b60248201527f6269643a205f626964416d6f756e742063616e6e6f7420626520300000000000604482015260640161072e565b60008381526006602052604090206003015481146108a65760405162461bcd60e51b815260206004820152604b60248201527f6269643a2063757272656e7420686967686573742062696420646f206e6f742060448201527f6d6174636820746865207375626d6974746564207472616e73616374696f6e2060648201526a17da1a59da195cdd109a5960aa1b608482015260a40161072e565b426108b084611ff2565b111580156108c557506108c283611ff2565b15155b6109115760405162461bcd60e51b815260206004820181905260248201527f6269643a2041756374696f6e20686173206e6f74207374617274656420796574604482015260640161072e565b4261091b84612048565b10156109695760405162461bcd60e51b815260206004820152601e60248201527f6269643a2041756374696f6e2068617320616c726561647920656e6465640000604482015260640161072e565b8082116109d05760405162461bcd60e51b815260206004820152602f60248201527f6269643a205f626964416d6f756e74206d75737420626520686967686572207460448201526e1a185b8817da1a59da195cdd109a59608a1b606482015260840161072e565b6109d98361125e565b6109e39083613f82565b6109ec846127ff565b6109f58561125e565b6109ff9190613f48565b610a099083613f82565b1115610a695760405162461bcd60e51b815260206004820152602960248201527f6269643a205f626964416d6f756e74206d757374206d65657420746865206d696044820152681b9a5b5d5b48189a5960ba1b606482015260840161072e565b813414610ade5760405162461bcd60e51b815260206004820152603860248201527f5468652062696420616d6f756e7420646f65736e2774206d617463682074686560448201527f20616d6f756e74206f662063757272656e63792073656e740000000000000000606482015260840161072e565b610ae7836126f4565b610af19042613f48565b610afa84612048565b1015610b6357610b09836126f4565b610b139042613f48565b600084815260066020819052604091829020018290555184917f2e7f50c8a01968bd8edfe9b3ae46a4d0fa3ce89e533d76245c2684ee9882c0cb91610b5a91815260200190565b60405180910390a25b60008381526006602052604090208054600282015460039092015490916001600160a01b0316908115610bd557816001600160a01b0316867ffff24e92e1cbce6e08fa0c957732709b2be79be2ce26c732bcfae1cc368356e583604051610bcc91815260200190565b60405180910390a35b8215610c4e57600086815260066020526040902060010154610bf8908490613f48565b60008781526006602090815260409182902060010192909255518481526001600160a01b0384169188917fc6330f2f35039b6e7bcfdeb0c2e959d355b88d8c2292ca4a4c42f514cc958be3910160405180910390a35b604051858152339087907f1cd77ec6c10f614681f30c7aa33ebc645b4d597aaf7039f6210e71d0e15c91819060200160405180910390a3610c8f8686612978565b60008781526006602052604090209081556002810180546001600160a01b03191633179055600301859055610cc48382613f48565b15610d27576000806001600160a01b038416610ce08685613f48565b604051600081818185875af1925050503d8060008114610d1c576040519150601f19603f3d011682016040523d82523d6000602084013e610d21565b606091505b50505050505b505050505050565b600081815260016020819052604090912080549181015460028201546003909201546001600160a01b0390931692909160e01b9083610db05760405162461bcd60e51b815260206004820152601f60248201527f636c61696d3a2061756374696f6e494420646f6573206e6f7420657869737400604482015260640161072e565b6001600160a01b03841660009081526004602052604090206008015460ff16610e2c5760405162461bcd60e51b815260206004820152602860248201527f636c61696d3a20436c61696d696e672069732063757272656e746c79206e6f7460448201526708185b1b1bddd95960c21b606482015260840161072e565b42610e3686612048565b10610e835760405162461bcd60e51b815260206004820181905260248201527f636c61696d3a2041756374696f6e20686173206e6f742079657420656e646564604482015260640161072e565b60008581526005602052604090205460ff1615610ef65760405162461bcd60e51b815260206004820152602b60248201527f636c61696d3a20746869732061756374696f6e2068617320616c72656479206260448201526a19595b8818db185a5b595960aa1b606482015260840161072e565b6000858152600560209081526040808320805460ff191660011790556006909152902060030154610fc457836001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610f5c57600080fd5b505af1158015610f70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f949190613984565b600086815260066020526040902060020180546001600160a01b0319166001600160a01b03929092169190911790555b60008581526006602052604081206001810154600390910154610fe79190613fa1565b60008054604051929350909182916001600160a01b03169084908381818185875af1925050503d8060008114611039576040519150601f19603f3d011682016040523d82523d6000602084013e61103e565b606091505b5060008a815260016020526040902060020154919350915060e01b6001600160e01b0319166339d690a360e11b14156111305760008881526006602052604090819020600201549051632142170760e11b81523060048201526001600160a01b03918216602482015260448101889052908816906342842e0e90606401600060405180830381600087803b1580156110d557600080fd5b505af11580156110e9573d6000803e3d6000fd5b5050506001600160a01b03881660009081526002602090815260408083206001600160e01b03198a16845282528083208a8452825280832083805290915281205550611229565b60008881526001602052604090206002015460e01b6001600160e01b03191663025ceed960e61b14156112295760008881526006602052604090819020600201549051637921219560e11b81526001600160a01b03808a169263f242432a926111a392309216908b908a90600401613da1565b600060405180830381600087803b1580156111bd57600080fd5b505af11580156111d1573d6000803e3d6000fd5b5050506001600160a01b03881660009081526009602090815260408083208a845290915290205461120491508590613fa1565b6001600160a01b03881660009081526009602090815260408083208a84529091529020555b60405188907fb1270969942994e0432341247ac48a59854a62941bad895492ab9e45418582db90600090a25050505050505050565b6000818152600660205260408120600801541561128b575060009081526006602052604090206008015490565b506000908152600160209081526040808320546001600160a01b03168352600490915290206003015490565b919050565b84806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156112f857600080fd5b505af115801561130c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113309190613984565b6001600160a01b0316336001600160a01b0316146113605760405162461bcd60e51b815260040161072e90613e92565b610d278686868686612a75565b600083815260016020818152604080842080546002820154948201546003909201548351638da5cb5b60e01b815293516001600160a01b039092169660e09690961b95929490938793638da5cb5b93600480840194939192918390030190829087803b1580156113dc57600080fd5b505af11580156113f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114149190613984565b6001600160a01b0316336001600160a01b0316146114ab5760405162461bcd60e51b815260206004820152604860248201527f6d6f64696679416e41756374696f6e546f6b656e3a204f6e6c7920746865206f60448201527f776e6572206f66206120636f6e74726163742063616e206d6f6469667920616e6064820152671030bab1ba34b7b760c11b608482015260a40161072e565b6001600160a01b0384166115195760405162461bcd60e51b815260206004820152602f60248201527f6d6f64696679416e41756374696f6e546f6b656e3a2041756374696f6e20494460448201526e081a5cc81b9bdd0818dbdc9c9958dd608a1b606482015260840161072e565b60008781526006602052604090206005015442106115935760405162461bcd60e51b815260206004820152603160248201527f6d6f64696679416e41756374696f6e546f6b656e3a2041756374696f6e2068616044820152701cc8185b1c9958591e481cdd185c9d1959607a1b606482015260840161072e565b6001600160a01b0385166116085760405162461bcd60e51b815260206004820152603660248201527f6d6f64696679416e41756374696f6e546f6b656e3a20496e69746961746f72206044820152751859191c995cdcc81a5cc81b9bdd0818dbdc9c9958dd60521b606482015260840161072e565b85811415801561161757508515155b1561198e576001600160e01b0319831663025ceed960e61b146116b05760405162461bcd60e51b815260206004820152604560248201527f6d6f64696679416e41756374696f6e546f6b656e3a20546f6b656e20616d6f7560448201527f6e7420666f722061756374696f6e20746f6b656e206b696e64206e6f7420636f6064820152641c9c9958dd60da1b608482015260a40161072e565b60018610156117185760405162461bcd60e51b815260206004820152602e60248201527f6d6f64696679416e41756374696f6e546f6b656e3a20546f6b656e20616d6f7560448201526d1b9d081b9bdd0818dbdc9c9958dd60921b606482015260840161072e565b6000878152600160205260408120600301879055868210156118625761173e8288613fa1565b604051627eeac760e11b8152306004820152602481018590529091506001600160a01b0386169062fdd58e9060440160206040518083038186803b15801561178557600080fd5b505afa158015611799573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117bd9190613cfe565b6001600160a01b03861660009081526009602090815260408083208784529091529020546117ec908390613f48565b111561180a5760405162461bcd60e51b815260040161072e90613ee1565b6001600160a01b0385166000908152600960209081526040808320868452909152902054611839908290613f48565b6001600160a01b038616600090815260096020908152604080832087845290915290205561198c565b61186c8783613fa1565b604051627eeac760e11b8152306004820152602481018590529091506001600160a01b0386169062fdd58e9060440160206040518083038186803b1580156118b357600080fd5b505afa1580156118c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118eb9190613cfe565b6001600160a01b038616600090815260096020908152604080832087845290915290205461191a908390613fa1565b11156119385760405162461bcd60e51b815260040161072e90613ee1565b6001600160a01b0385166000908152600960209081526040808320868452909152902054611967908290613fa1565b6001600160a01b03861660009081526009602090815260408083208784529091529020555b505b604051635e15f0df60e11b8152600481018890526001600160a01b0386169063bc2be1be9060240160206040518083038186803b1580156119ce57600080fd5b505afa1580156119e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a069190613cfe565b600088815260066020526040908190206005019190915551639067b67760e01b8152600481018890526001600160a01b03861690639067b6779060240160206040518083038186803b158015611a5b57600080fd5b505afa158015611a6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a939190613cfe565b6000888152600660208190526040918290200191909155516332dc083960e21b8152600481018890526001600160a01b0386169063cb7020e49060240160206040518083038186803b158015611ae857600080fd5b505afa158015611afc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b209190613cfe565b6000888152600660205260409081902060070191909155516343a648db60e11b8152600481018890526001600160a01b0386169063874c91b69060240160206040518083038186803b158015611b7557600080fd5b505afa158015611b89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bad9190613cfe565b600088815260066020526040908190206008019190915551632ec461c960e01b8152600481018890526001600160a01b03861690632ec461c99060240160206040518083038186803b158015611c0257600080fd5b505afa158015611c16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3a9190613cfe565b600088815260066020526040908190206009019190915551630e798fc760e11b8152600481018890526001600160a01b03861690631cf31f8e9060240160206040518083038186803b158015611c8f57600080fd5b505afa158015611ca3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cc79190613cfe565b60008881526006602052604090819020600a0191909155516331a200ad60e21b8152600481018890526001600160a01b0386169063c68802b49060240160206040518083038186803b158015611d1c57600080fd5b505afa158015611d30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d549190613cfe565b60008881526006602052604090819020600b019190915551633f18b21d60e21b8152600481018890526001600160a01b0386169063fc62c8749060240160206040518083038186803b158015611da957600080fd5b505afa158015611dbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611de19190613cfe565b6000888152600660205260409020600c81019190915560050154611e5f5760405162461bcd60e51b815260206004820152602f60248201527f6d6f64696679416e41756374696f6e546f6b656e3a2053746172742074696d6560448201526e081a5cc81b9bdd0818dbdc9c9958dd608a1b606482015260840161072e565b50505050505050565b81806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611ea457600080fd5b505af1158015611eb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611edc9190613984565b6001600160a01b0316336001600160a01b031614611f0c5760405162461bcd60e51b815260040161072e90613e92565b506001600160a01b03919091166000908152600460205260409020600801805460ff1916911515919091179055565b611f478260008361136d565b5050565b60006001600160e01b031984166339d690a360e11b1415611faa57506001600160a01b03841660009081526003602090815260408083206001600160e01b03198716845282528083208584528252808320848452909152902054611fea565b506001600160a01b03841660009081526002602090815260408083206001600160e01b031987168452825280832085845282528083208484529091529020545b949350505050565b6000818152600660205260408120600501541561201f575060009081526006602052604090206005015490565b506000908152600160209081526040808320546001600160a01b03168352600490915290205490565b6000818152600660208190526040822001541561207657506000908152600660208190526040909120015490565b506000908152600160208181526040808420546001600160a01b031684526004909152909120015490565b8082101561215d57604051635c46a7ef60e11b81523360048201523060248201526044810183905260806064820152600060848201526001600160a01b0384169063b88d4fde9060a401600060405180830381600087803b15801561210557600080fd5b505af1158015612119573d6000803e3d6000fd5b5050505061214b83837f73ad2146b3d3a286642c794379d750360a2d53a3459a11b3e5d6cc900f55f44a6001886112bc565b8161215581613fb8565b9250506120a1565b50505050565b81806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561219f57600080fd5b505af11580156121b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121d79190613984565b6001600160a01b0316336001600160a01b0316146122075760405162461bcd60e51b815260040161072e90613e92565b604051635e15f0df60e11b81526001600160a01b03848116600483015283169063bc2be1be9060240160206040518083038186803b15801561224857600080fd5b505afa15801561225c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122809190613cfe565b6001600160a01b038481166000818152600460208190526040918290209490945551639067b67760e01b815292830152831690639067b6779060240160206040518083038186803b1580156122d457600080fd5b505afa1580156122e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230c9190613cfe565b6001600160a01b0384811660008181526004602081905260409182902060010194909455516332dc083960e21b81529283015283169063cb7020e49060240160206040518083038186803b15801561236357600080fd5b505afa158015612377573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239b9190613cfe565b6001600160a01b0384811660008181526004602081905260409182902060020194909455516343a648db60e11b81529283015283169063874c91b69060240160206040518083038186803b1580156123f257600080fd5b505afa158015612406573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061242a9190613cfe565b6001600160a01b038481166000818152600460208190526040918290206003019490945551632ec461c960e01b815292830152831690632ec461c99060240160206040518083038186803b15801561248157600080fd5b505afa158015612495573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124b99190613cfe565b6001600160a01b0384811660008181526004602081905260409182902081019490945551630e798fc760e11b815292830152831690631cf31f8e9060240160206040518083038186803b15801561250f57600080fd5b505afa158015612523573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125479190613cfe565b6001600160a01b0384811660008181526004602081905260409182902060050194909455516331a200ad60e21b81529283015283169063c68802b49060240160206040518083038186803b15801561259e57600080fd5b505afa1580156125b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125d69190613cfe565b6001600160a01b038481166000818152600460208190526040918290206006019490945551633f18b21d60e21b81529283015283169063fc62c8749060240160206040518083038186803b15801561262d57600080fd5b505afa158015612641573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126659190613cfe565b6001600160a01b03841660009081526004602052604090206007810191909155546126ef5760405162461bcd60e51b815260206004820152603460248201527f7265676973746572416e41756374696f6e436f6e74726163743a205374617274604482015273081d1a5b59481a5cc81b9bdd0818dbdc9c9958dd60621b606482015260840161072e565b505050565b60008181526006602052604081206007015415612721575060009081526006602052604090206007015490565b506000908152600160209081526040808320546001600160a01b03168352600490915290206002015490565b6000818152600660205260408120600c01541561277a57506000908152600660205260409020600c015490565b506000908152600160209081526040808320546001600160a01b03168352600490915290206007015490565b6000818152600660205260408120600b0154156127d357506000908152600660205260409020600b015490565b506000908152600160209081526040808320546001600160a01b03168352600490915290206006015490565b6000818152600660205260408120600901541561282c575060009081526006602052604090206009015490565b506000908152600160209081526040808320546001600160a01b03168352600491829052909120015490565b6128628486612163565b6001600160a01b03841663f242432a33308661287e8787613fa1565b6040518563ffffffff1660e01b815260040161289d9493929190613da1565b600060405180830381600087803b1580156128b757600080fd5b505af11580156128cb573d6000803e3d6000fd5b505050505b808210156129185761290684847f973bb64086f173ec8099b7ed3d43da984f4a332e4417a08bc6a286e6402b05866001896112bc565b8161291081613fb8565b9250506128d0565b5050505050565b6000818152600660205260408120600a01541561294c57506000908152600660205260409020600a015490565b506000908152600160209081526040808320546001600160a01b03168352600490915290206005015490565b6000806129848461125e565b90506000612991856127a6565b905060008261299f876127ff565b6129a99085613f48565b6000888152600660205260409020600301546129c59190613f82565b6129cf9190613f60565b9050806129da575060015b6000836129e68861291f565b6129f09190613f82565b826129fb8189613fa1565b612a048a61274d565b612a0e9088613f82565b612a189190613f82565b612a229190613f60565b612a2c9190613f48565b9050612a388385613f82565b811115612a4c57612a498385613f82565b90505b612a568480613f82565b612a608288613f82565b612a6a9190613f60565b979650505050505050565b846001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612ab057600080fd5b505af1158015612ac4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae89190613984565b6001600160a01b0316336001600160a01b031614612b835760405162461bcd60e51b815260206004820152604c60248201527f726567697374657241756374696f6e446174613a204f6e6c7920746865206f7760448201527f6e6572206f66206120636f6e74726163742063616e20616c6c6f772f6469736160648201526b6c6c6f772062696464696e6760a01b608482015260a40161072e565b6001600160e01b031983166339d690a360e11b1415612c1c5781600114612bbc5760405162461bcd60e51b815260040161072e90613dd9565b6001600160a01b03851660009081526002602090815260408083206001600160e01b0319871684528252808320878452825280832083805290915290205415612c175760405162461bcd60e51b815260040161072e90613e26565b612ca9565b6001821015612c3d5760405162461bcd60e51b815260040161072e90613dd9565b6001600160a01b03851660008181526002602090815260408083206001600160e01b03198816845282528083208884528252808320938352600782528083208884528252808320548352929052205415612ca95760405162461bcd60e51b815260040161072e90613e26565b6001600160e01b031983166339d690a360e11b1480612cd857506001600160e01b0319831663025ceed960e61b145b612d545760405162461bcd60e51b815260206004820152604160248201527f726567697374657241756374696f6e446174613a204f6e6c792045524331313560448201527f3520616e642045524337323120746f6b656e732061726520737570706f7274656064820152601960fa1b608482015260a40161072e565b604080516080810182526001600160a01b0387168152602081018690526001600160e01b0319851691810182905260608101849052906000906339d690a360e11b141561303157866001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612dd657600080fd5b505af1158015612dea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e0e9190613984565b6001600160a01b0316336001600160a01b03161480612eb557506040516331a9108f60e11b8152600481018790526001600160a01b03881690636352211e9060240160206040518083038186803b158015612e6857600080fd5b505afa158015612e7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea09190613984565b6001600160a01b0316306001600160a01b0316145b612f355760405162461bcd60e51b815260206004820152604560248201527f726567697374657241756374696f6e446174613a20746865207370656369666960448201527f6564204552432d37323120746f6b656e2063616e6e6f742062652061756374696064820152641bdb9b995960da1b608482015260a40161072e565b506001600160a01b0386166000818152600860209081526040808320898452825280832054815160608c901b6bffffffffffffffffffffffff191681850152603481018b90526001600160e01b03198a16605482018190524360588084019190915284518084039091018152607890920184528151918501919091208686526002855283862082875285528386208c8752855283862086805285528386208190559585526003845282852090855283528184208a85528352818420818552909252909120829055613007816001613f48565b6001600160a01b03891660009081526008602090815260408083208b845290915290205550613315565b866001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561306c57600080fd5b505af1158015613080573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130a49190613984565b6001600160a01b0316336001600160a01b0316148061316c5750604051627eeac760e11b8152306004820152602481018790526001600160a01b0388169062fdd58e9060440160206040518083038186803b15801561310257600080fd5b505afa158015613116573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061313a9190613cfe565b6001600160a01b03881660009081526009602090815260408083208a8452909152902054613169908690613f48565b11155b6131ed5760405162461bcd60e51b815260206004820152604660248201527f726567697374657241756374696f6e446174613a20746865207370656369666960448201527f6564204552432d3131353520746f6b656e2063616e6e6f7420626520617563746064820152651a5bdb9b995960d21b608482015260a40161072e565b506001600160a01b03861660008181526007602090815260408083208984528083528184208054835160608e901b6bffffffffffffffffffffffff191681870152603481018d90526001600160e01b03198c1660548201819052605882018390524360788084019190915286518084039091018152609890920186528151918701919091209787526002865284872090875285528386208c875285528386208187528552928520869055938a905290915290546132ab906001613f48565b6001600160a01b03891660008181526007602090815260408083208c8452825280832094909455918152600982528281208a825290915220546132ef908690613f48565b6001600160a01b03891660009081526009602090815260408083208b8452909152902055505b600081815260016020818152604092839020855181546001600160a01b0319166001600160a01b0391821617825591860151928101929092559184015160028201805463ffffffff191660e09290921c919091179055606084015160039091015583161561384d57604051635e15f0df60e11b8152600481018290526001600160a01b0384169063bc2be1be9060240160206040518083038186803b1580156133bd57600080fd5b505afa1580156133d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133f59190613cfe565b600082815260066020526040908190206005019190915551639067b67760e01b8152600481018290526001600160a01b03841690639067b6779060240160206040518083038186803b15801561344a57600080fd5b505afa15801561345e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134829190613cfe565b6000828152600660208190526040918290200191909155516332dc083960e21b8152600481018290526001600160a01b0384169063cb7020e49060240160206040518083038186803b1580156134d757600080fd5b505afa1580156134eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061350f9190613cfe565b6000828152600660205260409081902060070191909155516343a648db60e11b8152600481018290526001600160a01b0384169063874c91b69060240160206040518083038186803b15801561356457600080fd5b505afa158015613578573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061359c9190613cfe565b600082815260066020526040908190206008019190915551632ec461c960e01b8152600481018290526001600160a01b03841690632ec461c99060240160206040518083038186803b1580156135f157600080fd5b505afa158015613605573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136299190613cfe565b600082815260066020526040908190206009019190915551630e798fc760e11b8152600481018290526001600160a01b03841690631cf31f8e9060240160206040518083038186803b15801561367e57600080fd5b505afa158015613692573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136b69190613cfe565b60008281526006602052604090819020600a0191909155516331a200ad60e21b8152600481018290526001600160a01b0384169063c68802b49060240160206040518083038186803b15801561370b57600080fd5b505afa15801561371f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137439190613cfe565b60008281526006602052604090819020600b019190915551633f18b21d60e21b8152600481018290526001600160a01b0384169063fc62c8749060240160206040518083038186803b15801561379857600080fd5b505afa1580156137ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137d09190613cfe565b6000828152600660205260409020600c8101919091556005015461384d5760405162461bcd60e51b815260206004820152602e60248201527f726567697374657241756374696f6e446174613a2053746172742074696d652060448201526d1a5cc81b9bdd0818dbdc9c9958dd60921b606482015260840161072e565b6040516001600160e01b0319861681526001600160a01b03881690879083907fb9d707ce49c63f003358ae85d59fc5c7762e8de3ce5a41f6bb0e7fb5e1a4cd859060200160405180910390a4807f13868ce1b50a84aac263efd89923de989e831c1c1184925e076d0db83d2b14536138c483611ff2565b60405190815260200160405180910390a250505050505050565b60008083601f8401126138f057600080fd5b50813567ffffffffffffffff81111561390857600080fd5b6020830191508360208260051b850101111561392357600080fd5b9250929050565b80356001600160e01b0319811681146112b757600080fd5b60008083601f84011261395457600080fd5b50813567ffffffffffffffff81111561396c57600080fd5b60208301915083602082850101111561392357600080fd5b60006020828403121561399657600080fd5b81516139a181613fe9565b9392505050565b600080604083850312156139bb57600080fd5b82356139c681613fe9565b915060208301356139d681613fe9565b809150509250929050565b60008060008060008060008060a0898b0312156139fd57600080fd5b8835613a0881613fe9565b97506020890135613a1881613fe9565b9650604089013567ffffffffffffffff80821115613a3557600080fd5b613a418c838d016138de565b909850965060608b0135915080821115613a5a57600080fd5b613a668c838d016138de565b909650945060808b0135915080821115613a7f57600080fd5b50613a8c8b828c01613942565b999c989b5096995094979396929594505050565b600080600080600060808688031215613ab857600080fd5b8535613ac381613fe9565b94506020860135613ad381613fe9565b935060408601359250606086013567ffffffffffffffff811115613af657600080fd5b613b0288828901613942565b969995985093965092949392505050565b60008060008060808587031215613b2957600080fd5b8435613b3481613fe9565b93506020850135613b4481613fe9565b93969395505050506040820135916060013590565b60008060008060008060a08789031215613b7257600080fd5b8635613b7d81613fe9565b95506020870135613b8d81613fe9565b94506040870135935060608701359250608087013567ffffffffffffffff811115613bb757600080fd5b613bc389828a01613942565b979a9699509497509295939492505050565b600080600080600060a08688031215613bed57600080fd5b8535613bf881613fe9565b94506020860135613c0881613fe9565b94979496505050506040830135926060810135926080909101359150565b60008060408385031215613c3957600080fd5b8235613c4481613fe9565b9150602083013580151581146139d657600080fd5b60008060008060808587031215613c6f57600080fd5b8435613c7a81613fe9565b9350613b446020860161392a565b600080600080600060a08688031215613ca057600080fd5b8535613cab81613fe9565b945060208601359350613cc06040870161392a565b9250606086013591506080860135613cd781613fe9565b809150509295509295909350565b600060208284031215613cf757600080fd5b5035919050565b600060208284031215613d1057600080fd5b5051919050565b60008060408385031215613d2a57600080fd5b8235915060208301356139d681613fe9565b600080600060608486031215613d5157600080fd5b83359250602084013591506040840135613d6a81613fe9565b809150509250925092565b600080600060608486031215613d8a57600080fd5b505081359360208301359350604090920135919050565b6001600160a01b0394851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b6020808252602d908201527f726567697374657241756374696f6e446174613a20546f6b656e20616d6f756e60408201526c1d081b9bdd0818dbdc9c9958dd609a1b606082015260800190565b60208082526046908201527f726567697374657241756374696f6e446174613a205468652061756374696f6e60408201527f20616c726561647920657869737420666f722074686520737065636966696564606082015265103a37b5b2b760d11b608082015260a00190565b6020808252602f908201527f4f6e6c7920616c6c6f77656420746f20746865206f776e6572206f662074686560408201526e081d1bdad95b8818dbdb9d1c9858dd608a1b606082015260800190565b60208082526041908201527f6d6f64696679416e41756374696f6e546f6b656e3a2043616e6e6f742073657460408201527f20746f2061756374696f6e207468617420616d6f756e74206f6620746f6b656e6060820152607360f81b608082015260a00190565b60008219821115613f5b57613f5b613fd3565b500190565b600082613f7d57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615613f9c57613f9c613fd3565b500290565b600082821015613fb357613fb3613fd3565b500390565b6000600019821415613fcc57613fcc613fd3565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114613ffe57600080fd5b5056fea2646970667358221220f49c27936eeca9cccb9720441164794d988b7b61cbaf2348e7730287a1c664ea64736f6c63430008050033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.