Overview
ETH Balance
0.261 ETH
Eth Value
$707.92 (@ $2,712.35/ETH)More Info
Private Name Tags
ContractCreator
Latest 15 from a total of 15 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 13593229 | 1181 days ago | IN | 0 ETH | 0.00442759 | ||||
Toggle Auction | 13593223 | 1181 days ago | IN | 0 ETH | 0.00364348 | ||||
Toggle Auction | 13564337 | 1185 days ago | IN | 0 ETH | 0.00662723 | ||||
New Bid | 13564295 | 1185 days ago | IN | 0.131 ETH | 0.02267571 | ||||
Claim | 13562121 | 1186 days ago | IN | 0 ETH | 0.00331389 | ||||
Claim | 13552836 | 1187 days ago | IN | 0 ETH | 0.00512924 | ||||
Claim | 13552831 | 1187 days ago | IN | 0 ETH | 0.00587325 | ||||
Claim | 13552811 | 1187 days ago | IN | 0 ETH | 0.0044834 | ||||
New Bid | 13543966 | 1188 days ago | IN | 0.13 ETH | 0.03144033 | ||||
New Bid | 13543884 | 1188 days ago | IN | 0.11 ETH | 0.0273265 | ||||
Claim | 13540432 | 1189 days ago | IN | 0 ETH | 0.00703908 | ||||
New Bid | 13540178 | 1189 days ago | IN | 0.1 ETH | 0.03345095 | ||||
Claim | 13540163 | 1189 days ago | IN | 0 ETH | 0.006862 | ||||
Claim | 13540152 | 1189 days ago | IN | 0 ETH | 0.00566499 | ||||
Set First | 13539226 | 1189 days ago | IN | 0 ETH | 0.00548031 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
BountyAuction
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.0; import "./PricingSession.sol"; import "./ABCTreasury.sol"; import "./helpers/ReentrancyGuard.sol"; ///@author Medici ///@title Bounty auction contract for Abacus contract BountyAuction is ReentrancyGuard{ PricingSession public session; ABCTreasury public treasury; address public admin; address public ABCToken; uint public nonce; bool public auctionStatus; bool public firstSession; /* ======== MAPPINGS ======== */ mapping(uint => uint) public highestBid; mapping(uint => uint) public endTime; mapping(uint => address) public winners; mapping(uint => address) public highestBidder; mapping(address => uint) bidTime; mapping(address => uint) tvl; mapping(uint => mapping(address => AuctionVote)) public userVote; /* ======== STRUCTS ======== */ struct AuctionVote { address nftAddress; uint tokenid; uint intitialAppraisal; uint bid; } /* ======== Constructor ======== */ constructor() { admin = msg.sender; auctionStatus = true; } /* ======== ADMIN ======== */ ///@notice toggles active status of Auction contract function toggleAuction() external { require(msg.sender == admin); auctionStatus = !auctionStatus; nonce++; } function setSessionContract(address _session) external { require(msg.sender == admin); session = PricingSession(payable(_session)); } function setTreasury(address _treasury) external { require(msg.sender == admin); treasury = ABCTreasury(payable(_treasury)); } function setToken(address _token) external { require(msg.sender == admin); ABCToken = _token; } function setFirst(bool _state) external { require(msg.sender == admin); firstSession = _state; } /* ======== AUCTION INTERACTION ======== */ ///@notice allow user to submit new bid function newBid(address _nftAddress, uint _tokenid, uint _initailAppraisal) nonReentrant payable external { require( msg.value > highestBid[nonce] && auctionStatus ); bidTime[msg.sender] = block.timestamp; highestBidder[nonce] = msg.sender; highestBid[nonce] = msg.value; tvl[msg.sender] -= userVote[nonce][msg.sender].bid; (bool sent, ) = payable(msg.sender).call{value: userVote[nonce][msg.sender].bid}(""); require(sent); userVote[nonce][msg.sender].nftAddress = _nftAddress; userVote[nonce][msg.sender].tokenid = _tokenid; userVote[nonce][msg.sender].intitialAppraisal = _initailAppraisal; userVote[nonce][msg.sender].bid = msg.value; tvl[msg.sender] += msg.value; } ///@notice allow user to change nft that they'd like appraised if they win function changeInfo(address _nftAddress, uint _tokenid, uint _initialAppraisal) external { require(userVote[nonce][msg.sender].nftAddress != address(0)); userVote[nonce][msg.sender].nftAddress = _nftAddress; userVote[nonce][msg.sender].tokenid = _tokenid; userVote[nonce][msg.sender].intitialAppraisal = _initialAppraisal; } ///@notice triggered when auction ends, starts session for highest bidder function endAuction() nonReentrant external { if(firstSession) { require(msg.sender == admin); } require(endTime[nonce] < block.timestamp && auctionStatus); treasury.sendABCToken(address(this), 0.005 ether * session.ethToAbc()); session.createNewSession( userVote[nonce][highestBidder[nonce]].nftAddress, userVote[nonce][highestBidder[nonce]].tokenid, userVote[nonce][highestBidder[nonce]].intitialAppraisal, 86400, address(0) ); uint bountySend = userVote[nonce][highestBidder[nonce]].bid; userVote[nonce][highestBidder[nonce]].bid = 0; tvl[highestBidder[nonce]] -= bountySend; endTime[++nonce] = block.timestamp + 86400; (bool sent, ) = payable(session).call{value: bountySend}(""); require(sent); } ///@notice allows users to claim non-employed funds function claim() nonReentrant external { uint returnValue; if(highestBidder[nonce] != msg.sender) { returnValue = tvl[msg.sender]; } else { returnValue = tvl[msg.sender] - userVote[nonce][msg.sender].bid; } tvl[msg.sender] -= returnValue; (bool sent, ) = payable(msg.sender).call{value: returnValue}(""); require(sent); } }
pragma solidity ^0.8.0; import "./helpers/ReentrancyGuard.sol"; import "./interfaces/IABCTreasury.sol"; import "./libraries/SafeMath.sol"; import "./libraries/sqrtLibrary.sol"; import "./libraries/PostSessionLibrary.sol"; import "./interfaces/IERC20.sol"; /// @author Medici /// @title Pricing session contract for Abacus contract PricingSession is ReentrancyGuard { using SafeMath for uint; address immutable public ABCToken; address immutable public Treasury; address auction; address admin; bool auctionStatus; /* ======== MAPPINGS ======== */ mapping(address => mapping (uint => uint)) public nftNonce; mapping(uint => mapping(address => mapping(uint => VotingSessionMapping))) NftSessionMap; mapping(uint => mapping(address => mapping(uint => VotingSessionChecks))) public NftSessionCheck; mapping(uint => mapping(address => mapping(uint => VotingSessionCore))) public NftSessionCore; mapping(uint => mapping(address => mapping(uint => uint))) public finalAppraisalValue; /* ======== STRUCTS ======== */ struct VotingSessionMapping { mapping (address => uint) voterCheck; mapping (address => uint) winnerPoints; mapping (address => uint) amountHarvested; mapping (address => Voter) nftVotes; } struct VotingSessionChecks { uint sessionProgression; uint calls; uint correct; uint incorrect; uint timeFinalAppraisalSet; } struct VotingSessionCore { address Dao; uint endTime; uint lowestStake; uint maxAppraisal; uint totalAppraisalValue; uint totalSessionStake; uint totalProfit; uint totalWinnerPoints; uint totalVotes; uint uniqueVoters; uint votingTime; } struct Voter { bytes32 concealedBid; uint base; uint appraisal; uint stake; } /* ======== EVENTS ======== */ event PricingSessionCreated(address DaoTokenContract, address creator_, address nftAddress_, uint tokenid_, uint initialAppraisal_, uint bounty_); event newAppraisalAdded(address voter_, uint stake_, uint appraisal, uint weight); event finalAppraisalDetermined(uint finalAppraisal, uint amountOfParticipants, uint totalStake); event lossHarvestedFromUser(address user_, uint harvested); event ethClaimedByUser(address user_, uint ethClaimed); event ethToPPExchange(address user_, uint ethExchanged, uint ppSent); event sessionEnded(address nftAddress, uint tokenid, uint nonce); /* ======== CONSTRUCTOR ======== */ constructor(address _ABCToken, address _treasury, address _auction) { ABCToken = _ABCToken; Treasury = _treasury; auction = _auction; admin = msg.sender; auctionStatus = true; } function setAuction(address _auction) external { require(msg.sender == admin); auction = _auction; } function setAuctionStatus(bool status) external { auctionStatus = status; } /// @notice Allow user to create new session and attach initial bounty /** @dev NFT sessions are indexed using a nonce per specific nft. The mapping is done by mapping a nonce to an NFT address to the NFT token id. */ function createNewSession( address nftAddress, uint tokenid, uint _initialAppraisal, uint _votingTime, address _dao ) stopOverwrite(nftAddress, tokenid) external payable { require(_votingTime <= 1 days && (auctionStatus || msg.sender == auction)); uint abcCost = 0.005 ether *(ethToAbc()); (bool abcSent) = IERC20(ABCToken).transferFrom(msg.sender, Treasury, abcCost); require(abcSent); if(getStatus(nftAddress, tokenid) == 6) { _executeEnd(nftAddress, tokenid); } nftNonce[nftAddress][tokenid]++; VotingSessionCore storage sessionCore = NftSessionCore[nftNonce[nftAddress][tokenid]][nftAddress][tokenid]; sessionCore.votingTime = _votingTime; sessionCore.maxAppraisal = 69420 * _initialAppraisal / 1000; sessionCore.lowestStake = 100000 ether; sessionCore.endTime = block.timestamp + _votingTime; sessionCore.totalSessionStake = msg.value; sessionCore.Dao = _dao; emit PricingSessionCreated(_dao, msg.sender, nftAddress, tokenid, _initialAppraisal, msg.value); } /* ======== USER VOTE FUNCTIONS ======== */ /// @notice Allows user to set vote in party /** @dev Users appraisal is hashed so users can't track final appraisal and submit vote right before session ends. Therefore, users must remember their appraisal in order to reveal their appraisal in the next function. */ function setVote( address nftAddress, uint tokenid, bytes32 concealedBid ) properVote(nftAddress, tokenid) payable external { uint currentNonce = nftNonce[nftAddress][tokenid]; VotingSessionCore storage sessionCore = NftSessionCore[currentNonce][nftAddress][tokenid]; VotingSessionMapping storage sessionMap = NftSessionMap[currentNonce][nftAddress][tokenid]; require(sessionCore.endTime > block.timestamp); // if(sessionCore.Dao != address(0)) { // require(IERC20(sessionCore.Dao).balanceOf(msg.sender) > 0); // } sessionMap.voterCheck[msg.sender] = 1; if (msg.value < sessionCore.lowestStake) { sessionCore.lowestStake = msg.value; } sessionCore.uniqueVoters++; sessionCore.totalSessionStake = sessionCore.totalSessionStake.add(msg.value); sessionMap.nftVotes[msg.sender].concealedBid = concealedBid; sessionMap.nftVotes[msg.sender].stake = msg.value; } function updateVote( address nftAddress, uint tokenid, bytes32 concealedBid ) external { require(NftSessionMap[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].voterCheck[msg.sender] == 1); uint currentNonce = nftNonce[nftAddress][tokenid]; VotingSessionCore storage sessionCore = NftSessionCore[currentNonce][nftAddress][tokenid]; VotingSessionMapping storage sessionMap = NftSessionMap[currentNonce][nftAddress][tokenid]; require(sessionCore.endTime > block.timestamp); // if(sessionCore.Dao != address(0)) { // require(IERC20(sessionCore.Dao).balanceOf(msg.sender) > 0); // } sessionCore.uniqueVoters++; sessionMap.nftVotes[msg.sender].concealedBid = concealedBid; } /// @notice Reveals user vote and weights based on the sessions lowest stake /** @dev calculation can be found in the weightVoteLibrary.sol file. Votes are weighted as sqrt(userStake/lowestStake). Depending on a votes weight it is then added as multiple votes of that appraisal (i.e. if someoneone has voting weight of 8, 8 votes are submitted using their appraisal). */ function weightVote(address nftAddress, uint tokenid, uint appraisal, uint seedNum) checkParticipation(nftAddress, tokenid) nonReentrant external { uint currentNonce = nftNonce[nftAddress][tokenid]; VotingSessionCore storage sessionCore = NftSessionCore[currentNonce][nftAddress][tokenid]; VotingSessionChecks storage sessionCheck = NftSessionCheck[currentNonce][nftAddress][tokenid]; VotingSessionMapping storage sessionMap = NftSessionMap[nftNonce[nftAddress][tokenid]][nftAddress][tokenid]; require(sessionCheck.sessionProgression < 2 && sessionCore.endTime < block.timestamp && sessionMap.voterCheck[msg.sender] == 1 && sessionMap.nftVotes[msg.sender].concealedBid == keccak256(abi.encodePacked(appraisal, msg.sender, seedNum)) && sessionCore.maxAppraisal >= appraisal ); sessionMap.voterCheck[msg.sender] = 2; if(sessionCheck.sessionProgression == 0) { sessionCheck.sessionProgression = 1; } sessionMap.nftVotes[msg.sender].appraisal = appraisal; uint weight = sqrtLibrary.sqrt(sessionMap.nftVotes[msg.sender].stake/sessionCore.lowestStake); sessionCore.totalVotes += weight; sessionCheck.calls++; sessionCore.totalAppraisalValue = sessionCore.totalAppraisalValue.add((weight) * sessionMap.nftVotes[msg.sender].appraisal); emit newAppraisalAdded(msg.sender, sessionMap.nftVotes[msg.sender].stake, sessionMap.nftVotes[msg.sender].appraisal, weight); if(sessionCheck.calls == sessionCore.uniqueVoters) { sessionCheck.sessionProgression = 2; sessionCheck.calls = 0; } } /// @notice takes average of appraisals and outputs a final appraisal value. function setFinalAppraisal(address nftAddress, uint tokenid) nonReentrant external { VotingSessionCore storage sessionCore = NftSessionCore[nftNonce[nftAddress][tokenid]][nftAddress][tokenid]; VotingSessionChecks storage sessionCheck = NftSessionCheck[nftNonce[nftAddress][tokenid]][nftAddress][tokenid]; require( (block.timestamp > sessionCore.endTime + sessionCore.votingTime || sessionCheck.sessionProgression == 2) ); if(sessionCheck.sessionProgression == 1) { sessionCheck.sessionProgression = 2; } IABCTreasury(Treasury).updateNftPriced(); sessionCheck.calls = 0; sessionCheck.timeFinalAppraisalSet = block.timestamp; finalAppraisalValue[nftNonce[nftAddress][tokenid]][nftAddress][tokenid] = (sessionCore.totalAppraisalValue)/(sessionCore.totalVotes); sessionCheck.sessionProgression = 3; emit finalAppraisalDetermined(finalAppraisalValue[nftNonce[nftAddress][tokenid]][nftAddress][tokenid], sessionCore.uniqueVoters, sessionCore.totalSessionStake); } /// @notice Calculates users base and harvests their loss before returning remaining stake /** @dev A couple notes: 1. Base is calculated based on margin of error. > +/- 5% = 1 > +/- 4% = 2 > +/- 3% = 3 > +/- 2% = 4 > +/- 1% = 5 > Exact = 6 2. winnerPoints are calculated based on --> base * stake 3. Losses are harvested based on --> (margin of error - 5%) * stake */ function harvest(address nftAddress, uint tokenid) checkParticipation(nftAddress, tokenid) nonReentrant external { VotingSessionCore storage sessionCore = NftSessionCore[nftNonce[nftAddress][tokenid]][nftAddress][tokenid]; VotingSessionChecks storage sessionCheck = NftSessionCheck[nftNonce[nftAddress][tokenid]][nftAddress][tokenid]; VotingSessionMapping storage sessionMap = NftSessionMap[nftNonce[nftAddress][tokenid]][nftAddress][tokenid]; require( sessionCheck.sessionProgression == 3 ); sessionCheck.calls++; sessionMap.voterCheck[msg.sender] = 3; sessionMap.nftVotes[msg.sender].base = PostSessionLibrary.calculateBase( finalAppraisalValue[nftNonce[nftAddress][tokenid]][nftAddress][tokenid], sessionMap.nftVotes[msg.sender].appraisal ); if(NftSessionMap[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].nftVotes[msg.sender].base > 0) { sessionCore.totalWinnerPoints += sessionMap.nftVotes[msg.sender].base * sessionMap.nftVotes[msg.sender].stake; sessionMap.winnerPoints[msg.sender] = sessionMap.nftVotes[msg.sender].base * sessionMap.nftVotes[msg.sender].stake; sessionCheck.correct++; } else { sessionCheck.incorrect++; } sessionMap.amountHarvested[msg.sender] = PostSessionLibrary.harvest( sessionMap.nftVotes[msg.sender].stake, sessionMap.nftVotes[msg.sender].appraisal, finalAppraisalValue[nftNonce[nftAddress][tokenid]][nftAddress][tokenid] ); sessionMap.nftVotes[msg.sender].stake -= sessionMap.amountHarvested[msg.sender]; uint commission = PostSessionLibrary.setCommission(Treasury.balance).mul(sessionMap.amountHarvested[msg.sender]).div(10000); sessionCore.totalSessionStake -= commission; sessionMap.amountHarvested[msg.sender] -= commission; sessionCore.totalProfit += sessionMap.amountHarvested[msg.sender]; IABCTreasury(Treasury).updateProfitGenerated(sessionMap.amountHarvested[msg.sender]); (bool sent, ) = payable(Treasury).call{value: commission}(""); require(sent); emit lossHarvestedFromUser(msg.sender, sessionMap.amountHarvested[msg.sender]); if(sessionCheck.calls == sessionCore.uniqueVoters) { sessionCheck.sessionProgression = 4; sessionCheck.calls = 0; } } /// @notice User claims principal stake along with any earned profits in ETH or ABC form /** @dev 1. Calculates user principal return value 2. Enacts sybil defense mechanism 3. Edits totalProfits and totalSessionStake to reflect claim 4. Checks trigger choice 5. Executes desired payout of principal and profit */ /// @param trigger trigger should be set to 1 if the user wants reward in ETH or 2 if user wants reward in ABC function claim(address nftAddress, uint tokenid, uint trigger) checkHarvestLoss(nftAddress, tokenid) checkParticipation(nftAddress, tokenid) nonReentrant external returns(uint){ VotingSessionCore storage sessionCore = NftSessionCore[nftNonce[nftAddress][tokenid]][nftAddress][tokenid]; VotingSessionChecks storage sessionCheck = NftSessionCheck[nftNonce[nftAddress][tokenid]][nftAddress][tokenid]; VotingSessionMapping storage sessionMap = NftSessionMap[nftNonce[nftAddress][tokenid]][nftAddress][tokenid]; require(block.timestamp > sessionCheck.timeFinalAppraisalSet + sessionCore.votingTime || sessionCheck.sessionProgression == 4); require(trigger == 1 || trigger == 2); uint principalReturn; sessionMap.voterCheck[msg.sender] = 4; if(sessionCheck.sessionProgression == 3) { sessionCheck.calls = 0; sessionCheck.sessionProgression = 4; } if(sessionCheck.correct * 100 / (sessionCheck.correct + sessionCheck.incorrect) >= 90) { principalReturn = sessionMap.nftVotes[msg.sender].stake + sessionMap.amountHarvested[msg.sender]; } else { principalReturn = sessionMap.nftVotes[msg.sender].stake; } sessionCheck.calls++; uint payout = sessionCore.totalProfit * sessionMap.winnerPoints[msg.sender] / sessionCore.totalWinnerPoints; sessionCore.totalProfit -= payout; sessionCore.totalSessionStake -= payout + principalReturn; sessionCore.totalWinnerPoints -= sessionMap.winnerPoints[msg.sender]; sessionMap.winnerPoints[msg.sender] = 0; if(sessionMap.winnerPoints[msg.sender] == 0) { trigger = 1; } if(trigger == 1) { (bool sent1, ) = payable(msg.sender).call{value: principalReturn + payout}(""); require(sent1); emit ethClaimedByUser(msg.sender, payout); } else if(trigger == 2) { uint abcAmount = payout * 1e18 / (0.00005 ether + 0.000015 ether * IABCTreasury(Treasury).tokensClaimed() / 1000000); uint abcPayout = payout/2 * (1e18 / (0.00005 ether + 0.000015 ether * IABCTreasury(Treasury).tokensClaimed() / 1000000) + 1e18 / (0.00005 ether + 0.000015 ether * (IABCTreasury(Treasury).tokensClaimed() + abcAmount) / 1000000)); (bool sent2, ) = payable(msg.sender).call{value: principalReturn}(""); require(sent2); (bool sent3, ) = payable(Treasury).call{value: payout}(""); require(sent3); IABCTreasury(Treasury).sendABCToken(msg.sender,abcPayout); emit ethToPPExchange(msg.sender, payout, abcPayout); } if(sessionCore.totalWinnerPoints == 0) { sessionCheck.sessionProgression = 5; _executeEnd(nftAddress, tokenid); return 0; } if(sessionCheck.calls == sessionCore.uniqueVoters || block.timestamp > sessionCheck.timeFinalAppraisalSet + sessionCore.votingTime*2) { sessionCheck.sessionProgression = 5; _executeEnd(nftAddress, tokenid); return 0; } return 1; } /// @notice Custodial function to clear funds and remove session as child /// @dev Caller receives 10% of the funds that are meant to be cleared function endSession(address nftAddress, uint tokenid) public { VotingSessionCore storage sessionCore = NftSessionCore[nftNonce[nftAddress][tokenid]][nftAddress][tokenid]; VotingSessionChecks storage sessionCheck = NftSessionCheck[nftNonce[nftAddress][tokenid]][nftAddress][tokenid]; require((block.timestamp > sessionCheck.timeFinalAppraisalSet + sessionCore.votingTime * 2) || sessionCheck.sessionProgression == 5); _executeEnd(nftAddress, tokenid); } /* ======== INTERNAL FUNCTIONS ======== */ function _executeEnd(address nftAddress, uint tokenid) internal { VotingSessionCore storage sessionCore = NftSessionCore[nftNonce[nftAddress][tokenid]][nftAddress][tokenid]; VotingSessionChecks storage sessionCheck = NftSessionCheck[nftNonce[nftAddress][tokenid]][nftAddress][tokenid]; sessionCheck.sessionProgression = 6; uint tPayout = 90*sessionCore.totalSessionStake/100; uint cPayout = sessionCore.totalSessionStake - tPayout; (bool sent, ) = payable(Treasury).call{value: tPayout}(""); require(sent); (bool sent1, ) = payable(msg.sender).call{value: cPayout}(""); require(sent1); sessionCore.totalSessionStake = 0; emit sessionEnded(nftAddress, tokenid, nftNonce[nftAddress][tokenid]); } /* ======== FUND INCREASE ======== */ /// @notice allow any user to add additional bounty on session of their choice function addToBounty(address nftAddress, uint tokenid) payable external { require(NftSessionCore[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].endTime > block.timestamp); NftSessionCore[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].totalSessionStake += msg.value; } /// @notice allow any user to support any user of their choice function addToAppraisal(address nftAddress, uint tokenid, address user) payable external { require( NftSessionMap[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].voterCheck[user] == 1 && NftSessionCore[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].endTime > block.timestamp ); NftSessionMap[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].nftVotes[user].stake += msg.value; } /* ======== VIEW FUNCTIONS ======== */ function getStatus(address nftAddress, uint tokenid) view public returns(uint) { VotingSessionChecks storage sessionCheck = NftSessionCheck[nftNonce[nftAddress][tokenid]][nftAddress][tokenid]; return sessionCheck.sessionProgression; } function ethToAbc() view public returns(uint) { return 1e18 / (0.00005 ether + 0.000015 ether * IABCTreasury(Treasury).tokensClaimed() / 1000000); } function getEthPayout(address nftAddress, uint tokenid) view external returns(uint) { if(NftSessionCore[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].totalWinnerPoints == 0) { return 0; } return NftSessionCore[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].totalSessionStake * NftSessionMap[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].winnerPoints[msg.sender] / NftSessionCore[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].totalWinnerPoints; } function getVoterCheck(address nftAddress, uint tokenid, address _user) view external returns(uint) { return NftSessionMap[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].voterCheck[_user]; } /* ======== FALLBACK FUNCTIONS ======== */ receive() external payable {} fallback() external payable {} /* ======== MODIFIERS ======== */ modifier stopOverwrite( address nftAddress, uint tokenid ) { require( nftNonce[nftAddress][tokenid] == 0 || getStatus(nftAddress, tokenid) == 6 ); _; } modifier properVote( address nftAddress, uint tokenid ) { require( NftSessionMap[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].voterCheck[msg.sender] == 0 && msg.value >= 0.005 ether ); _; } modifier checkParticipation( address nftAddress, uint tokenid ) { require(NftSessionMap[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].voterCheck[msg.sender] > 0); _; } modifier checkHarvestLoss( address nftAddress, uint tokenid ) { require( NftSessionCheck[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].sessionProgression == 3 || block.timestamp > (NftSessionCheck[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].timeFinalAppraisalSet + NftSessionCore[nftNonce[nftAddress][tokenid]][nftAddress][tokenid].votingTime) ); _; } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.0; import "./interfaces/IERC20.sol"; /// @author Medici /// @title Treasury contract for Abacus contract ABCTreasury{ uint public nftsPriced; uint public profitGenerated; uint public tokensClaimed; address public auction; address public pricingSessionFactory; address public admin; address public ABCToken; /* ======== CONSTRUCTOR ======== */ constructor() { admin = msg.sender; } /* ======== ADMIN FUNCTIONS ======== */ function setABCTokenAddress(address _ABCToken) onlyAdmin external { require(ABCToken == address(0)); ABCToken = _ABCToken; } function withdraw(uint _amount) onlyAdmin external { (bool sent, ) = payable(msg.sender).call{value: _amount}(""); require(sent, "Failed to send Ether"); } function setAdmin(address _newAdmin) onlyAdmin external { admin = _newAdmin; } function setPricingFactory(address _pricingFactory) onlyAdmin external { pricingSessionFactory = _pricingFactory; } function setAuction(address _auction) onlyAdmin external { auction = _auction; } function getAuction() view external returns(address) { return auction; } /* ======== CHILD FUNCTIONS ======== */ function sendABCToken(address recipient, uint _amount) external { require(msg.sender == pricingSessionFactory || msg.sender == admin || msg.sender == auction); IERC20(ABCToken).transfer(recipient, _amount); tokensClaimed += _amount; } /// @notice Allows Factory contract to update the profit generated value function updateProfitGenerated( uint _amount ) isFactory external { profitGenerated += _amount; } /// @notice Allows Factory contract to update the amount of NFTs that have been priced function updateNftPriced() isFactory external { nftsPriced++; } /* ======== FALLBACKS ======== */ receive() external payable {} fallback() external payable {} /* ======== MODIFIERS ======== */ modifier onlyAdmin() { require(admin == msg.sender, "not admin"); _; } modifier isFactory() { require(msg.sender == pricingSessionFactory, "not factory"); _; } }
pragma solidity ^0.8.0; /** * @title Helps contracts guard against reentrancy attacks. * @author Remco Bloemen <remco@2π.com>, Eenae <[email protected]> * @dev If you mark a function `nonReentrant`, you should also * mark it `external`. */ contract ReentrancyGuard { /// @dev counter to allow mutex lock with only one SSTORE operation uint256 private _guardCounter = 1; /** * @dev Prevents a contract from calling itself, directly or indirectly. * If you mark a function `nonReentrant`, you should also * mark it `external`. Calling one `nonReentrant` function from * another is not supported. Instead, you can implement a * `private` function doing the actual work, and an `external` * wrapper marked as `nonReentrant`. */ modifier nonReentrant() { _guardCounter += 1; uint256 localCounter = _guardCounter; _; require(localCounter == _guardCounter); } }
pragma solidity ^0.8.0; interface IABCTreasury { function sendABCToken(address recipient, uint _amount) external; function updateUserPoints(address _user, uint _amountGained, uint _amountLost) external; function tokensClaimed() external view returns(uint); function updateNftPriced() external; function updateProfitGenerated(uint _amount) external; function getAuction() view external returns(address); }
pragma solidity ^0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.0; library sqrtLibrary { function sqrt(uint x) pure internal returns (uint y) { uint z = (x + 1) / 2; y = x; while (z < y) { y = z; z = (x / z + z) / 2; } } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.0; import "./sqrtLibrary.sol"; library PostSessionLibrary { using sqrtLibrary for *; ///////////////////// /// Base /// ///////////////////// function calculateBase(uint finalAppraisalValue, uint userAppraisalValue) pure internal returns(uint){ uint base = 1; uint userVal = 100 * userAppraisalValue; for(uint i=5; i >= 1; i--) { uint lowerOver = (100 + (i - 1)) * finalAppraisalValue; uint upperOver = (100 + i) * finalAppraisalValue; uint lowerUnder = (100 - i) * finalAppraisalValue; uint upperUnder = (100 - i + 1) * finalAppraisalValue; if (lowerOver < userVal && userVal <= upperOver) { return base; } if (lowerUnder < userVal && userVal <= upperUnder) { return base; } base += 1; } if(userVal == 100*finalAppraisalValue) { return 6; } return 0; } ///////////////////// /// Harvest /// ///////////////////// // function harvestUserOver(uint _stake, uint _userAppraisal, uint _finalAppraisal) pure internal returns(uint) { // return _stake * (_userAppraisal*100 - 105*_finalAppraisal)/(_finalAppraisal*100); // } // function harvestUserUnder(uint _stake, uint _userAppraisal, uint _finalAppraisal) pure internal returns(uint) { // return _stake * (95*_finalAppraisal - 100*_userAppraisal)/(_finalAppraisal*100); // } function harvest(uint _stake, uint _userAppraisal, uint _finalAppraisal) pure internal returns(uint) { if(_userAppraisal*100 > 105*_finalAppraisal) { return _stake * (_userAppraisal*100 - 105*_finalAppraisal)/(_finalAppraisal*100); } else if(_userAppraisal*100 < 95*_finalAppraisal) { return _stake * (95*_finalAppraisal - 100*_userAppraisal)/(_finalAppraisal*100); } else { return 0; } } ///////////////////// /// Commission /// ///////////////////// function setCommission(uint _treasurySize) pure internal returns(uint) { if (_treasurySize < 25000 ether) { return 500; } else if(_treasurySize >= 25000 ether && _treasurySize < 50000 ether) { return 400; } else if(_treasurySize >= 50000 ether && _treasurySize < 100000 ether) { return 300; } else if(_treasurySize >= 100000 ether && _treasurySize < 2000000 ether) { return 200; } else if(_treasurySize >= 200000 ether && _treasurySize < 400000 ether) { return 100; } else if(_treasurySize >= 400000 ether && _treasurySize < 700000 ether) { return 50; } else { return 25; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ABCToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"uint256","name":"_tokenid","type":"uint256"},{"internalType":"uint256","name":"_initialAppraisal","type":"uint256"}],"name":"changeInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstSession","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"highestBid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"highestBidder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"uint256","name":"_tokenid","type":"uint256"},{"internalType":"uint256","name":"_initailAppraisal","type":"uint256"}],"name":"newBid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"session","outputs":[{"internalType":"contract PricingSession","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setFirst","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_session","type":"address"}],"name":"setSessionContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"contract ABCTreasury","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userVote","outputs":[{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"uint256","name":"tokenid","type":"uint256"},{"internalType":"uint256","name":"intitialAppraisal","type":"uint256"},{"internalType":"uint256","name":"bid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"winners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052600160005534801561001557600080fd5b5033600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600660006101000a81548160ff021916908315150217905550611f05806100816000396000f3fe60806040526004361061012a5760003560e01c80639d6a0f28116100ab578063d8ac34ee1161006f578063d8ac34ee146103bf578063dc37596d146103e8578063f0f4426014610428578063f851a44014610451578063faf206c21461047c578063fe67a54b146104a75761012a565b80639d6a0f28146102c6578063a2fb1175146102f1578063a6fe2c551461032e578063affed0e014610357578063b14c63c5146103825761012a565b80634e71d92d116100f25780634e71d92d146102265780635711b8f91461023d5780635e3568b81461025457806361d027b31461027f57806375b37d92146102aa5761012a565b8063144fa6d71461012f5780632d16502f146101585780634223ac0f1461018157806344c816fa146101ac578063451df52e146101e9575b600080fd5b34801561013b57600080fd5b5061015660048036038101906101519190611981565b6104be565b005b34801561016457600080fd5b5061017f600480360381019061017a91906119aa565b61055c565b005b34801561018d57600080fd5b50610196610758565b6040516101a39190611b39565b60405180910390f35b3480156101b857600080fd5b506101d360048036038101906101ce9190611a22565b61077e565b6040516101e09190611c66565b60405180910390f35b3480156101f557600080fd5b50610210600480360381019061020b9190611a22565b610796565b60405161021d9190611b39565b60405180910390f35b34801561023257600080fd5b5061023b6107c9565b005b34801561024957600080fd5b50610252610a1b565b005b34801561026057600080fd5b50610269610ab9565b6040516102769190611c4b565b60405180910390f35b34801561028b57600080fd5b50610294610adf565b6040516102a19190611c30565b60405180910390f35b6102c460048036038101906102bf91906119aa565b610b05565b005b3480156102d257600080fd5b506102db610f92565b6040516102e89190611c15565b60405180910390f35b3480156102fd57600080fd5b5061031860048036038101906103139190611a22565b610fa5565b6040516103259190611b39565b60405180910390f35b34801561033a57600080fd5b50610355600480360381019061035091906119f9565b610fd8565b005b34801561036357600080fd5b5061036c61104f565b6040516103799190611c66565b60405180910390f35b34801561038e57600080fd5b506103a960048036038101906103a49190611a22565b611055565b6040516103b69190611c66565b60405180910390f35b3480156103cb57600080fd5b506103e660048036038101906103e19190611981565b61106d565b005b3480156103f457600080fd5b5061040f600480360381019061040a9190611a74565b61110b565b60405161041f9493929190611bd0565b60405180910390f35b34801561043457600080fd5b5061044f600480360381019061044a9190611981565b611168565b005b34801561045d57600080fd5b50610466611206565b6040516104739190611b39565b60405180910390f35b34801561048857600080fd5b5061049161122c565b60405161049e9190611c15565b60405180910390f35b3480156104b357600080fd5b506104bc61123f565b005b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461051857600080fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600073ffffffffffffffffffffffffffffffffffffffff16600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561060b57600080fd5b82600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001018190555080600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020181905550505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60086020528060005260406000206000915090505481565b600a6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60016000808282546107db9190611c8c565b9250508190555060008054905060003373ffffffffffffffffffffffffffffffffffffffff16600a6000600554815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461089957600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905061093c565b600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030154600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546109399190611d3c565b90505b80600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461098b9190611d3c565b9250508190555060003373ffffffffffffffffffffffffffffffffffffffff16826040516109b890611b24565b60006040518083038185875af1925050503d80600081146109f5576040519150601f19603f3d011682016040523d82523d6000602084013e6109fa565b606091505b5050905080610a0857600080fd5b50506000548114610a1857600080fd5b50565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a7557600080fd5b600660009054906101000a900460ff1615600660006101000a81548160ff02191690831515021790555060056000815480929190610ab290611e12565b9190505550565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6001600080828254610b179190611c8c565b925050819055506000805490506007600060055481526020019081526020016000205434118015610b545750600660009054906101000a900460ff165b610b5d57600080fd5b42600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555033600a6000600554815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503460076000600554815260200190815260200160002081905550600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030154600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610cb39190611d3c565b9250508190555060003373ffffffffffffffffffffffffffffffffffffffff16600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030154604051610d3590611b24565b60006040518083038185875af1925050503d8060008114610d72576040519150601f19603f3d011682016040523d82523d6000602084013e610d77565b606091505b5050905080610d8557600080fd5b84600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001018190555082600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002018190555034600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003018190555034600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610f769190611c8c565b92505081905550506000548114610f8c57600080fd5b50505050565b600660009054906101000a900460ff1681565b60096020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461103257600080fd5b80600660016101000a81548160ff02191690831515021790555050565b60055481565b60076020528060005260406000206000915090505481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110c757600080fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600d602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154905084565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111c257600080fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660019054906101000a900460ff1681565b60016000808282546112519190611c8c565b92505081905550600080549050600660019054906101000a900460ff16156112ce57600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112cd57600080fd5b5b42600860006005548152602001908152602001600020541080156112fe5750600660009054906101000a900460ff165b61130757600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ccc96b2730600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d57decfe6040518163ffffffff1660e01b815260040160206040518083038186803b1580156113ae57600080fd5b505afa1580156113c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e69190611a4b565b6611c37937e080006113f89190611ce2565b6040518363ffffffff1660e01b8152600401611415929190611b54565b600060405180830381600087803b15801561142f57600080fd5b505af1158015611443573d6000803e3d6000fd5b50505050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d31a584e600d600060055481526020019081526020016000206000600a6000600554815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600d600060055481526020019081526020016000206000600a6000600554815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154600d600060055481526020019081526020016000206000600a6000600554815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201546201518060006040518663ffffffff1660e01b815260040161166c959493929190611b7d565b600060405180830381600087803b15801561168657600080fd5b505af115801561169a573d6000803e3d6000fd5b505050506000600d600060055481526020019081526020016000206000600a6000600554815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003015490506000600d600060055481526020019081526020016000206000600a6000600554815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003018190555080600c6000600a6000600554815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118419190611d3c565b9250508190555062015180426118579190611c8c565b6008600060056000815461186a90611e12565b9190508190558152602001908152602001600020819055506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16826040516118ca90611b24565b60006040518083038185875af1925050503d8060008114611907576040519150601f19603f3d011682016040523d82523d6000602084013e61190c565b606091505b505090508061191a57600080fd5b5050600054811461192a57600080fd5b50565b60008135905061193c81611e8a565b92915050565b60008135905061195181611ea1565b92915050565b60008135905061196681611eb8565b92915050565b60008151905061197b81611eb8565b92915050565b60006020828403121561199357600080fd5b60006119a18482850161192d565b91505092915050565b6000806000606084860312156119bf57600080fd5b60006119cd8682870161192d565b93505060206119de86828701611957565b92505060406119ef86828701611957565b9150509250925092565b600060208284031215611a0b57600080fd5b6000611a1984828501611942565b91505092915050565b600060208284031215611a3457600080fd5b6000611a4284828501611957565b91505092915050565b600060208284031215611a5d57600080fd5b6000611a6b8482850161196c565b91505092915050565b60008060408385031215611a8757600080fd5b6000611a9585828601611957565b9250506020611aa68582860161192d565b9150509250929050565b611ab981611d70565b82525050565b611ac881611d82565b82525050565b611ad781611db8565b82525050565b611ae681611ddc565b82525050565b611af581611e00565b82525050565b6000611b08600083611c81565b9150600082019050919050565b611b1e81611dae565b82525050565b6000611b2f82611afb565b9150819050919050565b6000602082019050611b4e6000830184611ab0565b92915050565b6000604082019050611b696000830185611ab0565b611b766020830184611b15565b9392505050565b600060a082019050611b926000830188611ab0565b611b9f6020830187611b15565b611bac6040830186611b15565b611bb96060830185611aec565b611bc66080830184611ab0565b9695505050505050565b6000608082019050611be56000830187611ab0565b611bf26020830186611b15565b611bff6040830185611b15565b611c0c6060830184611b15565b95945050505050565b6000602082019050611c2a6000830184611abf565b92915050565b6000602082019050611c456000830184611ace565b92915050565b6000602082019050611c606000830184611add565b92915050565b6000602082019050611c7b6000830184611b15565b92915050565b600081905092915050565b6000611c9782611dae565b9150611ca283611dae565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611cd757611cd6611e5b565b5b828201905092915050565b6000611ced82611dae565b9150611cf883611dae565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611d3157611d30611e5b565b5b828202905092915050565b6000611d4782611dae565b9150611d5283611dae565b925082821015611d6557611d64611e5b565b5b828203905092915050565b6000611d7b82611d8e565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611dc382611dca565b9050919050565b6000611dd582611d8e565b9050919050565b6000611de782611dee565b9050919050565b6000611df982611d8e565b9050919050565b6000611e0b82611dae565b9050919050565b6000611e1d82611dae565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611e5057611e4f611e5b565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b611e9381611d70565b8114611e9e57600080fd5b50565b611eaa81611d82565b8114611eb557600080fd5b50565b611ec181611dae565b8114611ecc57600080fd5b5056fea26469706673582212207526933e541f4e8782baf9dad0cc4f98e71e4766866063f2e1981d02ff897e2664736f6c63430008000033
Deployed Bytecode
0x60806040526004361061012a5760003560e01c80639d6a0f28116100ab578063d8ac34ee1161006f578063d8ac34ee146103bf578063dc37596d146103e8578063f0f4426014610428578063f851a44014610451578063faf206c21461047c578063fe67a54b146104a75761012a565b80639d6a0f28146102c6578063a2fb1175146102f1578063a6fe2c551461032e578063affed0e014610357578063b14c63c5146103825761012a565b80634e71d92d116100f25780634e71d92d146102265780635711b8f91461023d5780635e3568b81461025457806361d027b31461027f57806375b37d92146102aa5761012a565b8063144fa6d71461012f5780632d16502f146101585780634223ac0f1461018157806344c816fa146101ac578063451df52e146101e9575b600080fd5b34801561013b57600080fd5b5061015660048036038101906101519190611981565b6104be565b005b34801561016457600080fd5b5061017f600480360381019061017a91906119aa565b61055c565b005b34801561018d57600080fd5b50610196610758565b6040516101a39190611b39565b60405180910390f35b3480156101b857600080fd5b506101d360048036038101906101ce9190611a22565b61077e565b6040516101e09190611c66565b60405180910390f35b3480156101f557600080fd5b50610210600480360381019061020b9190611a22565b610796565b60405161021d9190611b39565b60405180910390f35b34801561023257600080fd5b5061023b6107c9565b005b34801561024957600080fd5b50610252610a1b565b005b34801561026057600080fd5b50610269610ab9565b6040516102769190611c4b565b60405180910390f35b34801561028b57600080fd5b50610294610adf565b6040516102a19190611c30565b60405180910390f35b6102c460048036038101906102bf91906119aa565b610b05565b005b3480156102d257600080fd5b506102db610f92565b6040516102e89190611c15565b60405180910390f35b3480156102fd57600080fd5b5061031860048036038101906103139190611a22565b610fa5565b6040516103259190611b39565b60405180910390f35b34801561033a57600080fd5b50610355600480360381019061035091906119f9565b610fd8565b005b34801561036357600080fd5b5061036c61104f565b6040516103799190611c66565b60405180910390f35b34801561038e57600080fd5b506103a960048036038101906103a49190611a22565b611055565b6040516103b69190611c66565b60405180910390f35b3480156103cb57600080fd5b506103e660048036038101906103e19190611981565b61106d565b005b3480156103f457600080fd5b5061040f600480360381019061040a9190611a74565b61110b565b60405161041f9493929190611bd0565b60405180910390f35b34801561043457600080fd5b5061044f600480360381019061044a9190611981565b611168565b005b34801561045d57600080fd5b50610466611206565b6040516104739190611b39565b60405180910390f35b34801561048857600080fd5b5061049161122c565b60405161049e9190611c15565b60405180910390f35b3480156104b357600080fd5b506104bc61123f565b005b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461051857600080fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600073ffffffffffffffffffffffffffffffffffffffff16600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561060b57600080fd5b82600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001018190555080600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020181905550505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60086020528060005260406000206000915090505481565b600a6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60016000808282546107db9190611c8c565b9250508190555060008054905060003373ffffffffffffffffffffffffffffffffffffffff16600a6000600554815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461089957600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905061093c565b600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030154600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546109399190611d3c565b90505b80600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461098b9190611d3c565b9250508190555060003373ffffffffffffffffffffffffffffffffffffffff16826040516109b890611b24565b60006040518083038185875af1925050503d80600081146109f5576040519150601f19603f3d011682016040523d82523d6000602084013e6109fa565b606091505b5050905080610a0857600080fd5b50506000548114610a1857600080fd5b50565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a7557600080fd5b600660009054906101000a900460ff1615600660006101000a81548160ff02191690831515021790555060056000815480929190610ab290611e12565b9190505550565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6001600080828254610b179190611c8c565b925050819055506000805490506007600060055481526020019081526020016000205434118015610b545750600660009054906101000a900460ff165b610b5d57600080fd5b42600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555033600a6000600554815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503460076000600554815260200190815260200160002081905550600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030154600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610cb39190611d3c565b9250508190555060003373ffffffffffffffffffffffffffffffffffffffff16600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030154604051610d3590611b24565b60006040518083038185875af1925050503d8060008114610d72576040519150601f19603f3d011682016040523d82523d6000602084013e610d77565b606091505b5050905080610d8557600080fd5b84600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001018190555082600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002018190555034600d6000600554815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003018190555034600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610f769190611c8c565b92505081905550506000548114610f8c57600080fd5b50505050565b600660009054906101000a900460ff1681565b60096020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461103257600080fd5b80600660016101000a81548160ff02191690831515021790555050565b60055481565b60076020528060005260406000206000915090505481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110c757600080fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600d602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154905084565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111c257600080fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600660019054906101000a900460ff1681565b60016000808282546112519190611c8c565b92505081905550600080549050600660019054906101000a900460ff16156112ce57600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112cd57600080fd5b5b42600860006005548152602001908152602001600020541080156112fe5750600660009054906101000a900460ff165b61130757600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ccc96b2730600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d57decfe6040518163ffffffff1660e01b815260040160206040518083038186803b1580156113ae57600080fd5b505afa1580156113c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e69190611a4b565b6611c37937e080006113f89190611ce2565b6040518363ffffffff1660e01b8152600401611415929190611b54565b600060405180830381600087803b15801561142f57600080fd5b505af1158015611443573d6000803e3d6000fd5b50505050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d31a584e600d600060055481526020019081526020016000206000600a6000600554815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600d600060055481526020019081526020016000206000600a6000600554815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154600d600060055481526020019081526020016000206000600a6000600554815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201546201518060006040518663ffffffff1660e01b815260040161166c959493929190611b7d565b600060405180830381600087803b15801561168657600080fd5b505af115801561169a573d6000803e3d6000fd5b505050506000600d600060055481526020019081526020016000206000600a6000600554815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003015490506000600d600060055481526020019081526020016000206000600a6000600554815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003018190555080600c6000600a6000600554815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118419190611d3c565b9250508190555062015180426118579190611c8c565b6008600060056000815461186a90611e12565b9190508190558152602001908152602001600020819055506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16826040516118ca90611b24565b60006040518083038185875af1925050503d8060008114611907576040519150601f19603f3d011682016040523d82523d6000602084013e61190c565b606091505b505090508061191a57600080fd5b5050600054811461192a57600080fd5b50565b60008135905061193c81611e8a565b92915050565b60008135905061195181611ea1565b92915050565b60008135905061196681611eb8565b92915050565b60008151905061197b81611eb8565b92915050565b60006020828403121561199357600080fd5b60006119a18482850161192d565b91505092915050565b6000806000606084860312156119bf57600080fd5b60006119cd8682870161192d565b93505060206119de86828701611957565b92505060406119ef86828701611957565b9150509250925092565b600060208284031215611a0b57600080fd5b6000611a1984828501611942565b91505092915050565b600060208284031215611a3457600080fd5b6000611a4284828501611957565b91505092915050565b600060208284031215611a5d57600080fd5b6000611a6b8482850161196c565b91505092915050565b60008060408385031215611a8757600080fd5b6000611a9585828601611957565b9250506020611aa68582860161192d565b9150509250929050565b611ab981611d70565b82525050565b611ac881611d82565b82525050565b611ad781611db8565b82525050565b611ae681611ddc565b82525050565b611af581611e00565b82525050565b6000611b08600083611c81565b9150600082019050919050565b611b1e81611dae565b82525050565b6000611b2f82611afb565b9150819050919050565b6000602082019050611b4e6000830184611ab0565b92915050565b6000604082019050611b696000830185611ab0565b611b766020830184611b15565b9392505050565b600060a082019050611b926000830188611ab0565b611b9f6020830187611b15565b611bac6040830186611b15565b611bb96060830185611aec565b611bc66080830184611ab0565b9695505050505050565b6000608082019050611be56000830187611ab0565b611bf26020830186611b15565b611bff6040830185611b15565b611c0c6060830184611b15565b95945050505050565b6000602082019050611c2a6000830184611abf565b92915050565b6000602082019050611c456000830184611ace565b92915050565b6000602082019050611c606000830184611add565b92915050565b6000602082019050611c7b6000830184611b15565b92915050565b600081905092915050565b6000611c9782611dae565b9150611ca283611dae565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611cd757611cd6611e5b565b5b828201905092915050565b6000611ced82611dae565b9150611cf883611dae565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611d3157611d30611e5b565b5b828202905092915050565b6000611d4782611dae565b9150611d5283611dae565b925082821015611d6557611d64611e5b565b5b828203905092915050565b6000611d7b82611d8e565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611dc382611dca565b9050919050565b6000611dd582611d8e565b9050919050565b6000611de782611dee565b9050919050565b6000611df982611d8e565b9050919050565b6000611e0b82611dae565b9050919050565b6000611e1d82611dae565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611e5057611e4f611e5b565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b611e9381611d70565b8114611e9e57600080fd5b50565b611eaa81611d82565b8114611eb557600080fd5b50565b611ec181611dae565b8114611ecc57600080fd5b5056fea26469706673582212207526933e541f4e8782baf9dad0cc4f98e71e4766866063f2e1981d02ff897e2664736f6c63430008000033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $2,710.55 | 0.261 | $707.45 |
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.