More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 395 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Settle And Close | 12426320 | 1350 days ago | IN | 0 ETH | 0.0147215 | ||||
Settle And Close | 11418463 | 1505 days ago | IN | 0 ETH | 0.00496769 | ||||
Settle And Close | 11342761 | 1516 days ago | IN | 0 ETH | 0.00160469 | ||||
Settle And Close | 11225285 | 1534 days ago | IN | 0 ETH | 0.00252166 | ||||
Settle And Close | 11224513 | 1535 days ago | IN | 0 ETH | 0.00229278 | ||||
Settle And Close | 11223370 | 1535 days ago | IN | 0 ETH | 0.00374428 | ||||
Settle And Close | 11215675 | 1536 days ago | IN | 0 ETH | 0.00085043 | ||||
Settle And Close | 9959522 | 1730 days ago | IN | 0 ETH | 0.00023207 | ||||
Settle And Close | 9959518 | 1730 days ago | IN | 0 ETH | 0.00036788 | ||||
Settle And Close | 9959514 | 1730 days ago | IN | 0 ETH | 0.00056728 | ||||
Settle And Close | 9959507 | 1730 days ago | IN | 0 ETH | 0.00062567 | ||||
Settle And Close | 9959496 | 1730 days ago | IN | 0 ETH | 0.00068772 | ||||
Settle And Close | 9946853 | 1732 days ago | IN | 0 ETH | 0.00045788 | ||||
Settle And Close | 9933788 | 1734 days ago | IN | 0 ETH | 0.00038207 | ||||
Settle And Close | 9933782 | 1734 days ago | IN | 0 ETH | 0.00038201 | ||||
Settle And Close | 9933772 | 1734 days ago | IN | 0 ETH | 0.00045788 | ||||
Settle And Close | 9933760 | 1734 days ago | IN | 0 ETH | 0.00045781 | ||||
Settle And Close | 9933738 | 1734 days ago | IN | 0 ETH | 0.00018869 | ||||
Settle And Close | 9933734 | 1734 days ago | IN | 0 ETH | 0.00018869 | ||||
Settle And Close | 9933731 | 1734 days ago | IN | 0 ETH | 0.00018869 | ||||
Settle And Close | 9933731 | 1734 days ago | IN | 0 ETH | 0.00038151 | ||||
Settle And Close | 9875855 | 1743 days ago | IN | 0 ETH | 0.00096968 | ||||
Settle And Close | 9873270 | 1743 days ago | IN | 0 ETH | 0.00012721 | ||||
Settle And Close | 9856779 | 1746 days ago | IN | 0 ETH | 0.0001828 | ||||
Withdraw Fees | 9826385 | 1751 days ago | IN | 0 ETH | 0.00011555 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MarketCollateralPool
Compiler Version
v0.5.2+commit.1df8f40c
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2019-05-31 */ pragma solidity ^0.5.2; /** * @title SafeMath * @dev Unsigned math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on 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-solidity/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b); return c; } /** * @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); uint256 c = a - b; return c; } /** * @dev Adds two unsigned integers, reverts on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a); return c; } /** * @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo), * reverts when dividing by zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0); return a % b; } } /** * @title ERC20 interface * @dev see https://eips.ethereum.org/EIPS/eip-20 */ interface IERC20 { function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } library StringLib { /// @notice converts bytes32 into a string. /// @param bytesToConvert bytes32 array to convert function bytes32ToString(bytes32 bytesToConvert) internal pure returns (string memory) { bytes memory bytesArray = new bytes(32); for (uint256 i; i < 32; i++) { bytesArray[i] = bytesToConvert[i]; } return string(bytesArray); } }/* Copyright 2017-2019 Phillip A. Elsasser Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /// @title Math function library with overflow protection inspired by Open Zeppelin library MathLib { int256 constant INT256_MIN = int256((uint256(1) << 255)); int256 constant INT256_MAX = int256(~((uint256(1) << 255))); function multiply(uint256 a, uint256 b) pure internal returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "MathLib: multiplication overflow"); return c; } function divideFractional( uint256 a, uint256 numerator, uint256 denominator ) pure internal returns (uint256) { return multiply(a, numerator) / denominator; } function subtract(uint256 a, uint256 b) pure internal returns (uint256) { require(b <= a, "MathLib: subtraction overflow"); return a - b; } function add(uint256 a, uint256 b) pure internal returns (uint256) { uint256 c = a + b; require(c >= a, "MathLib: addition overflow"); return c; } /// @notice determines the amount of needed collateral for a given position (qty and price) /// @param priceFloor lowest price the contract is allowed to trade before expiration /// @param priceCap highest price the contract is allowed to trade before expiration /// @param qtyMultiplier multiplier for qty from base units /// @param longQty qty to redeem /// @param shortQty qty to redeem /// @param price of the trade function calculateCollateralToReturn( uint priceFloor, uint priceCap, uint qtyMultiplier, uint longQty, uint shortQty, uint price ) pure internal returns (uint) { uint neededCollateral = 0; uint maxLoss; if (longQty > 0) { // calculate max loss from entry price to floor if (price <= priceFloor) { maxLoss = 0; } else { maxLoss = subtract(price, priceFloor); } neededCollateral = multiply(multiply(maxLoss, longQty), qtyMultiplier); } if (shortQty > 0) { // calculate max loss from entry price to ceiling; if (price >= priceCap) { maxLoss = 0; } else { maxLoss = subtract(priceCap, price); } neededCollateral = add(neededCollateral, multiply(multiply(maxLoss, shortQty), qtyMultiplier)); } return neededCollateral; } /// @notice determines the amount of needed collateral for minting a long and short position token function calculateTotalCollateral( uint priceFloor, uint priceCap, uint qtyMultiplier ) pure internal returns (uint) { return multiply(subtract(priceCap, priceFloor), qtyMultiplier); } /// @notice calculates the fee in terms of base units of the collateral token per unit pair minted. function calculateFeePerUnit( uint priceFloor, uint priceCap, uint qtyMultiplier, uint feeInBasisPoints ) pure internal returns (uint) { uint midPrice = add(priceCap, priceFloor) / 2; return multiply(multiply(midPrice, qtyMultiplier), feeInBasisPoints) / 10000; } } /* Copyright 2017-2019 Phillip A. Elsasser Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /* Copyright 2017-2019 Phillip A. Elsasser Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor () internal { _owner = msg.sender; emit OwnershipTransferred(address(0), _owner); } /** * @return the address of the owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner()); _; } /** * @return true if `msg.sender` is the owner of the contract. */ function isOwner() public view returns (bool) { return msg.sender == _owner; } /** * @dev Allows the current owner to relinquish control of the contract. * It will not be possible to call the functions with the `onlyOwner` * modifier anymore. * @notice Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */ function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0)); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } /// @title MarketContract base contract implement all needed functionality for trading. /// @notice this is the abstract base contract that all contracts should inherit from to /// implement different oracle solutions. /// @author Phil Elsasser <[email protected]> contract MarketContract is Ownable { using StringLib for *; string public CONTRACT_NAME; address public COLLATERAL_TOKEN_ADDRESS; address public COLLATERAL_POOL_ADDRESS; uint public PRICE_CAP; uint public PRICE_FLOOR; uint public PRICE_DECIMAL_PLACES; // how to convert the pricing from decimal format (if valid) to integer uint public QTY_MULTIPLIER; // multiplier corresponding to the value of 1 increment in price to token base units uint public COLLATERAL_PER_UNIT; // required collateral amount for the full range of outcome tokens uint public COLLATERAL_TOKEN_FEE_PER_UNIT; uint public MKT_TOKEN_FEE_PER_UNIT; uint public EXPIRATION; uint public SETTLEMENT_DELAY = 1 days; address public LONG_POSITION_TOKEN; address public SHORT_POSITION_TOKEN; // state variables uint public lastPrice; uint public settlementPrice; uint public settlementTimeStamp; bool public isSettled = false; // events event UpdatedLastPrice(uint256 price); event ContractSettled(uint settlePrice); /// @param contractNames bytes32 array of names /// contractName name of the market contract /// longTokenSymbol symbol for the long token /// shortTokenSymbol symbol for the short token /// @param baseAddresses array of 2 addresses needed for our contract including: /// ownerAddress address of the owner of these contracts. /// collateralTokenAddress address of the ERC20 token that will be used for collateral and pricing /// collateralPoolAddress address of our collateral pool contract /// @param contractSpecs array of unsigned integers including: /// floorPrice minimum tradeable price of this contract, contract enters settlement if breached /// capPrice maximum tradeable price of this contract, contract enters settlement if breached /// priceDecimalPlaces number of decimal places to convert our queried price from a floating point to /// an integer /// qtyMultiplier multiply traded qty by this value from base units of collateral token. /// feeInBasisPoints fee amount in basis points (Collateral token denominated) for minting. /// mktFeeInBasisPoints fee amount in basis points (MKT denominated) for minting. /// expirationTimeStamp seconds from epoch that this contract expires and enters settlement constructor( bytes32[3] memory contractNames, address[3] memory baseAddresses, uint[7] memory contractSpecs ) public { PRICE_FLOOR = contractSpecs[0]; PRICE_CAP = contractSpecs[1]; require(PRICE_CAP > PRICE_FLOOR, "PRICE_CAP must be greater than PRICE_FLOOR"); PRICE_DECIMAL_PLACES = contractSpecs[2]; QTY_MULTIPLIER = contractSpecs[3]; EXPIRATION = contractSpecs[6]; require(EXPIRATION > now, "EXPIRATION must be in the future"); require(QTY_MULTIPLIER != 0,"QTY_MULTIPLIER cannot be 0"); COLLATERAL_TOKEN_ADDRESS = baseAddresses[1]; COLLATERAL_POOL_ADDRESS = baseAddresses[2]; COLLATERAL_PER_UNIT = MathLib.calculateTotalCollateral(PRICE_FLOOR, PRICE_CAP, QTY_MULTIPLIER); COLLATERAL_TOKEN_FEE_PER_UNIT = MathLib.calculateFeePerUnit( PRICE_FLOOR, PRICE_CAP, QTY_MULTIPLIER, contractSpecs[4] ); MKT_TOKEN_FEE_PER_UNIT = MathLib.calculateFeePerUnit( PRICE_FLOOR, PRICE_CAP, QTY_MULTIPLIER, contractSpecs[5] ); // create long and short tokens CONTRACT_NAME = contractNames[0].bytes32ToString(); PositionToken longPosToken = new PositionToken( "MARKET Protocol Long Position Token", contractNames[1].bytes32ToString(), uint8(PositionToken.MarketSide.Long) ); PositionToken shortPosToken = new PositionToken( "MARKET Protocol Short Position Token", contractNames[2].bytes32ToString(), uint8(PositionToken.MarketSide.Short) ); LONG_POSITION_TOKEN = address(longPosToken); SHORT_POSITION_TOKEN = address(shortPosToken); transferOwnership(baseAddresses[0]); } /* // EXTERNAL - onlyCollateralPool METHODS */ /// @notice called only by our collateral pool to create long and short position tokens /// @param qtyToMint qty in base units of how many short and long tokens to mint /// @param minter address of minter to receive tokens function mintPositionTokens( uint256 qtyToMint, address minter ) external onlyCollateralPool { // mint and distribute short and long position tokens to our caller PositionToken(LONG_POSITION_TOKEN).mintAndSendToken(qtyToMint, minter); PositionToken(SHORT_POSITION_TOKEN).mintAndSendToken(qtyToMint, minter); } /// @notice called only by our collateral pool to redeem long position tokens /// @param qtyToRedeem qty in base units of how many tokens to redeem /// @param redeemer address of person redeeming tokens function redeemLongToken( uint256 qtyToRedeem, address redeemer ) external onlyCollateralPool { // mint and distribute short and long position tokens to our caller PositionToken(LONG_POSITION_TOKEN).redeemToken(qtyToRedeem, redeemer); } /// @notice called only by our collateral pool to redeem short position tokens /// @param qtyToRedeem qty in base units of how many tokens to redeem /// @param redeemer address of person redeeming tokens function redeemShortToken( uint256 qtyToRedeem, address redeemer ) external onlyCollateralPool { // mint and distribute short and long position tokens to our caller PositionToken(SHORT_POSITION_TOKEN).redeemToken(qtyToRedeem, redeemer); } /* // Public METHODS */ /// @notice checks to see if a contract is settled, and that the settlement delay has passed function isPostSettlementDelay() public view returns (bool) { return isSettled && (now >= (settlementTimeStamp + SETTLEMENT_DELAY)); } /* // PRIVATE METHODS */ /// @dev checks our last query price to see if our contract should enter settlement due to it being past our // expiration date or outside of our tradeable ranges. function checkSettlement() internal { require(!isSettled, "Contract is already settled"); // already settled. uint newSettlementPrice; if (now > EXPIRATION) { // note: miners can cheat this by small increments of time (minutes, not hours) isSettled = true; // time based expiration has occurred. newSettlementPrice = lastPrice; } else if (lastPrice >= PRICE_CAP) { // price is greater or equal to our cap, settle to CAP price isSettled = true; newSettlementPrice = PRICE_CAP; } else if (lastPrice <= PRICE_FLOOR) { // price is lesser or equal to our floor, settle to FLOOR price isSettled = true; newSettlementPrice = PRICE_FLOOR; } if (isSettled) { settleContract(newSettlementPrice); } } /// @dev records our final settlement price and fires needed events. /// @param finalSettlementPrice final query price at time of settlement function settleContract(uint finalSettlementPrice) internal { settlementTimeStamp = now; settlementPrice = finalSettlementPrice; emit ContractSettled(finalSettlementPrice); } /// @notice only able to be called directly by our collateral pool which controls the position tokens /// for this contract! modifier onlyCollateralPool { require(msg.sender == COLLATERAL_POOL_ADDRESS, "Only callable from the collateral pool"); _; } } /* Copyright 2017-2019 Phillip A. Elsasser Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://eips.ethereum.org/EIPS/eip-20 * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits additional Approval events, allowing applications to reconstruct the allowance status for * all accounts just by listening to said events. Note that this isn't required by the specification, and other * compliant implementations may not do it. */ contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; uint256 private _totalSupply; /** * @dev Total number of tokens in existence */ function totalSupply() public view returns (uint256) { return _totalSupply; } /** * @dev Gets the balance of the specified address. * @param owner The address to query the balance of. * @return A uint256 representing the amount owned by the passed address. */ function balanceOf(address owner) public view returns (uint256) { return _balances[owner]; } /** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param owner address The address which owns the funds. * @param spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */ function allowance(address owner, address spender) public view returns (uint256) { return _allowed[owner][spender]; } /** * @dev Transfer token to a specified address * @param to The address to transfer to. * @param value The amount to be transferred. */ function transfer(address to, uint256 value) public returns (bool) { _transfer(msg.sender, to, value); return true; } /** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * 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 * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. */ function approve(address spender, uint256 value) public returns (bool) { _approve(msg.sender, spender, value); return true; } /** * @dev Transfer tokens from one address to another. * Note that while this function emits an Approval event, this is not required as per the specification, * and other compliant implementations may not emit the event. * @param from address The address which you want to send tokens from * @param to address The address which you want to transfer to * @param value uint256 the amount of tokens to be transferred */ function transferFrom(address from, address to, uint256 value) public returns (bool) { _transfer(from, to, value); _approve(from, msg.sender, _allowed[from][msg.sender].sub(value)); return true; } /** * @dev Increase the amount of tokens that an owner allowed to a spender. * approve should be called when _allowed[msg.sender][spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * Emits an Approval event. * @param spender The address which will spend the funds. * @param addedValue The amount of tokens to increase the allowance by. */ function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(msg.sender, spender, _allowed[msg.sender][spender].add(addedValue)); return true; } /** * @dev Decrease the amount of tokens that an owner allowed to a spender. * approve should be called when _allowed[msg.sender][spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * Emits an Approval event. * @param spender The address which will spend the funds. * @param subtractedValue The amount of tokens to decrease the allowance by. */ function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { _approve(msg.sender, spender, _allowed[msg.sender][spender].sub(subtractedValue)); return true; } /** * @dev Transfer token for a specified addresses * @param from The address to transfer from. * @param to The address to transfer to. * @param value The amount to be transferred. */ function _transfer(address from, address to, uint256 value) internal { require(to != address(0)); _balances[from] = _balances[from].sub(value); _balances[to] = _balances[to].add(value); emit Transfer(from, to, value); } /** * @dev Internal function that mints an amount of the token and assigns it to * an account. This encapsulates the modification of balances such that the * proper events are emitted. * @param account The account that will receive the created tokens. * @param value The amount that will be created. */ function _mint(address account, uint256 value) internal { require(account != address(0)); _totalSupply = _totalSupply.add(value); _balances[account] = _balances[account].add(value); emit Transfer(address(0), account, value); } /** * @dev Internal function that burns an amount of the token of a given * account. * @param account The account whose tokens will be burnt. * @param value The amount that will be burnt. */ function _burn(address account, uint256 value) internal { require(account != address(0)); _totalSupply = _totalSupply.sub(value); _balances[account] = _balances[account].sub(value); emit Transfer(account, address(0), value); } /** * @dev Approve an address to spend another addresses' tokens. * @param owner The address that owns the tokens. * @param spender The address that will spend the tokens. * @param value The number of tokens that can be spent. */ function _approve(address owner, address spender, uint256 value) internal { require(spender != address(0)); require(owner != address(0)); _allowed[owner][spender] = value; emit Approval(owner, spender, value); } /** * @dev Internal function that burns an amount of the token of a given * account, deducting from the sender's allowance for said account. Uses the * internal burn function. * Emits an Approval event (reflecting the reduced allowance). * @param account The account whose tokens will be burnt. * @param value The amount that will be burnt. */ function _burnFrom(address account, uint256 value) internal { _burn(account, value); _approve(account, msg.sender, _allowed[account][msg.sender].sub(value)); } } /// @title Position Token /// @notice A token that represents a claim to a collateral pool and a short or long position. /// The collateral pool acts as the owner of this contract and controls minting and redemption of these /// tokens based on locked collateral in the pool. /// NOTE: We eventually can move all of this logic into a library to avoid deploying all of the logic /// every time a new market contract is deployed. /// @author Phil Elsasser <[email protected]> contract PositionToken is ERC20, Ownable { string public name; string public symbol; uint8 public decimals; MarketSide public MARKET_SIDE; // 0 = Long, 1 = Short enum MarketSide { Long, Short} constructor( string memory tokenName, string memory tokenSymbol, uint8 marketSide ) public { name = tokenName; symbol = tokenSymbol; decimals = 5; MARKET_SIDE = MarketSide(marketSide); } /// @dev Called by our MarketContract (owner) to create a long or short position token. These tokens are minted, /// and then transferred to our recipient who is the party who is minting these tokens. The collateral pool /// is the only caller (acts as the owner) because collateral must be deposited / locked prior to minting of new /// position tokens /// @param qtyToMint quantity of position tokens to mint (in base units) /// @param recipient the person minting and receiving these position tokens. function mintAndSendToken( uint256 qtyToMint, address recipient ) external onlyOwner { _mint(recipient, qtyToMint); } /// @dev Called by our MarketContract (owner) when redemption occurs. This means that either a single user is redeeming /// both short and long tokens in order to claim their collateral, or the contract has settled, and only a single /// side of the tokens are needed to redeem (handled by the collateral pool) /// @param qtyToRedeem quantity of tokens to burn (remove from supply / circulation) /// @param redeemer the person redeeming these tokens (who are we taking the balance from) function redeemToken( uint256 qtyToRedeem, address redeemer ) external onlyOwner { _burn(redeemer, qtyToRedeem); } } /* Copyright 2017-2019 Phillip A. Elsasser Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ contract MarketContractRegistryInterface { function addAddressToWhiteList(address contractAddress) external; function isAddressWhiteListed(address contractAddress) external view returns (bool); } /** * Utility library of inline functions on addresses */ library Address { /** * Returns whether the target address is a contract * @dev This function will return false if invoked during the constructor of a contract, * as the code is not actually created until after the constructor finishes. * @param account address of the account to check * @return whether the target address is a contract */ function isContract(address account) internal view returns (bool) { uint256 size; // XXX Currently there is no better way to check if there is a contract in an address // than to check the size of the code at that address. // See https://ethereum.stackexchange.com/a/14016/36603 // for more details about how this works. // TODO Check this again before the Serenity release, because all addresses will be // contracts then. // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } } /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require((value == 0) || (token.allowance(address(this), spender) == 0)); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must equal true). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. require(address(token).isContract()); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool))); } } } /// @title MarketCollateralPool /// @notice This collateral pool houses all of the collateral for all market contracts currently in circulation. /// This pool facilitates locking of collateral and minting / redemption of position tokens for that collateral. /// @author Phil Elsasser <[email protected]> contract MarketCollateralPool is Ownable { using MathLib for uint; using MathLib for int; using SafeERC20 for ERC20; address public marketContractRegistry; address public mktToken; mapping(address => uint) public contractAddressToCollateralPoolBalance; // current balance of all collateral committed mapping(address => uint) public feesCollectedByTokenAddress; event TokensMinted( address indexed marketContract, address indexed user, address indexed feeToken, uint qtyMinted, uint collateralLocked, uint feesPaid ); event TokensRedeemed ( address indexed marketContract, address indexed user, uint longQtyRedeemed, uint shortQtyRedeemed, uint collateralUnlocked ); constructor(address marketContractRegistryAddress, address mktTokenAddress) public { marketContractRegistry = marketContractRegistryAddress; mktToken = mktTokenAddress; } /* // EXTERNAL METHODS */ /// @notice Called by a user that would like to mint a new set of long and short token for a specified /// market contract. This will transfer and lock the correct amount of collateral into the pool /// and issue them the requested qty of long and short tokens /// @param marketContractAddress address of the market contract to redeem tokens for /// @param qtyToMint quantity of long / short tokens to mint. /// @param isAttemptToPayInMKT if possible, attempt to pay fee's in MKT rather than collateral tokens function mintPositionTokens( address marketContractAddress, uint qtyToMint, bool isAttemptToPayInMKT ) external onlyWhiteListedAddress(marketContractAddress) { MarketContract marketContract = MarketContract(marketContractAddress); require(!marketContract.isSettled(), "Contract is already settled"); address collateralTokenAddress = marketContract.COLLATERAL_TOKEN_ADDRESS(); uint neededCollateral = MathLib.multiply(qtyToMint, marketContract.COLLATERAL_PER_UNIT()); // the user has selected to pay fees in MKT and those fees are non zero (allowed) OR // the user has selected not to pay fees in MKT, BUT the collateral token fees are disabled (0) AND the // MKT fees are enabled (non zero). (If both are zero, no fee exists) bool isPayFeesInMKT = (isAttemptToPayInMKT && marketContract.MKT_TOKEN_FEE_PER_UNIT() != 0) || (!isAttemptToPayInMKT && marketContract.MKT_TOKEN_FEE_PER_UNIT() != 0 && marketContract.COLLATERAL_TOKEN_FEE_PER_UNIT() == 0); uint feeAmount; uint totalCollateralTokenTransferAmount; address feeToken; if (isPayFeesInMKT) { // fees are able to be paid in MKT feeAmount = MathLib.multiply(qtyToMint, marketContract.MKT_TOKEN_FEE_PER_UNIT()); totalCollateralTokenTransferAmount = neededCollateral; feeToken = mktToken; // EXTERNAL CALL - transferring ERC20 tokens from sender to this contract. User must have called // ERC20.approve in order for this call to succeed. ERC20(mktToken).safeTransferFrom(msg.sender, address(this), feeAmount); } else { // fee are either zero, or being paid in the collateral token feeAmount = MathLib.multiply(qtyToMint, marketContract.COLLATERAL_TOKEN_FEE_PER_UNIT()); totalCollateralTokenTransferAmount = neededCollateral.add(feeAmount); feeToken = collateralTokenAddress; // we will transfer collateral and fees all at once below. } // EXTERNAL CALL - transferring ERC20 tokens from sender to this contract. User must have called // ERC20.approve in order for this call to succeed. ERC20(marketContract.COLLATERAL_TOKEN_ADDRESS()).safeTransferFrom(msg.sender, address(this), totalCollateralTokenTransferAmount); if (feeAmount != 0) { // update the fee's collected balance feesCollectedByTokenAddress[feeToken] = feesCollectedByTokenAddress[feeToken].add(feeAmount); } // Update the collateral pool locked balance. contractAddressToCollateralPoolBalance[marketContractAddress] = contractAddressToCollateralPoolBalance[ marketContractAddress ].add(neededCollateral); // mint and distribute short and long position tokens to our caller marketContract.mintPositionTokens(qtyToMint, msg.sender); emit TokensMinted( marketContractAddress, msg.sender, feeToken, qtyToMint, neededCollateral, feeAmount ); } /// @notice Called by a user that currently holds both short and long position tokens and would like to redeem them /// for their collateral. /// @param marketContractAddress address of the market contract to redeem tokens for /// @param qtyToRedeem quantity of long / short tokens to redeem. function redeemPositionTokens( address marketContractAddress, uint qtyToRedeem ) external onlyWhiteListedAddress(marketContractAddress) { MarketContract marketContract = MarketContract(marketContractAddress); marketContract.redeemLongToken(qtyToRedeem, msg.sender); marketContract.redeemShortToken(qtyToRedeem, msg.sender); // calculate collateral to return and update pool balance uint collateralToReturn = MathLib.multiply(qtyToRedeem, marketContract.COLLATERAL_PER_UNIT()); contractAddressToCollateralPoolBalance[marketContractAddress] = contractAddressToCollateralPoolBalance[ marketContractAddress ].subtract(collateralToReturn); // EXTERNAL CALL // transfer collateral back to user ERC20(marketContract.COLLATERAL_TOKEN_ADDRESS()).safeTransfer(msg.sender, collateralToReturn); emit TokensRedeemed( marketContractAddress, msg.sender, qtyToRedeem, qtyToRedeem, collateralToReturn ); } // @notice called by a user after settlement has occurred. This function will finalize all accounting around any // outstanding positions and return all remaining collateral to the caller. This should only be called after // settlement has occurred. /// @param marketContractAddress address of the MARKET Contract being traded. /// @param longQtyToRedeem qty to redeem of long tokens /// @param shortQtyToRedeem qty to redeem of short tokens function settleAndClose( address marketContractAddress, uint longQtyToRedeem, uint shortQtyToRedeem ) external onlyWhiteListedAddress(marketContractAddress) { MarketContract marketContract = MarketContract(marketContractAddress); require(marketContract.isPostSettlementDelay(), "Contract is not past settlement delay"); // burn tokens being redeemed. if (longQtyToRedeem > 0) { marketContract.redeemLongToken(longQtyToRedeem, msg.sender); } if (shortQtyToRedeem > 0) { marketContract.redeemShortToken(shortQtyToRedeem, msg.sender); } // calculate amount of collateral to return and update pool balances uint collateralToReturn = MathLib.calculateCollateralToReturn( marketContract.PRICE_FLOOR(), marketContract.PRICE_CAP(), marketContract.QTY_MULTIPLIER(), longQtyToRedeem, shortQtyToRedeem, marketContract.settlementPrice() ); contractAddressToCollateralPoolBalance[marketContractAddress] = contractAddressToCollateralPoolBalance[ marketContractAddress ].subtract(collateralToReturn); // return collateral tokens ERC20(marketContract.COLLATERAL_TOKEN_ADDRESS()).safeTransfer(msg.sender, collateralToReturn); emit TokensRedeemed( marketContractAddress, msg.sender, longQtyToRedeem, shortQtyToRedeem, collateralToReturn ); } /// @dev allows the owner to remove the fees paid into this contract for minting /// @param feeTokenAddress - address of the erc20 token fees have been paid in /// @param feeRecipient - Recipient address of fees function withdrawFees(address feeTokenAddress, address feeRecipient) public onlyOwner { uint feesAvailableForWithdrawal = feesCollectedByTokenAddress[feeTokenAddress]; require(feesAvailableForWithdrawal != 0, "No fees available for withdrawal"); require(feeRecipient != address(0), "Cannot send fees to null address"); feesCollectedByTokenAddress[feeTokenAddress] = 0; // EXTERNAL CALL ERC20(feeTokenAddress).safeTransfer(feeRecipient, feesAvailableForWithdrawal); } /// @dev allows the owner to update the mkt token address in use for fees /// @param mktTokenAddress address of new MKT token function setMKTTokenAddress(address mktTokenAddress) public onlyOwner { require(mktTokenAddress != address(0), "Cannot set MKT Token Address To Null"); mktToken = mktTokenAddress; } /// @dev allows the owner to update the mkt token address in use for fees /// @param marketContractRegistryAddress address of new contract registry function setMarketContractRegistryAddress(address marketContractRegistryAddress) public onlyOwner { require(marketContractRegistryAddress != address(0), "Cannot set Market Contract Registry Address To Null"); marketContractRegistry = marketContractRegistryAddress; } /* // MODIFIERS */ /// @notice only can be called with a market contract address that currently exists in our whitelist /// this ensure's it is a market contract that has been created by us and therefore has a uniquely created /// long and short token address. If it didn't we could have spoofed contracts minting tokens with a /// collateral token that wasn't the same as the intended token. modifier onlyWhiteListedAddress(address marketContractAddress) { require( MarketContractRegistryInterface(marketContractRegistry).isAddressWhiteListed(marketContractAddress), "Contract is not whitelisted" ); _; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"marketContractAddress","type":"address"},{"name":"longQtyToRedeem","type":"uint256"},{"name":"shortQtyToRedeem","type":"uint256"}],"name":"settleAndClose","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"marketContractAddress","type":"address"},{"name":"qtyToMint","type":"uint256"},{"name":"isAttemptToPayInMKT","type":"bool"}],"name":"mintPositionTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"feesCollectedByTokenAddress","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"mktTokenAddress","type":"address"}],"name":"setMKTTokenAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"mktToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"marketContractAddress","type":"address"},{"name":"qtyToRedeem","type":"uint256"}],"name":"redeemPositionTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"contractAddressToCollateralPoolBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"marketContractRegistry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"marketContractRegistryAddress","type":"address"}],"name":"setMarketContractRegistryAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"feeTokenAddress","type":"address"},{"name":"feeRecipient","type":"address"}],"name":"withdrawFees","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"marketContractRegistryAddress","type":"address"},{"name":"mktTokenAddress","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"marketContract","type":"address"},{"indexed":true,"name":"user","type":"address"},{"indexed":true,"name":"feeToken","type":"address"},{"indexed":false,"name":"qtyMinted","type":"uint256"},{"indexed":false,"name":"collateralLocked","type":"uint256"},{"indexed":false,"name":"feesPaid","type":"uint256"}],"name":"TokensMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"marketContract","type":"address"},{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"longQtyRedeemed","type":"uint256"},{"indexed":false,"name":"shortQtyRedeemed","type":"uint256"},{"indexed":false,"name":"collateralUnlocked","type":"uint256"}],"name":"TokensRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051604080612c388339810180604052604081101561003057600080fd5b810190808051906020019092919080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a381600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050612a9e8061019a6000396000f3fe608060405234801561001057600080fd5b5060043610610107576000357c0100000000000000000000000000000000000000000000000000000000900480638f32d59b116100a9578063ceaaa91511610083578063ceaaa915146103c0578063e5ac125f1461040a578063f25552781461044e578063f2fde38b146104b257610107565b80638f32d59b146102f8578063c1b214111461031a578063ca7b1b4d1461036857610107565b806354de298e116100e557806354de298e146102165780636b4a8ae01461025a578063715018a6146102a45780638da5cb5b146102ae57610107565b806310198cb71461010c578063125bb6a9146101645780631f2af365146101be575b600080fd5b6101626004803603606081101561012257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001909291905050506104f6565b005b6101bc6004803603606081101561017a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803515159060200190929190505050610d3f565b005b610200600480360360208110156101d457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611856565b6040518082815260200191505060405180910390f35b6102586004803603602081101561022c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061186e565b005b61026261194d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102ac611973565b005b6102b6611a45565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610300611a6e565b604051808215151515815260200191505060405180910390f35b6103666004803603604081101561033057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611ac5565b005b6103aa6004803603602081101561037e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061202d565b6040518082815260200191505060405180910390f35b6103c8612045565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61044c6004803603602081101561042057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061206b565b005b6104b06004803603604081101561046457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061214a565b005b6104f4600480360360208110156104c857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612334565b005b82600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad23de63826040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156105b257600080fd5b505afa1580156105c6573d6000803e3d6000fd5b505050506040513d60208110156105dc57600080fd5b81019080805190602001909291905050501515610661576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f436f6e7472616374206973206e6f742077686974656c6973746564000000000081525060200191505060405180910390fd5b60008490508073ffffffffffffffffffffffffffffffffffffffff1663bd220dae6040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b1580156106c857600080fd5b505afa1580156106dc573d6000803e3d6000fd5b505050506040513d60208110156106f257600080fd5b8101908080519060200190929190505050151561075a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612a1b6025913960400191505060405180910390fd5b600084111561081f578073ffffffffffffffffffffffffffffffffffffffff1663c25c444485336040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b15801561080657600080fd5b505af115801561081a573d6000803e3d6000fd5b505050505b60008311156108e4578073ffffffffffffffffffffffffffffffffffffffff16636d35946784336040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b1580156108cb57600080fd5b505af11580156108df573d6000803e3d6000fd5b505050505b6000610b648273ffffffffffffffffffffffffffffffffffffffff1663c32b1dfa6040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b15801561094b57600080fd5b505afa15801561095f573d6000803e3d6000fd5b505050506040513d602081101561097557600080fd5b81019080805190602001909291905050508373ffffffffffffffffffffffffffffffffffffffff1663b5471dee6040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b1580156109e857600080fd5b505afa1580156109fc573d6000803e3d6000fd5b505050506040513d6020811015610a1257600080fd5b81019080805190602001909291905050508473ffffffffffffffffffffffffffffffffffffffff1663ca361d676040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b158015610a8557600080fd5b505afa158015610a99573d6000803e3d6000fd5b505050506040513d6020811015610aaf57600080fd5b810190808051906020019092919050505088888773ffffffffffffffffffffffffffffffffffffffff1663f348e8b26040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b158015610b2457600080fd5b505afa158015610b38573d6000803e3d6000fd5b505050506040513d6020811015610b4e57600080fd5b8101908080519060200190929190505050612353565b9050610bb881600360008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123ef90919063ffffffff16565b600360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610cc233828473ffffffffffffffffffffffffffffffffffffffff1663323bb7756040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b158015610c6257600080fd5b505afa158015610c76573d6000803e3d6000fd5b505050506040513d6020811015610c8c57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff166124749092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167f75b6073dcb0773119aa05ecb4a5866ef9323b20a5b4e795d5a436532deeae4f787878560405180848152602001838152602001828152602001935050505060405180910390a3505050505050565b82600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad23de63826040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610dfb57600080fd5b505afa158015610e0f573d6000803e3d6000fd5b505050506040513d6020811015610e2557600080fd5b81019080805190602001909291905050501515610eaa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f436f6e7472616374206973206e6f742077686974656c6973746564000000000081525060200191505060405180910390fd5b60008490508073ffffffffffffffffffffffffffffffffffffffff16633270bb5b6040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b158015610f1157600080fd5b505afa158015610f25573d6000803e3d6000fd5b505050506040513d6020811015610f3b57600080fd5b8101908080519060200190929190505050151515610fc1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f436f6e747261637420697320616c726561647920736574746c6564000000000081525060200191505060405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff1663323bb7756040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b15801561102557600080fd5b505afa158015611039573d6000803e3d6000fd5b505050506040513d602081101561104f57600080fd5b81019080805190602001909291905050509050600061110a868473ffffffffffffffffffffffffffffffffffffffff1663e158e02d6040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b1580156110ca57600080fd5b505afa1580156110de573d6000803e3d6000fd5b505050506040513d60208110156110f457600080fd5b8101908080519060200190929190505050612561565b905060008580156111b8575060008473ffffffffffffffffffffffffffffffffffffffff1663db3fa7716040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b15801561117a57600080fd5b505afa15801561118e573d6000803e3d6000fd5b505050506040513d60208110156111a457600080fd5b810190808051906020019092919050505014155b80611312575085158015611269575060008473ffffffffffffffffffffffffffffffffffffffff1663db3fa7716040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b15801561122b57600080fd5b505afa15801561123f573d6000803e3d6000fd5b505050506040513d602081101561125557600080fd5b810190808051906020019092919050505014155b8015611311575060008473ffffffffffffffffffffffffffffffffffffffff16635c7c70596040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b1580156112d457600080fd5b505afa1580156112e8573d6000803e3d6000fd5b505050506040513d60208110156112fe57600080fd5b8101908080519060200190929190505050145b5b905060008060008315611443576113c58a8873ffffffffffffffffffffffffffffffffffffffff1663db3fa7716040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b15801561138557600080fd5b505afa158015611399573d6000803e3d6000fd5b505050506040513d60208110156113af57600080fd5b8101908080519060200190929190505050612561565b9250849150600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905061143e333085600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612608909392919063ffffffff16565b611504565b6114e98a8873ffffffffffffffffffffffffffffffffffffffff16635c7c70596040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b1580156114a957600080fd5b505afa1580156114bd573d6000803e3d6000fd5b505050506040513d60208110156114d357600080fd5b8101908080519060200190929190505050612561565b92506114fe838661272a90919063ffffffff16565b91508590505b6115cd3330848a73ffffffffffffffffffffffffffffffffffffffff1663323bb7756040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b15801561156c57600080fd5b505afa158015611580573d6000803e3d6000fd5b505050506040513d602081101561159657600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16612608909392919063ffffffff16565b60008314151561166d5761162983600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461272a90919063ffffffff16565b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6116bf85600360008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461272a90919063ffffffff16565b600360008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508673ffffffffffffffffffffffffffffffffffffffff1663cabd58348b336040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b1580156117a557600080fd5b505af11580156117b9573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff167f1e551210cd64464d2a2d2b08a00acc53863e5e3c0b7c943a9a8fe11d71a71ae28d898860405180848152602001838152602001828152602001935050505060405180910390a45050505050505050505050565b60046020528060005260406000206000915090505481565b611876611a6e565b151561188157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515611909576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806129f76024913960400191505060405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61197b611a6e565b151561198657600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b81600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad23de63826040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611b8157600080fd5b505afa158015611b95573d6000803e3d6000fd5b505050506040513d6020811015611bab57600080fd5b81019080805190602001909291905050501515611c30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f436f6e7472616374206973206e6f742077686974656c6973746564000000000081525060200191505060405180910390fd5b60008390508073ffffffffffffffffffffffffffffffffffffffff1663c25c444484336040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b158015611cd857600080fd5b505af1158015611cec573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff16636d35946784336040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b158015611d9357600080fd5b505af1158015611da7573d6000803e3d6000fd5b505050506000611e53848373ffffffffffffffffffffffffffffffffffffffff1663e158e02d6040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b158015611e1357600080fd5b505afa158015611e27573d6000803e3d6000fd5b505050506040513d6020811015611e3d57600080fd5b8101908080519060200190929190505050612561565b9050611ea781600360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123ef90919063ffffffff16565b600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611fb133828473ffffffffffffffffffffffffffffffffffffffff1663323bb7756040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b158015611f5157600080fd5b505afa158015611f65573d6000803e3d6000fd5b505050506040513d6020811015611f7b57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff166124749092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167f75b6073dcb0773119aa05ecb4a5866ef9323b20a5b4e795d5a436532deeae4f786878560405180848152602001838152602001828152602001935050505060405180910390a35050505050565b60036020528060005260406000206000915090505481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612073611a6e565b151561207e57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515612106576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526033815260200180612a406033913960400191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b612152611a6e565b151561215d57600080fd5b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811415151561221a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4e6f206665657320617661696c61626c6520666f72207769746864726177616c81525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156122bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f43616e6e6f742073656e64206665657320746f206e756c6c206164647265737381525060200191505060405180910390fd5b6000600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061232f82828573ffffffffffffffffffffffffffffffffffffffff166124749092919063ffffffff16565b505050565b61233c611a6e565b151561234757600080fd5b612350816127b4565b50565b600080600090506000808611156123995788841115156123765760009050612383565b612380848a6123ef565b90505b6123966123908288612561565b88612561565b91505b60008511156123e05787841015156123b457600090506123c1565b6123be88856123ef565b90505b6123dd826123d86123d28489612561565b8a612561565b61272a565b91505b81925050509695505050505050565b6000828211151515612469576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4d6174684c69623a207375627472616374696f6e206f766572666c6f7700000081525060200191505060405180910390fd5b818303905092915050565b61255c838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb90507c0100000000000000000000000000000000000000000000000000000000028484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506128ae565b505050565b6000808314156125745760009050612602565b6000828402905082848281151561258757fe5b041415156125fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4d6174684c69623a206d756c7469706c69636174696f6e206f766572666c6f7781525060200191505060405180910390fd5b809150505b92915050565b612724848573ffffffffffffffffffffffffffffffffffffffff166323b872dd90507c010000000000000000000000000000000000000000000000000000000002858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506128ae565b50505050565b60008082840190508381101515156127aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f4d6174684c69623a206164646974696f6e206f766572666c6f7700000000000081525060200191505060405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156127f057600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6128cd8273ffffffffffffffffffffffffffffffffffffffff166129e3565b15156128d857600080fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b6020831015156129295780518252602082019150602081019050602083039250612904565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461298b576040519150601f19603f3d011682016040523d82523d6000602084013e612990565b606091505b50915091508115156129a157600080fd5b6000815111156129dd578080602001905160208110156129c057600080fd5b810190808051906020019092919050505015156129dc57600080fd5b5b50505050565b600080823b90506000811191505091905056fe43616e6e6f7420736574204d4b5420546f6b656e204164647265737320546f204e756c6c436f6e7472616374206973206e6f74207061737420736574746c656d656e742064656c617943616e6e6f7420736574204d61726b657420436f6e7472616374205265676973747279204164647265737320546f204e756c6ca165627a7a72305820ae41a3d9f5676f4fd3607763d723cb29e1d2f155fc88ab36f87976ff74b86c7c002900000000000000000000000094772cc6e33b186bfdd0719a287f12d3ca816657000000000000000000000000ba23485a04b897c957918fde2dabd4867838140b
Deployed Bytecode
0x608060405234801561001057600080fd5b5060043610610107576000357c0100000000000000000000000000000000000000000000000000000000900480638f32d59b116100a9578063ceaaa91511610083578063ceaaa915146103c0578063e5ac125f1461040a578063f25552781461044e578063f2fde38b146104b257610107565b80638f32d59b146102f8578063c1b214111461031a578063ca7b1b4d1461036857610107565b806354de298e116100e557806354de298e146102165780636b4a8ae01461025a578063715018a6146102a45780638da5cb5b146102ae57610107565b806310198cb71461010c578063125bb6a9146101645780631f2af365146101be575b600080fd5b6101626004803603606081101561012257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001909291905050506104f6565b005b6101bc6004803603606081101561017a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803515159060200190929190505050610d3f565b005b610200600480360360208110156101d457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611856565b6040518082815260200191505060405180910390f35b6102586004803603602081101561022c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061186e565b005b61026261194d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102ac611973565b005b6102b6611a45565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610300611a6e565b604051808215151515815260200191505060405180910390f35b6103666004803603604081101561033057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611ac5565b005b6103aa6004803603602081101561037e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061202d565b6040518082815260200191505060405180910390f35b6103c8612045565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61044c6004803603602081101561042057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061206b565b005b6104b06004803603604081101561046457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061214a565b005b6104f4600480360360208110156104c857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612334565b005b82600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad23de63826040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156105b257600080fd5b505afa1580156105c6573d6000803e3d6000fd5b505050506040513d60208110156105dc57600080fd5b81019080805190602001909291905050501515610661576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f436f6e7472616374206973206e6f742077686974656c6973746564000000000081525060200191505060405180910390fd5b60008490508073ffffffffffffffffffffffffffffffffffffffff1663bd220dae6040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b1580156106c857600080fd5b505afa1580156106dc573d6000803e3d6000fd5b505050506040513d60208110156106f257600080fd5b8101908080519060200190929190505050151561075a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612a1b6025913960400191505060405180910390fd5b600084111561081f578073ffffffffffffffffffffffffffffffffffffffff1663c25c444485336040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b15801561080657600080fd5b505af115801561081a573d6000803e3d6000fd5b505050505b60008311156108e4578073ffffffffffffffffffffffffffffffffffffffff16636d35946784336040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b1580156108cb57600080fd5b505af11580156108df573d6000803e3d6000fd5b505050505b6000610b648273ffffffffffffffffffffffffffffffffffffffff1663c32b1dfa6040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b15801561094b57600080fd5b505afa15801561095f573d6000803e3d6000fd5b505050506040513d602081101561097557600080fd5b81019080805190602001909291905050508373ffffffffffffffffffffffffffffffffffffffff1663b5471dee6040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b1580156109e857600080fd5b505afa1580156109fc573d6000803e3d6000fd5b505050506040513d6020811015610a1257600080fd5b81019080805190602001909291905050508473ffffffffffffffffffffffffffffffffffffffff1663ca361d676040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b158015610a8557600080fd5b505afa158015610a99573d6000803e3d6000fd5b505050506040513d6020811015610aaf57600080fd5b810190808051906020019092919050505088888773ffffffffffffffffffffffffffffffffffffffff1663f348e8b26040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b158015610b2457600080fd5b505afa158015610b38573d6000803e3d6000fd5b505050506040513d6020811015610b4e57600080fd5b8101908080519060200190929190505050612353565b9050610bb881600360008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123ef90919063ffffffff16565b600360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610cc233828473ffffffffffffffffffffffffffffffffffffffff1663323bb7756040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b158015610c6257600080fd5b505afa158015610c76573d6000803e3d6000fd5b505050506040513d6020811015610c8c57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff166124749092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167f75b6073dcb0773119aa05ecb4a5866ef9323b20a5b4e795d5a436532deeae4f787878560405180848152602001838152602001828152602001935050505060405180910390a3505050505050565b82600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad23de63826040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610dfb57600080fd5b505afa158015610e0f573d6000803e3d6000fd5b505050506040513d6020811015610e2557600080fd5b81019080805190602001909291905050501515610eaa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f436f6e7472616374206973206e6f742077686974656c6973746564000000000081525060200191505060405180910390fd5b60008490508073ffffffffffffffffffffffffffffffffffffffff16633270bb5b6040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b158015610f1157600080fd5b505afa158015610f25573d6000803e3d6000fd5b505050506040513d6020811015610f3b57600080fd5b8101908080519060200190929190505050151515610fc1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f436f6e747261637420697320616c726561647920736574746c6564000000000081525060200191505060405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff1663323bb7756040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b15801561102557600080fd5b505afa158015611039573d6000803e3d6000fd5b505050506040513d602081101561104f57600080fd5b81019080805190602001909291905050509050600061110a868473ffffffffffffffffffffffffffffffffffffffff1663e158e02d6040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b1580156110ca57600080fd5b505afa1580156110de573d6000803e3d6000fd5b505050506040513d60208110156110f457600080fd5b8101908080519060200190929190505050612561565b905060008580156111b8575060008473ffffffffffffffffffffffffffffffffffffffff1663db3fa7716040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b15801561117a57600080fd5b505afa15801561118e573d6000803e3d6000fd5b505050506040513d60208110156111a457600080fd5b810190808051906020019092919050505014155b80611312575085158015611269575060008473ffffffffffffffffffffffffffffffffffffffff1663db3fa7716040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b15801561122b57600080fd5b505afa15801561123f573d6000803e3d6000fd5b505050506040513d602081101561125557600080fd5b810190808051906020019092919050505014155b8015611311575060008473ffffffffffffffffffffffffffffffffffffffff16635c7c70596040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b1580156112d457600080fd5b505afa1580156112e8573d6000803e3d6000fd5b505050506040513d60208110156112fe57600080fd5b8101908080519060200190929190505050145b5b905060008060008315611443576113c58a8873ffffffffffffffffffffffffffffffffffffffff1663db3fa7716040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b15801561138557600080fd5b505afa158015611399573d6000803e3d6000fd5b505050506040513d60208110156113af57600080fd5b8101908080519060200190929190505050612561565b9250849150600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905061143e333085600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612608909392919063ffffffff16565b611504565b6114e98a8873ffffffffffffffffffffffffffffffffffffffff16635c7c70596040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b1580156114a957600080fd5b505afa1580156114bd573d6000803e3d6000fd5b505050506040513d60208110156114d357600080fd5b8101908080519060200190929190505050612561565b92506114fe838661272a90919063ffffffff16565b91508590505b6115cd3330848a73ffffffffffffffffffffffffffffffffffffffff1663323bb7756040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b15801561156c57600080fd5b505afa158015611580573d6000803e3d6000fd5b505050506040513d602081101561159657600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff16612608909392919063ffffffff16565b60008314151561166d5761162983600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461272a90919063ffffffff16565b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6116bf85600360008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461272a90919063ffffffff16565b600360008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508673ffffffffffffffffffffffffffffffffffffffff1663cabd58348b336040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b1580156117a557600080fd5b505af11580156117b9573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff167f1e551210cd64464d2a2d2b08a00acc53863e5e3c0b7c943a9a8fe11d71a71ae28d898860405180848152602001838152602001828152602001935050505060405180910390a45050505050505050505050565b60046020528060005260406000206000915090505481565b611876611a6e565b151561188157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515611909576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806129f76024913960400191505060405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61197b611a6e565b151561198657600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b81600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad23de63826040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611b8157600080fd5b505afa158015611b95573d6000803e3d6000fd5b505050506040513d6020811015611bab57600080fd5b81019080805190602001909291905050501515611c30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f436f6e7472616374206973206e6f742077686974656c6973746564000000000081525060200191505060405180910390fd5b60008390508073ffffffffffffffffffffffffffffffffffffffff1663c25c444484336040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b158015611cd857600080fd5b505af1158015611cec573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff16636d35946784336040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b158015611d9357600080fd5b505af1158015611da7573d6000803e3d6000fd5b505050506000611e53848373ffffffffffffffffffffffffffffffffffffffff1663e158e02d6040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b158015611e1357600080fd5b505afa158015611e27573d6000803e3d6000fd5b505050506040513d6020811015611e3d57600080fd5b8101908080519060200190929190505050612561565b9050611ea781600360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123ef90919063ffffffff16565b600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611fb133828473ffffffffffffffffffffffffffffffffffffffff1663323bb7756040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040160206040518083038186803b158015611f5157600080fd5b505afa158015611f65573d6000803e3d6000fd5b505050506040513d6020811015611f7b57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff166124749092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167f75b6073dcb0773119aa05ecb4a5866ef9323b20a5b4e795d5a436532deeae4f786878560405180848152602001838152602001828152602001935050505060405180910390a35050505050565b60036020528060005260406000206000915090505481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612073611a6e565b151561207e57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515612106576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526033815260200180612a406033913960400191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b612152611a6e565b151561215d57600080fd5b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811415151561221a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4e6f206665657320617661696c61626c6520666f72207769746864726177616c81525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156122bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f43616e6e6f742073656e64206665657320746f206e756c6c206164647265737381525060200191505060405180910390fd5b6000600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061232f82828573ffffffffffffffffffffffffffffffffffffffff166124749092919063ffffffff16565b505050565b61233c611a6e565b151561234757600080fd5b612350816127b4565b50565b600080600090506000808611156123995788841115156123765760009050612383565b612380848a6123ef565b90505b6123966123908288612561565b88612561565b91505b60008511156123e05787841015156123b457600090506123c1565b6123be88856123ef565b90505b6123dd826123d86123d28489612561565b8a612561565b61272a565b91505b81925050509695505050505050565b6000828211151515612469576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4d6174684c69623a207375627472616374696f6e206f766572666c6f7700000081525060200191505060405180910390fd5b818303905092915050565b61255c838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb90507c0100000000000000000000000000000000000000000000000000000000028484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506128ae565b505050565b6000808314156125745760009050612602565b6000828402905082848281151561258757fe5b041415156125fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4d6174684c69623a206d756c7469706c69636174696f6e206f766572666c6f7781525060200191505060405180910390fd5b809150505b92915050565b612724848573ffffffffffffffffffffffffffffffffffffffff166323b872dd90507c010000000000000000000000000000000000000000000000000000000002858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506128ae565b50505050565b60008082840190508381101515156127aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f4d6174684c69623a206164646974696f6e206f766572666c6f7700000000000081525060200191505060405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156127f057600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6128cd8273ffffffffffffffffffffffffffffffffffffffff166129e3565b15156128d857600080fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b6020831015156129295780518252602082019150602081019050602083039250612904565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461298b576040519150601f19603f3d011682016040523d82523d6000602084013e612990565b606091505b50915091508115156129a157600080fd5b6000815111156129dd578080602001905160208110156129c057600080fd5b810190808051906020019092919050505015156129dc57600080fd5b5b50505050565b600080823b90506000811191505091905056fe43616e6e6f7420736574204d4b5420546f6b656e204164647265737320546f204e756c6c436f6e7472616374206973206e6f74207061737420736574746c656d656e742064656c617943616e6e6f7420736574204d61726b657420436f6e7472616374205265676973747279204164647265737320546f204e756c6ca165627a7a72305820ae41a3d9f5676f4fd3607763d723cb29e1d2f155fc88ab36f87976ff74b86c7c0029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000094772cc6e33b186bfdd0719a287f12d3ca816657000000000000000000000000ba23485a04b897c957918fde2dabd4867838140b
-----Decoded View---------------
Arg [0] : marketContractRegistryAddress (address): 0x94772CC6E33b186bfdd0719A287f12d3ca816657
Arg [1] : mktTokenAddress (address): 0xbA23485a04B897C957918FdE2DabD4867838140b
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000094772cc6e33b186bfdd0719a287f12d3ca816657
Arg [1] : 000000000000000000000000ba23485a04b897c957918fde2dabd4867838140b
Deployed Bytecode Sourcemap
35473:10754:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;35473:10754:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42347:1605;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;42347:1605:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;37152:3246;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;37152:3246:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;35828:59;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;35828:59:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;44856:204;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;44856:204:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;35656:23;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;9800:140;;;:::i;:::-;;9010:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;9345:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;40751:1115;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;40751:1115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;35688:70;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;35688:70:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;35612:37;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;45226:289;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;45226:289:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;44187:525;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;44187:525:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;10117:109;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;10117:109:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;42347:1605;42513:21;46082:22;;;;;;;;;;;46050:76;;;46127:21;46050:99;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;46050:99:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;46050:99:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;46050:99:0;;;;;;;;;;;;;;;;46028:176;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42552:29;42599:21;42552:69;;42640:14;:36;;;:38;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;42640:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42640:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;42640:38:0;;;;;;;;;;;;;;;;42632:88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42795:1;42777:15;:19;42773:111;;;42813:14;:30;;;42844:15;42861:10;42813:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;42813:59:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42813:59:0;;;;42773:111;42919:1;42900:16;:20;42896:114;;;42937:14;:31;;;42969:16;42987:10;42937:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;42937:61:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42937:61:0;;;;42896:114;43102:23;43128:284;43178:14;:26;;;:28;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;43178:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43178:28:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;43178:28:0;;;;;;;;;;;;;;;;43221:14;:24;;;:26;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;43221:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43221:26:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;43221:26:0;;;;;;;;;;;;;;;;43262:14;:29;;;:31;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;43262:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43262:31:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;43262:31:0;;;;;;;;;;;;;;;;43308:15;43338:16;43369:14;:30;;;:32;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;43369:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43369:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;43369:32:0;;;;;;;;;;;;;;;;43128:35;:284::i;:::-;43102:310;;43489:114;43584:18;43489:38;:85;43542:21;43489:85;;;;;;;;;;;;;;;;:94;;:114;;;;:::i;:::-;43425:38;:61;43464:21;43425:61;;;;;;;;;;;;;;;:178;;;;43653:93;43715:10;43727:18;43659:14;:39;;;:41;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;43659:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43659:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;43659:41:0;;;;;;;;;;;;;;;;43653:61;;;;:93;;;;;:::i;:::-;43829:10;43764:180;;43793:21;43764:180;;;43854:15;43884:16;43915:18;43764:180;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46215:1;;42347:1605;;;;:::o;37152:3246::-;37319:21;46082:22;;;;;;;;;;;46050:76;;;46127:21;46050:99;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;46050:99:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;46050:99:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;46050:99:0;;;;;;;;;;;;;;;;46028:176;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37360:29;37407:21;37360:69;;37449:14;:24;;;:26;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37449:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37449:26:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;37449:26:0;;;;;;;;;;;;;;;;37448:27;37440:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37520:30;37553:14;:39;;;:41;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37553:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37553:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;37553:41:0;;;;;;;;;;;;;;;;37520:74;;37605:21;37629:65;37646:9;37657:14;:34;;;:36;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37657:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37657:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;37657:36:0;;;;;;;;;;;;;;;;37629:16;:65::i;:::-;37605:89;;37992:19;38015;:80;;;;;38094:1;38051:14;:37;;;:39;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38051:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38051:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;38051:39:0;;;;;;;;;;;;;;;;:44;;38015:80;38014:250;;;;38115:19;38114:20;:81;;;;;38194:1;38151:14;:37;;;:39;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38151:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38151:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;38151:39:0;;;;;;;;;;;;;;;;:44;;38114:81;:149;;;;;38262:1;38212:14;:44;;;:46;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38212:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38212:46:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;38212:46:0;;;;;;;;;;;;;;;;:51;38114:149;38014:250;37992:272;;38277:14;38302:39;38352:16;38383:14;38379:912;;;38461:68;38478:9;38489:14;:37;;;:39;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38489:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38489:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;38489:39:0;;;;;;;;;;;;;;;;38461:16;:68::i;:::-;38449:80;;38581:16;38544:53;;38623:8;;;;;;;;;;;38612:19;;38824:70;38857:10;38877:4;38884:9;38830:8;;;;;;;;;;;38824:32;;;;:70;;;;;;:::i;:::-;38379:912;;;39001:75;39018:9;39029:14;:44;;;:46;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39029:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39029:46:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;39029:46:0;;;;;;;;;;;;;;;;39001:16;:75::i;:::-;38989:87;;39128:31;39149:9;39128:16;:20;;:31;;;;:::i;:::-;39091:68;;39185:22;39174:33;;38379:912;39471:128;39537:10;39557:4;39564:34;39477:14;:39;;;:41;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;39477:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39477:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;39477:41:0;;;;;;;;;;;;;;;;39471:65;;;;:128;;;;;;:::i;:::-;39629:1;39616:9;:14;;39612:190;;;39738:52;39780:9;39738:27;:37;39766:8;39738:37;;;;;;;;;;;;;;;;:41;;:52;;;;:::i;:::-;39698:27;:37;39726:8;39698:37;;;;;;;;;;;;;;;:92;;;;39612:190;39933:107;40023:16;39933:38;:85;39986:21;39933:85;;;;;;;;;;;;;;;;:89;;:107;;;;:::i;:::-;39869:38;:61;39908:21;39869:61;;;;;;;;;;;;;;;:171;;;;40130:14;:33;;;40164:9;40175:10;40130:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;40130:56:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;40130:56:0;;;;40292:8;40204:186;;40267:10;40204:186;;40231:21;40204:186;;;40315:9;40339:16;40370:9;40204:186;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46215:1;;;;;;;37152:3246;;;;:::o;35828:59::-;;;;;;;;;;;;;;;;;:::o;44856:204::-;9222:9;:7;:9::i;:::-;9214:18;;;;;;;;44972:1;44945:29;;:15;:29;;;;44937:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45037:15;45026:8;;:26;;;;;;;;;;;;;;;;;;44856:204;:::o;35656:23::-;;;;;;;;;;;;;:::o;9800:140::-;9222:9;:7;:9::i;:::-;9214:18;;;;;;;;9899:1;9862:40;;9883:6;;;;;;;;;;;9862:40;;;;;;;;;;;;9930:1;9913:6;;:19;;;;;;;;;;;;;;;;;;9800:140::o;9010:79::-;9048:7;9075:6;;;;;;;;;;;9068:13;;9010:79;:::o;9345:92::-;9385:4;9423:6;;;;;;;;;;;9409:20;;:10;:20;;;9402:27;;9345:92;:::o;40751:1115::-;40887:21;46082:22;;;;;;;;;;;46050:76;;;46127:21;46050:99;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;46050:99:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;46050:99:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;46050:99:0;;;;;;;;;;;;;;;;46028:176;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40926:29;40973:21;40926:69;;41008:14;:30;;;41039:11;41052:10;41008:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41008:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41008:55:0;;;;41074:14;:31;;;41106:11;41119:10;41074:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41074:56:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41074:56:0;;;;41210:23;41236:67;41253:11;41266:14;:34;;;:36;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41266:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41266:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;41266:36:0;;;;;;;;;;;;;;;;41236:16;:67::i;:::-;41210:93;;41378:114;41473:18;41378:38;:85;41431:21;41378:85;;;;;;;;;;;;;;;;:94;;:114;;;;:::i;:::-;41314:38;:61;41353:21;41314:61;;;;;;;;;;;;;;;:178;;;;41576:93;41638:10;41650:18;41582:14;:39;;;:41;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41582:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41582:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;41582:41:0;;;;;;;;;;;;;;;;41576:61;;;;:93;;;;;:::i;:::-;41752:10;41687:171;;41716:21;41687:171;;;41777:11;41803;41829:18;41687:171;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46215:1;;40751:1115;;;:::o;35688:70::-;;;;;;;;;;;;;;;;;:::o;35612:37::-;;;;;;;;;;;;;:::o;45226:289::-;9222:9;:7;:9::i;:::-;9214:18;;;;;;;;45384:1;45343:43;;:29;:43;;;;45335:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45478:29;45453:22;;:54;;;;;;;;;;;;;;;;;;45226:289;:::o;44187:525::-;9222:9;:7;:9::i;:::-;9214:18;;;;;;;;44284:31;44318:27;:44;44346:15;44318:44;;;;;;;;;;;;;;;;44284:78;;44411:1;44381:26;:31;;44373:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44492:1;44468:26;;:12;:26;;;;44460:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44589:1;44542:27;:44;44570:15;44542:44;;;;;;;;;;;;;;;:48;;;;44627:77;44663:12;44677:26;44633:15;44627:35;;;;:77;;;;;:::i;:::-;9243:1;44187:525;;:::o;10117:109::-;9222:9;:7;:9::i;:::-;9214:18;;;;;;;;10190:28;10209:8;10190:18;:28::i;:::-;10117:109;:::o;5268:1027::-;5482:4;5504:21;5528:1;5504:25;;5540:12;5577:1;5567:7;:11;5563:328;;;5658:10;5649:5;:19;;5645:149;;;5699:1;5689:11;;5645:149;;;5751:27;5760:5;5767:10;5751:8;:27::i;:::-;5741:37;;5645:149;5827:52;5836:26;5845:7;5854;5836:8;:26::i;:::-;5865:13;5827:8;:52::i;:::-;5808:71;;5563:328;5918:1;5907:8;:12;5903:351;;;6001:8;5992:5;:17;;5988:145;;;6040:1;6030:11;;5988:145;;;6092:25;6101:8;6111:5;6092:8;:25::i;:::-;6082:35;;5988:145;6166:76;6170:16;6188:53;6197:27;6206:7;6215:8;6197;:27::i;:::-;6227:13;6188:8;:53::i;:::-;6166:3;:76::i;:::-;6147:95;;5903:351;6271:16;6264:23;;;;5268:1027;;;;;;;;:::o;4457:162::-;4520:7;4553:1;4548;:6;;4540:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4610:1;4606;:5;4599:12;;4457:162;;;;:::o;32401:176::-;32484:85;32503:5;32533;:14;;;:23;;;;32558:2;32562:5;32510:58;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;32510:58:0;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;32510:58:0;32484:18;:85::i;:::-;32401:176;;;:::o;3976:255::-;4039:7;4068:1;4063;:6;4059:47;;;4093:1;4086:8;;;;4059:47;4118:9;4134:1;4130;:5;4118:17;;4163:1;4158;4154;:5;;;;;;;;:10;4146:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4222:1;4215:8;;;3976:255;;;;;:::o;32585:204::-;32686:95;32705:5;32735;:18;;;:27;;;;32764:4;32770:2;32774:5;32712:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;32712:68:0;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;32712:68:0;32686:18;:95::i;:::-;32585:204;;;;:::o;4627:178::-;4685:7;4705:9;4721:1;4717;:5;4705:17;;4746:1;4741;:6;;4733:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4796:1;4789:8;;;4627:178;;;;:::o;10376:187::-;10470:1;10450:22;;:8;:22;;;;10442:31;;;;;;;;10518:8;10489:38;;10510:6;;;;;;;;;;;10489:38;;;;;;;;;;;;10547:8;10538:6;;:17;;;;;;;;;;;;;;;;;;10376:187;:::o;34258:887::-;34810:27;34818:5;34810:25;;;:27::i;:::-;34802:36;;;;;;;;34912:12;34926:23;34961:5;34953:19;;34973:4;34953:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;34953:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;34911:67:0;;;;34997:7;34989:16;;;;;;;;35042:1;35022:10;:17;:21;35018:120;;;35106:10;35095:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;35095:30:0;;;;;;;;;;;;;;;;35087:39;;;;;;;;35018:120;34258:887;;;;:::o;31207:627::-;31267:4;31284:12;31791:7;31779:20;31771:28;;31825:1;31818:4;:8;31811:15;;;31207:627;;;:::o
Swarm Source
bzzr://ae41a3d9f5676f4fd3607763d723cb29e1d2f155fc88ab36f87976ff74b86c7c
Loading...
Loading
Loading...
Loading
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.