More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 4,700 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim Trading Pr... | 20375051 | 153 days ago | IN | 0 ETH | 0.00106462 | ||||
Claim Trading Pr... | 20352251 | 156 days ago | IN | 0 ETH | 0.00220833 | ||||
Claim Trading Pr... | 20343604 | 157 days ago | IN | 0 ETH | 0.00217462 | ||||
Claim Trading Pr... | 20333362 | 159 days ago | IN | 0 ETH | 0.00533751 | ||||
Claim Trading Pr... | 20333020 | 159 days ago | IN | 0 ETH | 0.01137829 | ||||
Claim Trading Pr... | 20333018 | 159 days ago | IN | 0 ETH | 0.00606128 | ||||
Claim Trading Pr... | 20333016 | 159 days ago | IN | 0 ETH | 0.03176115 | ||||
Claim Trading Pr... | 19899118 | 220 days ago | IN | 0 ETH | 0.00610801 | ||||
Claim Trading Pr... | 18905386 | 359 days ago | IN | 0 ETH | 0.02385616 | ||||
Claim Trading Pr... | 18902035 | 359 days ago | IN | 0 ETH | 0.00459133 | ||||
Claim Trading Pr... | 18704264 | 387 days ago | IN | 0 ETH | 0.04092453 | ||||
Claim Trading Pr... | 18704256 | 387 days ago | IN | 0 ETH | 0.0151031 | ||||
Claim Trading Pr... | 18704247 | 387 days ago | IN | 0 ETH | 0.0801408 | ||||
Claim Trading Pr... | 14355905 | 1020 days ago | IN | 0 ETH | 0.02046877 | ||||
Claim Trading Pr... | 14355903 | 1020 days ago | IN | 0 ETH | 0.01982503 | ||||
Claim Trading Pr... | 14355901 | 1020 days ago | IN | 0 ETH | 0.0164244 | ||||
Claim Trading Pr... | 14355897 | 1020 days ago | IN | 0 ETH | 0.03422136 | ||||
Claim Trading Pr... | 14354584 | 1021 days ago | IN | 0 ETH | 0.02403453 | ||||
Claim Trading Pr... | 14354509 | 1021 days ago | IN | 0 ETH | 0.09912399 | ||||
Claim Trading Pr... | 13783234 | 1109 days ago | IN | 0 ETH | 0.07173975 | ||||
Claim Trading Pr... | 12708904 | 1277 days ago | IN | 0 ETH | 0.0017816 | ||||
Claim Trading Pr... | 12708904 | 1277 days ago | IN | 0 ETH | 0.00178155 | ||||
Claim Trading Pr... | 12708903 | 1277 days ago | IN | 0 ETH | 0.0017816 | ||||
Claim Trading Pr... | 12708903 | 1277 days ago | IN | 0 ETH | 0.00183984 | ||||
Claim Trading Pr... | 12708903 | 1277 days ago | IN | 0 ETH | 0.00170465 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ClaimTradingProceeds
Compiler Version
v0.4.20+commit.3155dd80
Optimization Enabled:
Yes with 500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-07-08 */ pragma solidity 0.4.20; contract IAugur { function createChildUniverse(bytes32 _parentPayoutDistributionHash, uint256[] _parentPayoutNumerators, bool _parentInvalid) public returns (IUniverse); function isKnownUniverse(IUniverse _universe) public view returns (bool); function trustedTransfer(ERC20 _token, address _from, address _to, uint256 _amount) public returns (bool); function logMarketCreated(bytes32 _topic, string _description, string _extraInfo, IUniverse _universe, address _market, address _marketCreator, bytes32[] _outcomes, int256 _minPrice, int256 _maxPrice, IMarket.MarketType _marketType) public returns (bool); function logMarketCreated(bytes32 _topic, string _description, string _extraInfo, IUniverse _universe, address _market, address _marketCreator, int256 _minPrice, int256 _maxPrice, IMarket.MarketType _marketType) public returns (bool); function logInitialReportSubmitted(IUniverse _universe, address _reporter, address _market, uint256 _amountStaked, bool _isDesignatedReporter, uint256[] _payoutNumerators, bool _invalid) public returns (bool); function disputeCrowdsourcerCreated(IUniverse _universe, address _market, address _disputeCrowdsourcer, uint256[] _payoutNumerators, uint256 _size, bool _invalid) public returns (bool); function logDisputeCrowdsourcerContribution(IUniverse _universe, address _reporter, address _market, address _disputeCrowdsourcer, uint256 _amountStaked) public returns (bool); function logDisputeCrowdsourcerCompleted(IUniverse _universe, address _market, address _disputeCrowdsourcer) public returns (bool); function logInitialReporterRedeemed(IUniverse _universe, address _reporter, address _market, uint256 _amountRedeemed, uint256 _repReceived, uint256 _reportingFeesReceived, uint256[] _payoutNumerators) public returns (bool); function logDisputeCrowdsourcerRedeemed(IUniverse _universe, address _reporter, address _market, uint256 _amountRedeemed, uint256 _repReceived, uint256 _reportingFeesReceived, uint256[] _payoutNumerators) public returns (bool); function logFeeWindowRedeemed(IUniverse _universe, address _reporter, uint256 _amountRedeemed, uint256 _reportingFeesReceived) public returns (bool); function logMarketFinalized(IUniverse _universe) public returns (bool); function logMarketMigrated(IMarket _market, IUniverse _originalUniverse) public returns (bool); function logReportingParticipantDisavowed(IUniverse _universe, IMarket _market) public returns (bool); function logMarketParticipantsDisavowed(IUniverse _universe) public returns (bool); function logOrderCanceled(IUniverse _universe, address _shareToken, address _sender, bytes32 _orderId, Order.Types _orderType, uint256 _tokenRefund, uint256 _sharesRefund) public returns (bool); function logOrderCreated(Order.Types _orderType, uint256 _amount, uint256 _price, address _creator, uint256 _moneyEscrowed, uint256 _sharesEscrowed, bytes32 _tradeGroupId, bytes32 _orderId, IUniverse _universe, address _shareToken) public returns (bool); function logOrderFilled(IUniverse _universe, address _shareToken, address _filler, bytes32 _orderId, uint256 _numCreatorShares, uint256 _numCreatorTokens, uint256 _numFillerShares, uint256 _numFillerTokens, uint256 _marketCreatorFees, uint256 _reporterFees, uint256 _amountFilled, bytes32 _tradeGroupId) public returns (bool); function logCompleteSetsPurchased(IUniverse _universe, IMarket _market, address _account, uint256 _numCompleteSets) public returns (bool); function logCompleteSetsSold(IUniverse _universe, IMarket _market, address _account, uint256 _numCompleteSets) public returns (bool); function logTradingProceedsClaimed(IUniverse _universe, address _shareToken, address _sender, address _market, uint256 _numShares, uint256 _numPayoutTokens, uint256 _finalTokenBalance) public returns (bool); function logUniverseForked() public returns (bool); function logFeeWindowTransferred(IUniverse _universe, address _from, address _to, uint256 _value) public returns (bool); function logReputationTokensTransferred(IUniverse _universe, address _from, address _to, uint256 _value) public returns (bool); function logDisputeCrowdsourcerTokensTransferred(IUniverse _universe, address _from, address _to, uint256 _value) public returns (bool); function logShareTokensTransferred(IUniverse _universe, address _from, address _to, uint256 _value) public returns (bool); function logReputationTokenBurned(IUniverse _universe, address _target, uint256 _amount) public returns (bool); function logReputationTokenMinted(IUniverse _universe, address _target, uint256 _amount) public returns (bool); function logShareTokenBurned(IUniverse _universe, address _target, uint256 _amount) public returns (bool); function logShareTokenMinted(IUniverse _universe, address _target, uint256 _amount) public returns (bool); function logFeeWindowBurned(IUniverse _universe, address _target, uint256 _amount) public returns (bool); function logFeeWindowMinted(IUniverse _universe, address _target, uint256 _amount) public returns (bool); function logDisputeCrowdsourcerTokensBurned(IUniverse _universe, address _target, uint256 _amount) public returns (bool); function logDisputeCrowdsourcerTokensMinted(IUniverse _universe, address _target, uint256 _amount) public returns (bool); function logFeeWindowCreated(IFeeWindow _feeWindow, uint256 _id) public returns (bool); function logFeeTokenTransferred(IUniverse _universe, address _from, address _to, uint256 _value) public returns (bool); function logFeeTokenBurned(IUniverse _universe, address _target, uint256 _amount) public returns (bool); function logFeeTokenMinted(IUniverse _universe, address _target, uint256 _amount) public returns (bool); function logTimestampSet(uint256 _newTimestamp) public returns (bool); function logInitialReporterTransferred(IUniverse _universe, IMarket _market, address _from, address _to) public returns (bool); function logMarketTransferred(IUniverse _universe, address _from, address _to) public returns (bool); function logMarketMailboxTransferred(IUniverse _universe, IMarket _market, address _from, address _to) public returns (bool); function logEscapeHatchChanged(bool _isOn) public returns (bool); } contract IControlled { function getController() public view returns (IController); function setController(IController _controller) public returns(bool); } contract Controlled is IControlled { IController internal controller; modifier onlyWhitelistedCallers { require(controller.assertIsWhitelisted(msg.sender)); _; } modifier onlyCaller(bytes32 _key) { require(msg.sender == controller.lookup(_key)); _; } modifier onlyControllerCaller { require(IController(msg.sender) == controller); _; } modifier onlyInGoodTimes { require(controller.stopInEmergency()); _; } modifier onlyInBadTimes { require(controller.onlyInEmergency()); _; } function Controlled() public { controller = IController(msg.sender); } function getController() public view returns(IController) { return controller; } function setController(IController _controller) public onlyControllerCaller returns(bool) { controller = _controller; return true; } } contract IController { function assertIsWhitelisted(address _target) public view returns(bool); function lookup(bytes32 _key) public view returns(address); function stopInEmergency() public view returns(bool); function onlyInEmergency() public view returns(bool); function getAugur() public view returns (IAugur); function getTimestamp() public view returns (uint256); } contract CashAutoConverter is Controlled { /** * @dev Convert any ETH provided in the transaction into Cash before the function executes and convert any remaining Cash balance into ETH after the function completes */ modifier convertToAndFromCash() { ethToCash(); _; cashToEth(); } function ethToCash() private returns (bool) { if (msg.value > 0) { ICash(controller.lookup("Cash")).depositEtherFor.value(msg.value)(msg.sender); } return true; } function cashToEth() private returns (bool) { ICash _cash = ICash(controller.lookup("Cash")); uint256 _tokenBalance = _cash.balanceOf(msg.sender); if (_tokenBalance > 0) { IAugur augur = controller.getAugur(); augur.trustedTransfer(_cash, msg.sender, this, _tokenBalance); _cash.withdrawEtherTo(msg.sender, _tokenBalance); } return true; } } contract IOwnable { function getOwner() public view returns (address); function transferOwnership(address newOwner) public returns (bool); } contract ITyped { function getTypeName() public view returns (bytes32); } contract Initializable { bool private initialized = false; modifier afterInitialized { require(initialized); _; } modifier beforeInitialized { require(!initialized); _; } function endInitialization() internal beforeInitialized returns (bool) { initialized = true; return true; } function getInitialized() public view returns (bool) { return initialized; } } contract MarketValidator is Controlled { modifier marketIsLegit(IMarket _market) { IUniverse _universe = _market.getUniverse(); require(controller.getAugur().isKnownUniverse(_universe)); require(_universe.isContainerForMarket(_market)); _; } } contract ReentrancyGuard { /** * @dev We use a single lock for the whole contract. */ bool private rentrancyLock = false; /** * @dev Prevents a contract from calling itself, directly or indirectly. * @notice 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 a `external` wrapper marked as `nonReentrant`. */ modifier nonReentrant() { require(!rentrancyLock); rentrancyLock = true; _; rentrancyLock = false; } } library SafeMathUint256 { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; require(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a); return c; } function min(uint256 a, uint256 b) internal pure returns (uint256) { if (a <= b) { return a; } else { return b; } } function max(uint256 a, uint256 b) internal pure returns (uint256) { if (a >= b) { return a; } else { return b; } } function getUint256Min() internal pure returns (uint256) { return 0; } function getUint256Max() internal pure returns (uint256) { return 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff; } function isMultipleOf(uint256 a, uint256 b) internal pure returns (bool) { return a % b == 0; } // Float [fixed point] Operations function fxpMul(uint256 a, uint256 b, uint256 base) internal pure returns (uint256) { return div(mul(a, b), base); } function fxpDiv(uint256 a, uint256 b, uint256 base) internal pure returns (uint256) { return div(mul(a, base), b); } } contract ERC20Basic { event Transfer(address indexed from, address indexed to, uint256 value); function balanceOf(address _who) public view returns (uint256); function transfer(address _to, uint256 _value) public returns (bool); function totalSupply() public view returns (uint256); } contract ERC20 is ERC20Basic { event Approval(address indexed owner, address indexed spender, uint256 value); function allowance(address _owner, address _spender) public view returns (uint256); function transferFrom(address _from, address _to, uint256 _value) public returns (bool); function approve(address _spender, uint256 _value) public returns (bool); } contract IFeeToken is ERC20, Initializable { function initialize(IFeeWindow _feeWindow) public returns (bool); function getFeeWindow() public view returns (IFeeWindow); function feeWindowBurn(address _target, uint256 _amount) public returns (bool); function mintForReportingParticipant(address _target, uint256 _amount) public returns (bool); } contract IFeeWindow is ITyped, ERC20 { function initialize(IUniverse _universe, uint256 _feeWindowId) public returns (bool); function getUniverse() public view returns (IUniverse); function getReputationToken() public view returns (IReputationToken); function getStartTime() public view returns (uint256); function getEndTime() public view returns (uint256); function getNumMarkets() public view returns (uint256); function getNumInvalidMarkets() public view returns (uint256); function getNumIncorrectDesignatedReportMarkets() public view returns (uint256); function getNumDesignatedReportNoShows() public view returns (uint256); function getFeeToken() public view returns (IFeeToken); function isActive() public view returns (bool); function isOver() public view returns (bool); function onMarketFinalized() public returns (bool); function buy(uint256 _attotokens) public returns (bool); function redeem(address _sender) public returns (bool); function redeemForReportingParticipant() public returns (bool); function mintFeeTokens(uint256 _amount) public returns (bool); function trustedUniverseBuy(address _buyer, uint256 _attotokens) public returns (bool); } contract IMailbox { function initialize(address _owner, IMarket _market) public returns (bool); function depositEther() public payable returns (bool); } contract IMarket is ITyped, IOwnable { enum MarketType { YES_NO, CATEGORICAL, SCALAR } function initialize(IUniverse _universe, uint256 _endTime, uint256 _feePerEthInAttoeth, ICash _cash, address _designatedReporterAddress, address _creator, uint256 _numOutcomes, uint256 _numTicks) public payable returns (bool _success); function derivePayoutDistributionHash(uint256[] _payoutNumerators, bool _invalid) public view returns (bytes32); function getUniverse() public view returns (IUniverse); function getFeeWindow() public view returns (IFeeWindow); function getNumberOfOutcomes() public view returns (uint256); function getNumTicks() public view returns (uint256); function getDenominationToken() public view returns (ICash); function getShareToken(uint256 _outcome) public view returns (IShareToken); function getMarketCreatorSettlementFeeDivisor() public view returns (uint256); function getForkingMarket() public view returns (IMarket _market); function getEndTime() public view returns (uint256); function getMarketCreatorMailbox() public view returns (IMailbox); function getWinningPayoutDistributionHash() public view returns (bytes32); function getWinningPayoutNumerator(uint256 _outcome) public view returns (uint256); function getReputationToken() public view returns (IReputationToken); function getFinalizationTime() public view returns (uint256); function getInitialReporterAddress() public view returns (address); function deriveMarketCreatorFeeAmount(uint256 _amount) public view returns (uint256); function isContainerForShareToken(IShareToken _shadyTarget) public view returns (bool); function isContainerForReportingParticipant(IReportingParticipant _reportingParticipant) public view returns (bool); function isInvalid() public view returns (bool); function finalize() public returns (bool); function designatedReporterWasCorrect() public view returns (bool); function designatedReporterShowed() public view returns (bool); function isFinalized() public view returns (bool); function finalizeFork() public returns (bool); function assertBalances() public view returns (bool); } contract IReportingParticipant { function getStake() public view returns (uint256); function getPayoutDistributionHash() public view returns (bytes32); function liquidateLosing() public returns (bool); function redeem(address _redeemer) public returns (bool); function isInvalid() public view returns (bool); function isDisavowed() public view returns (bool); function migrate() public returns (bool); function getPayoutNumerator(uint256 _outcome) public view returns (uint256); function getMarket() public view returns (IMarket); function getSize() public view returns (uint256); } contract IDisputeCrowdsourcer is IReportingParticipant, ERC20 { function initialize(IMarket market, uint256 _size, bytes32 _payoutDistributionHash, uint256[] _payoutNumerators, bool _invalid) public returns (bool); function contribute(address _participant, uint256 _amount) public returns (uint256); } contract IReputationToken is ITyped, ERC20 { function initialize(IUniverse _universe) public returns (bool); function migrateOut(IReputationToken _destination, uint256 _attotokens) public returns (bool); function migrateIn(address _reporter, uint256 _attotokens) public returns (bool); function trustedReportingParticipantTransfer(address _source, address _destination, uint256 _attotokens) public returns (bool); function trustedMarketTransfer(address _source, address _destination, uint256 _attotokens) public returns (bool); function trustedFeeWindowTransfer(address _source, address _destination, uint256 _attotokens) public returns (bool); function trustedUniverseTransfer(address _source, address _destination, uint256 _attotokens) public returns (bool); function getUniverse() public view returns (IUniverse); function getTotalMigrated() public view returns (uint256); function getTotalTheoreticalSupply() public view returns (uint256); function mintForReportingParticipant(uint256 _amountMigrated) public returns (bool); } contract IUniverse is ITyped { function initialize(IUniverse _parentUniverse, bytes32 _parentPayoutDistributionHash) external returns (bool); function fork() public returns (bool); function getParentUniverse() public view returns (IUniverse); function createChildUniverse(uint256[] _parentPayoutNumerators, bool _invalid) public returns (IUniverse); function getChildUniverse(bytes32 _parentPayoutDistributionHash) public view returns (IUniverse); function getReputationToken() public view returns (IReputationToken); function getForkingMarket() public view returns (IMarket); function getForkEndTime() public view returns (uint256); function getForkReputationGoal() public view returns (uint256); function getParentPayoutDistributionHash() public view returns (bytes32); function getDisputeRoundDurationInSeconds() public view returns (uint256); function getOrCreateFeeWindowByTimestamp(uint256 _timestamp) public returns (IFeeWindow); function getOrCreateCurrentFeeWindow() public returns (IFeeWindow); function getOrCreateNextFeeWindow() public returns (IFeeWindow); function getOpenInterestInAttoEth() public view returns (uint256); function getRepMarketCapInAttoeth() public view returns (uint256); function getTargetRepMarketCapInAttoeth() public view returns (uint256); function getOrCacheValidityBond() public returns (uint256); function getOrCacheDesignatedReportStake() public returns (uint256); function getOrCacheDesignatedReportNoShowBond() public returns (uint256); function getOrCacheReportingFeeDivisor() public returns (uint256); function getDisputeThresholdForFork() public view returns (uint256); function getInitialReportMinValue() public view returns (uint256); function calculateFloatingValue(uint256 _badMarkets, uint256 _totalMarkets, uint256 _targetDivisor, uint256 _previousValue, uint256 _defaultValue, uint256 _floor) public pure returns (uint256 _newValue); function getOrCacheMarketCreationCost() public returns (uint256); function getCurrentFeeWindow() public view returns (IFeeWindow); function getOrCreateFeeWindowBefore(IFeeWindow _feeWindow) public returns (IFeeWindow); function isParentOf(IUniverse _shadyChild) public view returns (bool); function updateTentativeWinningChildUniverse(bytes32 _parentPayoutDistributionHash) public returns (bool); function isContainerForFeeWindow(IFeeWindow _shadyTarget) public view returns (bool); function isContainerForMarket(IMarket _shadyTarget) public view returns (bool); function isContainerForReportingParticipant(IReportingParticipant _reportingParticipant) public view returns (bool); function isContainerForShareToken(IShareToken _shadyTarget) public view returns (bool); function isContainerForFeeToken(IFeeToken _shadyTarget) public view returns (bool); function addMarketTo() public returns (bool); function removeMarketFrom() public returns (bool); function decrementOpenInterest(uint256 _amount) public returns (bool); function decrementOpenInterestFromMarket(uint256 _amount) public returns (bool); function incrementOpenInterest(uint256 _amount) public returns (bool); function incrementOpenInterestFromMarket(uint256 _amount) public returns (bool); function getWinningChildUniverse() public view returns (IUniverse); function isForking() public view returns (bool); } library Reporting { uint256 private constant DESIGNATED_REPORTING_DURATION_SECONDS = 3 days; uint256 private constant DISPUTE_ROUND_DURATION_SECONDS = 7 days; uint256 private constant CLAIM_PROCEEDS_WAIT_TIME = 3 days; uint256 private constant FORK_DURATION_SECONDS = 60 days; uint256 private constant INITIAL_REP_SUPPLY = 11 * 10 ** 6 * 10 ** 18; // 11 Million REP uint256 private constant DEFAULT_VALIDITY_BOND = 1 ether / 100; uint256 private constant VALIDITY_BOND_FLOOR = 1 ether / 100; uint256 private constant DEFAULT_REPORTING_FEE_DIVISOR = 100; // 1% fees uint256 private constant MAXIMUM_REPORTING_FEE_DIVISOR = 10000; // Minimum .01% fees uint256 private constant MINIMUM_REPORTING_FEE_DIVISOR = 3; // Maximum 33.3~% fees. Note than anything less than a value of 2 here will likely result in bugs such as divide by 0 cases. uint256 private constant TARGET_INVALID_MARKETS_DIVISOR = 100; // 1% of markets are expected to be invalid uint256 private constant TARGET_INCORRECT_DESIGNATED_REPORT_MARKETS_DIVISOR = 100; // 1% of markets are expected to have an incorrect designate report uint256 private constant TARGET_DESIGNATED_REPORT_NO_SHOWS_DIVISOR = 100; // 1% of markets are expected to have an incorrect designate report uint256 private constant TARGET_REP_MARKET_CAP_MULTIPLIER = 15; // We multiply and divide by constants since we want to multiply by a fractional amount (7.5) uint256 private constant TARGET_REP_MARKET_CAP_DIVISOR = 2; uint256 private constant FORK_MIGRATION_PERCENTAGE_BONUS_DIVISOR = 20; // 5% bonus to any REP migrated during a fork function getDesignatedReportingDurationSeconds() internal pure returns (uint256) { return DESIGNATED_REPORTING_DURATION_SECONDS; } function getDisputeRoundDurationSeconds() internal pure returns (uint256) { return DISPUTE_ROUND_DURATION_SECONDS; } function getClaimTradingProceedsWaitTime() internal pure returns (uint256) { return CLAIM_PROCEEDS_WAIT_TIME; } function getForkDurationSeconds() internal pure returns (uint256) { return FORK_DURATION_SECONDS; } function getDefaultValidityBond() internal pure returns (uint256) { return DEFAULT_VALIDITY_BOND; } function getValidityBondFloor() internal pure returns (uint256) { return VALIDITY_BOND_FLOOR; } function getTargetInvalidMarketsDivisor() internal pure returns (uint256) { return TARGET_INVALID_MARKETS_DIVISOR; } function getTargetIncorrectDesignatedReportMarketsDivisor() internal pure returns (uint256) { return TARGET_INCORRECT_DESIGNATED_REPORT_MARKETS_DIVISOR; } function getTargetDesignatedReportNoShowsDivisor() internal pure returns (uint256) { return TARGET_DESIGNATED_REPORT_NO_SHOWS_DIVISOR; } function getTargetRepMarketCapMultiplier() internal pure returns (uint256) { return TARGET_REP_MARKET_CAP_MULTIPLIER; } function getTargetRepMarketCapDivisor() internal pure returns (uint256) { return TARGET_REP_MARKET_CAP_DIVISOR; } function getForkMigrationPercentageBonusDivisor() internal pure returns (uint256) { return FORK_MIGRATION_PERCENTAGE_BONUS_DIVISOR; } function getMaximumReportingFeeDivisor() internal pure returns (uint256) { return MAXIMUM_REPORTING_FEE_DIVISOR; } function getMinimumReportingFeeDivisor() internal pure returns (uint256) { return MINIMUM_REPORTING_FEE_DIVISOR; } function getDefaultReportingFeeDivisor() internal pure returns (uint256) { return DEFAULT_REPORTING_FEE_DIVISOR; } function getInitialREPSupply() internal pure returns (uint256) { return INITIAL_REP_SUPPLY; } } contract ICash is ERC20 { function depositEther() external payable returns(bool); function depositEtherFor(address _to) external payable returns(bool); function withdrawEther(uint256 _amount) external returns(bool); function withdrawEtherTo(address _to, uint256 _amount) external returns(bool); function withdrawEtherToIfPossible(address _to, uint256 _amount) external returns (bool); } contract IClaimTradingProceeds { } contract ClaimTradingProceeds is CashAutoConverter, ReentrancyGuard, MarketValidator, IClaimTradingProceeds { using SafeMathUint256 for uint256; function claimTradingProceeds(IMarket _market, address _shareHolder) marketIsLegit(_market) onlyInGoodTimes nonReentrant external returns(bool) { // NOTE: this requirement does _not_ enforce market finalization. That requirement occurs later on in this function when calling getWinningPayoutNumerator. When this requirement is removed we may want to consider explicitly requiring it here (or modifying this comment and keeping the gas savings) require(controller.getTimestamp() > _market.getFinalizationTime().add(Reporting.getClaimTradingProceedsWaitTime())); ICash _denominationToken = _market.getDenominationToken(); for (uint256 _outcome = 0; _outcome < _market.getNumberOfOutcomes(); ++_outcome) { IShareToken _shareToken = _market.getShareToken(_outcome); uint256 _numberOfShares = _shareToken.balanceOf(_shareHolder); uint256 _proceeds; uint256 _shareHolderShare; uint256 _creatorShare; uint256 _reporterShare; (_proceeds, _shareHolderShare, _creatorShare, _reporterShare) = divideUpWinnings(_market, _outcome, _numberOfShares); // always destroy shares as it gives a minor gas refund and is good for the network if (_numberOfShares > 0) { _shareToken.destroyShares(_shareHolder, _numberOfShares); logTradingProceedsClaimed(_market, _shareToken, _shareHolder, _numberOfShares, _shareHolderShare); } if (_shareHolderShare > 0) { require(_denominationToken.transferFrom(_market, this, _shareHolderShare)); _denominationToken.withdrawEtherTo(_shareHolder, _shareHolderShare); } if (_creatorShare > 0) { require(_denominationToken.transferFrom(_market, _market.getMarketCreatorMailbox(), _creatorShare)); } if (_reporterShare > 0) { require(_denominationToken.transferFrom(_market, _market.getUniverse().getOrCreateNextFeeWindow(), _reporterShare)); } } _market.assertBalances(); return true; } function logTradingProceedsClaimed(IMarket _market, address _shareToken, address _sender, uint256 _numShares, uint256 _numPayoutTokens) private returns (bool) { controller.getAugur().logTradingProceedsClaimed(_market.getUniverse(), _shareToken, _sender, _market, _numShares, _numPayoutTokens, _sender.balance.add(_numPayoutTokens)); return true; } function divideUpWinnings(IMarket _market, uint256 _outcome, uint256 _numberOfShares) public returns (uint256 _proceeds, uint256 _shareHolderShare, uint256 _creatorShare, uint256 _reporterShare) { _proceeds = calculateProceeds(_market, _outcome, _numberOfShares); _creatorShare = calculateCreatorFee(_market, _proceeds); _reporterShare = calculateReportingFee(_market, _proceeds); _shareHolderShare = _proceeds.sub(_creatorShare).sub(_reporterShare); return (_proceeds, _shareHolderShare, _creatorShare, _reporterShare); } function calculateProceeds(IMarket _market, uint256 _outcome, uint256 _numberOfShares) public view returns (uint256) { uint256 _payoutNumerator = _market.getWinningPayoutNumerator(_outcome); return _numberOfShares.mul(_payoutNumerator); } function calculateReportingFee(IMarket _market, uint256 _amount) public returns (uint256) { uint256 _reportingFeeDivisor = _market.getUniverse().getOrCacheReportingFeeDivisor(); return _amount.div(_reportingFeeDivisor); } function calculateCreatorFee(IMarket _market, uint256 _amount) public view returns (uint256) { return _market.deriveMarketCreatorFeeAmount(_amount); } } contract IOrders { function saveOrder(Order.Types _type, IMarket _market, uint256 _fxpAmount, uint256 _price, address _sender, uint256 _outcome, uint256 _moneyEscrowed, uint256 _sharesEscrowed, bytes32 _betterOrderId, bytes32 _worseOrderId, bytes32 _tradeGroupId) public returns (bytes32 _orderId); function removeOrder(bytes32 _orderId) public returns (bool); function getMarket(bytes32 _orderId) public view returns (IMarket); function getOrderType(bytes32 _orderId) public view returns (Order.Types); function getOutcome(bytes32 _orderId) public view returns (uint256); function getAmount(bytes32 _orderId) public view returns (uint256); function getPrice(bytes32 _orderId) public view returns (uint256); function getOrderCreator(bytes32 _orderId) public view returns (address); function getOrderSharesEscrowed(bytes32 _orderId) public view returns (uint256); function getOrderMoneyEscrowed(bytes32 _orderId) public view returns (uint256); function getBetterOrderId(bytes32 _orderId) public view returns (bytes32); function getWorseOrderId(bytes32 _orderId) public view returns (bytes32); function getBestOrderId(Order.Types _type, IMarket _market, uint256 _outcome) public view returns (bytes32); function getWorstOrderId(Order.Types _type, IMarket _market, uint256 _outcome) public view returns (bytes32); function getLastOutcomePrice(IMarket _market, uint256 _outcome) public view returns (uint256); function getOrderId(Order.Types _type, IMarket _market, uint256 _fxpAmount, uint256 _price, address _sender, uint256 _blockNumber, uint256 _outcome, uint256 _moneyEscrowed, uint256 _sharesEscrowed) public pure returns (bytes32); function getTotalEscrowed(IMarket _market) public view returns (uint256); function isBetterPrice(Order.Types _type, uint256 _price, bytes32 _orderId) public view returns (bool); function isWorsePrice(Order.Types _type, uint256 _price, bytes32 _orderId) public view returns (bool); function assertIsNotBetterPrice(Order.Types _type, uint256 _price, bytes32 _betterOrderId) public view returns (bool); function assertIsNotWorsePrice(Order.Types _type, uint256 _price, bytes32 _worseOrderId) public returns (bool); function recordFillOrder(bytes32 _orderId, uint256 _sharesFilled, uint256 _tokensFilled) public returns (bool); function setPrice(IMarket _market, uint256 _outcome, uint256 _price) external returns (bool); function incrementTotalEscrowed(IMarket _market, uint256 _amount) external returns (bool); function decrementTotalEscrowed(IMarket _market, uint256 _amount) external returns (bool); } contract IShareToken is ITyped, ERC20 { function initialize(IMarket _market, uint256 _outcome) external returns (bool); function createShares(address _owner, uint256 _amount) external returns (bool); function destroyShares(address, uint256 balance) external returns (bool); function getMarket() external view returns (IMarket); function getOutcome() external view returns (uint256); function trustedOrderTransfer(address _source, address _destination, uint256 _attotokens) public returns (bool); function trustedFillOrderTransfer(address _source, address _destination, uint256 _attotokens) public returns (bool); function trustedCancelOrderTransfer(address _source, address _destination, uint256 _attotokens) public returns (bool); } library Order { using SafeMathUint256 for uint256; enum Types { Bid, Ask } enum TradeDirections { Long, Short } struct Data { // Contracts IOrders orders; IMarket market; IAugur augur; // Order bytes32 id; address creator; uint256 outcome; Order.Types orderType; uint256 amount; uint256 price; uint256 sharesEscrowed; uint256 moneyEscrowed; bytes32 betterOrderId; bytes32 worseOrderId; } // // Constructor // // No validation is needed here as it is simply a librarty function for organizing data function create(IController _controller, address _creator, uint256 _outcome, Order.Types _type, uint256 _attoshares, uint256 _price, IMarket _market, bytes32 _betterOrderId, bytes32 _worseOrderId) internal view returns (Data) { require(_outcome < _market.getNumberOfOutcomes()); require(_price < _market.getNumTicks()); IOrders _orders = IOrders(_controller.lookup("Orders")); IAugur _augur = _controller.getAugur(); return Data({ orders: _orders, market: _market, augur: _augur, id: 0, creator: _creator, outcome: _outcome, orderType: _type, amount: _attoshares, price: _price, sharesEscrowed: 0, moneyEscrowed: 0, betterOrderId: _betterOrderId, worseOrderId: _worseOrderId }); } // // "public" functions // function getOrderId(Order.Data _orderData) internal view returns (bytes32) { if (_orderData.id == bytes32(0)) { bytes32 _orderId = _orderData.orders.getOrderId(_orderData.orderType, _orderData.market, _orderData.amount, _orderData.price, _orderData.creator, block.number, _orderData.outcome, _orderData.moneyEscrowed, _orderData.sharesEscrowed); require(_orderData.orders.getAmount(_orderId) == 0); _orderData.id = _orderId; } return _orderData.id; } function getOrderTradingTypeFromMakerDirection(Order.TradeDirections _creatorDirection) internal pure returns (Order.Types) { return (_creatorDirection == Order.TradeDirections.Long) ? Order.Types.Bid : Order.Types.Ask; } function getOrderTradingTypeFromFillerDirection(Order.TradeDirections _fillerDirection) internal pure returns (Order.Types) { return (_fillerDirection == Order.TradeDirections.Long) ? Order.Types.Ask : Order.Types.Bid; } function escrowFunds(Order.Data _orderData) internal returns (bool) { if (_orderData.orderType == Order.Types.Ask) { return escrowFundsForAsk(_orderData); } else if (_orderData.orderType == Order.Types.Bid) { return escrowFundsForBid(_orderData); } } function saveOrder(Order.Data _orderData, bytes32 _tradeGroupId) internal returns (bytes32) { return _orderData.orders.saveOrder(_orderData.orderType, _orderData.market, _orderData.amount, _orderData.price, _orderData.creator, _orderData.outcome, _orderData.moneyEscrowed, _orderData.sharesEscrowed, _orderData.betterOrderId, _orderData.worseOrderId, _tradeGroupId); } // // Private functions // function escrowFundsForBid(Order.Data _orderData) private returns (bool) { require(_orderData.moneyEscrowed == 0); require(_orderData.sharesEscrowed == 0); uint256 _attosharesToCover = _orderData.amount; uint256 _numberOfOutcomes = _orderData.market.getNumberOfOutcomes(); // Figure out how many almost-complete-sets (just missing `outcome` share) the creator has uint256 _attosharesHeld = 2**254; for (uint256 _i = 0; _i < _numberOfOutcomes; _i++) { if (_i != _orderData.outcome) { uint256 _creatorShareTokenBalance = _orderData.market.getShareToken(_i).balanceOf(_orderData.creator); _attosharesHeld = SafeMathUint256.min(_creatorShareTokenBalance, _attosharesHeld); } } // Take shares into escrow if they have any almost-complete-sets if (_attosharesHeld > 0) { _orderData.sharesEscrowed = SafeMathUint256.min(_attosharesHeld, _attosharesToCover); _attosharesToCover -= _orderData.sharesEscrowed; for (_i = 0; _i < _numberOfOutcomes; _i++) { if (_i != _orderData.outcome) { _orderData.market.getShareToken(_i).trustedOrderTransfer(_orderData.creator, _orderData.market, _orderData.sharesEscrowed); } } } // If not able to cover entire order with shares alone, then cover remaining with tokens if (_attosharesToCover > 0) { _orderData.moneyEscrowed = _attosharesToCover.mul(_orderData.price); require(_orderData.augur.trustedTransfer(_orderData.market.getDenominationToken(), _orderData.creator, _orderData.market, _orderData.moneyEscrowed)); } return true; } function escrowFundsForAsk(Order.Data _orderData) private returns (bool) { require(_orderData.moneyEscrowed == 0); require(_orderData.sharesEscrowed == 0); IShareToken _shareToken = _orderData.market.getShareToken(_orderData.outcome); uint256 _attosharesToCover = _orderData.amount; // Figure out how many shares of the outcome the creator has uint256 _attosharesHeld = _shareToken.balanceOf(_orderData.creator); // Take shares in escrow if user has shares if (_attosharesHeld > 0) { _orderData.sharesEscrowed = SafeMathUint256.min(_attosharesHeld, _attosharesToCover); _attosharesToCover -= _orderData.sharesEscrowed; _shareToken.trustedOrderTransfer(_orderData.creator, _orderData.market, _orderData.sharesEscrowed); } // If not able to cover entire order with shares alone, then cover remaining with tokens if (_attosharesToCover > 0) { _orderData.moneyEscrowed = _orderData.market.getNumTicks().sub(_orderData.price).mul(_attosharesToCover); require(_orderData.augur.trustedTransfer(_orderData.market.getDenominationToken(), _orderData.creator, _orderData.market, _orderData.moneyEscrowed)); } return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[{"name":"_market","type":"address"},{"name":"_amount","type":"uint256"}],"name":"calculateCreatorFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getController","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_market","type":"address"},{"name":"_amount","type":"uint256"}],"name":"calculateReportingFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_market","type":"address"},{"name":"_outcome","type":"uint256"},{"name":"_numberOfShares","type":"uint256"}],"name":"divideUpWinnings","outputs":[{"name":"_proceeds","type":"uint256"},{"name":"_shareHolderShare","type":"uint256"},{"name":"_creatorShare","type":"uint256"},{"name":"_reporterShare","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_market","type":"address"},{"name":"_shareHolder","type":"address"}],"name":"claimTradingProceeds","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_market","type":"address"},{"name":"_outcome","type":"uint256"},{"name":"_numberOfShares","type":"uint256"}],"name":"calculateProceeds","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]
Contract Creation Code
606060405260008054600160a060020a033316600160a860020a0319909116179055611056806100306000396000f3006060604052600436106100695763ffffffff60e060020a60003504166306065ced811461006e5780633018205f146100a257806381894407146100d157806392eefe9b146100f35780639f66cddf14610126578063b53709af14610176578063f2dc82661461019b575b600080fd5b341561007957600080fd5b610090600160a060020a03600435166024356101c0565b60405190815260200160405180910390f35b34156100ad57600080fd5b6100b5610232565b604051600160a060020a03909116815260200160405180910390f35b34156100dc57600080fd5b610090600160a060020a0360043516602435610241565b34156100fe57600080fd5b610112600160a060020a036004351661031f565b604051901515815260200160405180910390f35b341561013157600080fd5b61014b600160a060020a036004351660243560443561036d565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b341561018157600080fd5b610112600160a060020a03600435811690602435166103c3565b34156101a657600080fd5b610090600160a060020a0360043516602435604435610d9f565b600082600160a060020a031663f8c521258360006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561021157600080fd5b6102c65a03f1151561022257600080fd5b5050506040518051949350505050565b600054600160a060020a031690565b60008083600160a060020a031663870c426d6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561028a57600080fd5b6102c65a03f1151561029b57600080fd5b50505060405180519050600160a060020a0316638f93bffe6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156102ea57600080fd5b6102c65a03f115156102fb57600080fd5b505050604051805191506103179050838263ffffffff610e2716565b949350505050565b6000805433600160a060020a0390811691161461033b57600080fd5b5060008054600160a060020a03831673ffffffffffffffffffffffffffffffffffffffff199091161790556001919050565b60008060008061037e878787610d9f565b935061038a87856101c0565b91506103968785610241565b90506103b8816103ac868563ffffffff610e3e16565b9063ffffffff610e3e16565b925093509350935093565b60008060008060008060008060008a600081600160a060020a031663870c426d6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561041a57600080fd5b6102c65a03f1151561042b57600080fd5b505050604051805160008054919350600160a060020a039091169150634e94c82990604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561048257600080fd5b6102c65a03f1151561049357600080fd5b50505060405180519050600160a060020a0316638cfb8f218260006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156104f357600080fd5b6102c65a03f1151561050457600080fd5b50505060405180519050151561051957600080fd5b80600160a060020a0316639f7e1bf68360006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561057057600080fd5b6102c65a03f1151561058157600080fd5b50505060405180519050151561059657600080fd5b60008054600160a060020a0316906322763ae190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156105df57600080fd5b6102c65a03f115156105f057600080fd5b50505060405180519050151561060557600080fd5b60005474010000000000000000000000000000000000000000900460ff161561062d57600080fd5b6000805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001790556106da61066d610e53565b8e600160a060020a031663a0e16fed6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156106b357600080fd5b6102c65a03f115156106c457600080fd5b505050604051805191905063ffffffff610e5a16565b60008054600160a060020a03169063188ec35690604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561072357600080fd5b6102c65a03f1151561073457600080fd5b5050506040518051905011151561074a57600080fd5b8c600160a060020a031663df2a29da6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561079057600080fd5b6102c65a03f115156107a157600080fd5b50505060405180519a5060009950505b8c600160a060020a03166327ce5b8c6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156107f757600080fd5b6102c65a03f1151561080857600080fd5b50505060405180519050891015610d0d578c600160a060020a03166365957bf58a60006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561086857600080fd5b6102c65a03f1151561087957600080fd5b5050506040518051985050600160a060020a0388166370a082318d60006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156108db57600080fd5b6102c65a03f115156108ec57600080fd5b5050506040518051905096506109038d8a8961036d565b92985090965094509250600087111561099e5787600160a060020a031663d333d7cf8d8960006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561097357600080fd5b6102c65a03f1151561098457600080fd5b505050604051805190505061099c8d898e8a89610e73565b505b6000851115610ab05789600160a060020a03166323b872dd8e308860006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b1515610a1157600080fd5b6102c65a03f11515610a2257600080fd5b505050604051805190501515610a3757600080fd5b89600160a060020a0316631baffe388d8760006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610a9457600080fd5b6102c65a03f11515610aa557600080fd5b505050604051805150505b6000841115610ba95789600160a060020a03166323b872dd8e8f600160a060020a031663ed23378b6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610b0f57600080fd5b6102c65a03f11515610b2057600080fd5b505050604051805190508760006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b1515610b8357600080fd5b6102c65a03f11515610b9457600080fd5b505050604051805190501515610ba957600080fd5b6000831115610d025789600160a060020a03166323b872dd8e8f600160a060020a031663870c426d6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610c0857600080fd5b6102c65a03f11515610c1957600080fd5b50505060405180519050600160a060020a0316630cc8c9af6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610c6857600080fd5b6102c65a03f11515610c7957600080fd5b505050604051805190508660006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b1515610cdc57600080fd5b6102c65a03f11515610ced57600080fd5b505050604051805190501515610d0257600080fd5b8860010198506107b1565b8c600160a060020a031663a0695f246000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610d5357600080fd5b6102c65a03f11515610d6457600080fd5b505050604051805150506000805474ff0000000000000000000000000000000000000000191690555060019c9b505050505050505050505050565b60008084600160a060020a0316633c2648208560006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610df157600080fd5b6102c65a03f11515610e0257600080fd5b50505060405180519150610e1e9050838263ffffffff61100316565b95945050505050565b6000808284811515610e3557fe5b04949350505050565b600082821115610e4d57600080fd5b50900390565b6203f48090565b600082820183811015610e6c57600080fd5b9392505050565b60008054600160a060020a0316634e94c82982604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610ebb57600080fd5b6102c65a03f11515610ecc57600080fd5b50505060405180519050600160a060020a0316636051fa2c87600160a060020a031663870c426d6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610f2a57600080fd5b6102c65a03f11515610f3b57600080fd5b5050506040518051905087878a8888610f64600160a060020a038516318263ffffffff610e5a16565b60006040516020015260405160e060020a63ffffffff8a16028152600160a060020a03978816600482015295871660248701529386166044860152919094166064840152608483019390935260a482019290925260c481019190915260e401602060405180830381600087803b1515610fdc57600080fd5b6102c65a03f11515610fed57600080fd5b5050506040518051506001979650505050505050565b600082820283158061101f575082848281151561101c57fe5b04145b1515610e6c57600080fd00a165627a7a72305820bba1e65267feb56bc2caed6a6cbc82d3707e887b7863dd65f8ed8e9bdd0c2b7e0029
Deployed Bytecode
0x6060604052600436106100695763ffffffff60e060020a60003504166306065ced811461006e5780633018205f146100a257806381894407146100d157806392eefe9b146100f35780639f66cddf14610126578063b53709af14610176578063f2dc82661461019b575b600080fd5b341561007957600080fd5b610090600160a060020a03600435166024356101c0565b60405190815260200160405180910390f35b34156100ad57600080fd5b6100b5610232565b604051600160a060020a03909116815260200160405180910390f35b34156100dc57600080fd5b610090600160a060020a0360043516602435610241565b34156100fe57600080fd5b610112600160a060020a036004351661031f565b604051901515815260200160405180910390f35b341561013157600080fd5b61014b600160a060020a036004351660243560443561036d565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b341561018157600080fd5b610112600160a060020a03600435811690602435166103c3565b34156101a657600080fd5b610090600160a060020a0360043516602435604435610d9f565b600082600160a060020a031663f8c521258360006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561021157600080fd5b6102c65a03f1151561022257600080fd5b5050506040518051949350505050565b600054600160a060020a031690565b60008083600160a060020a031663870c426d6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561028a57600080fd5b6102c65a03f1151561029b57600080fd5b50505060405180519050600160a060020a0316638f93bffe6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156102ea57600080fd5b6102c65a03f115156102fb57600080fd5b505050604051805191506103179050838263ffffffff610e2716565b949350505050565b6000805433600160a060020a0390811691161461033b57600080fd5b5060008054600160a060020a03831673ffffffffffffffffffffffffffffffffffffffff199091161790556001919050565b60008060008061037e878787610d9f565b935061038a87856101c0565b91506103968785610241565b90506103b8816103ac868563ffffffff610e3e16565b9063ffffffff610e3e16565b925093509350935093565b60008060008060008060008060008a600081600160a060020a031663870c426d6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561041a57600080fd5b6102c65a03f1151561042b57600080fd5b505050604051805160008054919350600160a060020a039091169150634e94c82990604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561048257600080fd5b6102c65a03f1151561049357600080fd5b50505060405180519050600160a060020a0316638cfb8f218260006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156104f357600080fd5b6102c65a03f1151561050457600080fd5b50505060405180519050151561051957600080fd5b80600160a060020a0316639f7e1bf68360006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561057057600080fd5b6102c65a03f1151561058157600080fd5b50505060405180519050151561059657600080fd5b60008054600160a060020a0316906322763ae190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156105df57600080fd5b6102c65a03f115156105f057600080fd5b50505060405180519050151561060557600080fd5b60005474010000000000000000000000000000000000000000900460ff161561062d57600080fd5b6000805474ff00000000000000000000000000000000000000001916740100000000000000000000000000000000000000001790556106da61066d610e53565b8e600160a060020a031663a0e16fed6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156106b357600080fd5b6102c65a03f115156106c457600080fd5b505050604051805191905063ffffffff610e5a16565b60008054600160a060020a03169063188ec35690604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561072357600080fd5b6102c65a03f1151561073457600080fd5b5050506040518051905011151561074a57600080fd5b8c600160a060020a031663df2a29da6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561079057600080fd5b6102c65a03f115156107a157600080fd5b50505060405180519a5060009950505b8c600160a060020a03166327ce5b8c6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156107f757600080fd5b6102c65a03f1151561080857600080fd5b50505060405180519050891015610d0d578c600160a060020a03166365957bf58a60006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561086857600080fd5b6102c65a03f1151561087957600080fd5b5050506040518051985050600160a060020a0388166370a082318d60006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156108db57600080fd5b6102c65a03f115156108ec57600080fd5b5050506040518051905096506109038d8a8961036d565b92985090965094509250600087111561099e5787600160a060020a031663d333d7cf8d8960006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561097357600080fd5b6102c65a03f1151561098457600080fd5b505050604051805190505061099c8d898e8a89610e73565b505b6000851115610ab05789600160a060020a03166323b872dd8e308860006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b1515610a1157600080fd5b6102c65a03f11515610a2257600080fd5b505050604051805190501515610a3757600080fd5b89600160a060020a0316631baffe388d8760006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610a9457600080fd5b6102c65a03f11515610aa557600080fd5b505050604051805150505b6000841115610ba95789600160a060020a03166323b872dd8e8f600160a060020a031663ed23378b6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610b0f57600080fd5b6102c65a03f11515610b2057600080fd5b505050604051805190508760006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b1515610b8357600080fd5b6102c65a03f11515610b9457600080fd5b505050604051805190501515610ba957600080fd5b6000831115610d025789600160a060020a03166323b872dd8e8f600160a060020a031663870c426d6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610c0857600080fd5b6102c65a03f11515610c1957600080fd5b50505060405180519050600160a060020a0316630cc8c9af6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610c6857600080fd5b6102c65a03f11515610c7957600080fd5b505050604051805190508660006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b1515610cdc57600080fd5b6102c65a03f11515610ced57600080fd5b505050604051805190501515610d0257600080fd5b8860010198506107b1565b8c600160a060020a031663a0695f246000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610d5357600080fd5b6102c65a03f11515610d6457600080fd5b505050604051805150506000805474ff0000000000000000000000000000000000000000191690555060019c9b505050505050505050505050565b60008084600160a060020a0316633c2648208560006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610df157600080fd5b6102c65a03f11515610e0257600080fd5b50505060405180519150610e1e9050838263ffffffff61100316565b95945050505050565b6000808284811515610e3557fe5b04949350505050565b600082821115610e4d57600080fd5b50900390565b6203f48090565b600082820183811015610e6c57600080fd5b9392505050565b60008054600160a060020a0316634e94c82982604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610ebb57600080fd5b6102c65a03f11515610ecc57600080fd5b50505060405180519050600160a060020a0316636051fa2c87600160a060020a031663870c426d6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610f2a57600080fd5b6102c65a03f11515610f3b57600080fd5b5050506040518051905087878a8888610f64600160a060020a038516318263ffffffff610e5a16565b60006040516020015260405160e060020a63ffffffff8a16028152600160a060020a03978816600482015295871660248701529386166044860152919094166064840152608483019390935260a482019290925260c481019190915260e401602060405180830381600087803b1515610fdc57600080fd5b6102c65a03f11515610fed57600080fd5b5050506040518051506001979650505050505050565b600082820283158061101f575082848281151561101c57fe5b04145b1515610e6c57600080fd00a165627a7a72305820bba1e65267feb56bc2caed6a6cbc82d3707e887b7863dd65f8ed8e9bdd0c2b7e0029
Swarm Source
bzzr://bba1e65267feb56bc2caed6a6cbc82d3707e887b7863dd65f8ed8e9bdd0c2b7e
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.