Sponsored:   Temco - Join the Largest VC Backed ICO on the Bitcoin Network! TEMCO KYC Whitelist Starts Now!!
Contract Overview
Balance: 0.00594018573741061 Ether
Ether Value: $0.83 (@ $139.86/ETH)
Transactions: 15 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0xdc48c9b99a94ffd60557ed6dc9a4649db0fb2b33at txn 0xb485520dde15bb12cb47d1a9765cd8f35e6d7293bba73092f57fe6e90457c7fa
 Latest 15 txns

TxHash Age From To Value [TxFee]
0x3924d4f4f0aac17252605efd9fcc24928a24c2207d165b9e8bca77d6bfe01ea5148 days 19 hrs agoOraclize  IN   0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190 Ether0.00114344
0x6f365f68bcbc8cc84e015dfc71be2c4d489a7930fe62b7f3e6a8601f01275663148 days 19 hrs agoOraclize  IN   0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190 Ether0.00153394
0xdc991df9e6dcaf2be35d5eee3e5f04a09fbababbe3fb9d56aa12c30f3f2d73fd221 days 4 hrs agoOraclize  IN   0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190 Ether0.0016252
0xdbb4ba4ec2426939b8e154d7da19d962db13b1ef0854bbe8201d66ad15e0bc7c361 days 22 hrs agoOraclize  IN   0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190 Ether0.00136634
0x8958f3f5c2396ba2cba159486259add1e565f10f05528184c3cd3b43a647c302362 days 6 hrs agoOraclize  IN   0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190 Ether0.00153394
0x02d15d7082b019424ec61a98ecf152e7fc67413890c537cbf788a427fbdac77a388 days 6 mins agoOraclize  IN   0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190 Ether0.00136698
0x455bec108c3a4ee1c164ea9cf457f7b6cfcb2b701cec87608684e34c77e4d842389 days 4 hrs agoOraclize  IN   0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190 Ether0.00181716
0x1a7e190018a2c3c1bdbfc7c6e628176c33a4e309b1671dd2056fe98cbc761250391 days 8 hrs agoOraclize  IN   0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190 Ether0.00163552
0xee58e515885643a673eb556cf3a5be4cf1c84876d173497690f8082e707c40aa392 days 3 hrs agoOraclize  IN   0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190 Ether0.00195656
0x9ba605cef9d3b3c5005b9354d70266558ea959d8e5f3bd5810f6a347a1d44429393 days 16 hrs ago0xdc48c9b99a94ffd60557ed6dc9a4649db0fb2b33  IN   0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190 Ether0.000028916
0x059aae5baf7189f04f843ff8c45e37f57b25c8a6e4323861d43d18d4adb0dca3393 days 21 hrs agoOraclize  IN   0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190 Ether0.00135638
0xb4eccdf4ee2f21830dd9ea125d1557c845659129d74dd5fc016e9feec8869e6a395 days 1 hr agoOraclize  IN   0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190 Ether0.00117328
0xeddf0bc9b7d1a5b48f2660b78cf75d6463624d15c9263aa3fdcb8ead6340772a395 days 6 hrs agoOraclize  IN   0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190 Ether0.00146018
0x9876b16051c65b5718d972202116ac387f19556e170d1c2a2165b0bcf62f82be400 days 21 hrs ago0xdc48c9b99a94ffd60557ed6dc9a4649db0fb2b33  IN   0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190 Ether0.00043916
0xb485520dde15bb12cb47d1a9765cd8f35e6d7293bba73092f57fe6e90457c7fa400 days 23 hrs ago0xdc48c9b99a94ffd60557ed6dc9a4649db0fb2b33  IN    Contract Creation0 Ether0.012634342
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 21 Internal Transactions

ParentTxHash Block Age From To Value
0x7942e32a27309aad9f34ea0ae13546fc3e8286fe727bb9e3f4484890794a611b5842423149 days 19 hrs ago0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00402667174690816 Ether
0x7942e32a27309aad9f34ea0ae13546fc3e8286fe727bb9e3f4484890794a611b5842423149 days 19 hrs ago0xadb797366e36697dc9742a8c820d3dda931668d20xd64ed2c8c24081e540cd7ed2b6297828a57ecd190.00402667174690816 Ether
0x460d0c5c043c54f1ab8ff942fb0958bba7dde592648cb35915ec12f290a5e3dc5427339222 days 4 hrs ago0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00402667174690816 Ether
0x460d0c5c043c54f1ab8ff942fb0958bba7dde592648cb35915ec12f290a5e3dc5427339222 days 4 hrs ago0xadb797366e36697dc9742a8c820d3dda931668d20xd64ed2c8c24081e540cd7ed2b6297828a57ecd190.00402667174690816 Ether
0xc0bbaaa2ea702af95cc09088e166c03360cd83df61f40d79c3819d5612d8ab094600215363 days 6 hrs ago0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00403327142086313 Ether
0xc0bbaaa2ea702af95cc09088e166c03360cd83df61f40d79c3819d5612d8ab094600215363 days 6 hrs ago0xadb797366e36697dc9742a8c820d3dda931668d20xd64ed2c8c24081e540cd7ed2b6297828a57ecd190.00403327142086313 Ether
0x9e6043bffc8031882483a37ec980a0babd5e58418ea3aa74c5e8106549bf9ca84600149363 days 6 hrs ago0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00403327142086313 Ether
0x9e6043bffc8031882483a37ec980a0babd5e58418ea3aa74c5e8106549bf9ca84600149363 days 6 hrs ago0xadb797366e36697dc9742a8c820d3dda931668d20xd64ed2c8c24081e540cd7ed2b6297828a57ecd190.00403327142086313 Ether
0x36da018f89c3b9784bb1379f1a5ced854c40425b8444fb6a4eb6ca5cd92854f74440481389 days 7 mins ago0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00403327142086313 Ether
0x36da018f89c3b9784bb1379f1a5ced854c40425b8444fb6a4eb6ca5cd92854f74440481389 days 7 mins ago0xadb797366e36697dc9742a8c820d3dda931668d20xd64ed2c8c24081e540cd7ed2b6297828a57ecd190.006 Ether
0x6fa8d9d372e5e136579c191f95f988cd0f161b47a71f78127e05e0eeaec372fc4433133390 days 4 hrs ago0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00403327142086313 Ether
0x6fa8d9d372e5e136579c191f95f988cd0f161b47a71f78127e05e0eeaec372fc4433133390 days 4 hrs ago0xadb797366e36697dc9742a8c820d3dda931668d20xd64ed2c8c24081e540cd7ed2b6297828a57ecd190.006 Ether
0xa28cd1f25ae2c1e952243bcb8b4090c2383b32ce889bbcd476ffa1d506b578d54419843392 days 8 hrs ago0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00403327142086313 Ether
0xa28cd1f25ae2c1e952243bcb8b4090c2383b32ce889bbcd476ffa1d506b578d54419843392 days 8 hrs ago0xadb797366e36697dc9742a8c820d3dda931668d20xd64ed2c8c24081e540cd7ed2b6297828a57ecd190.00403327142086313 Ether
0x6924f3727bc65d1b14f070698ece84115e6ca73816c8bc21a9b8acd4c1cd5f984414670393 days 3 hrs ago0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00403327142086313 Ether
0x6924f3727bc65d1b14f070698ece84115e6ca73816c8bc21a9b8acd4c1cd5f984414670393 days 3 hrs ago0xadb797366e36697dc9742a8c820d3dda931668d20xd64ed2c8c24081e540cd7ed2b6297828a57ecd190.00403327142086313 Ether
0xb167444eb81ce81f193309673457918f5b6f3fccbf3c9a9e74318f9b27f6301e4403956394 days 21 hrs ago0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00403327142086313 Ether
0xb167444eb81ce81f193309673457918f5b6f3fccbf3c9a9e74318f9b27f6301e4403956394 days 21 hrs ago0x23bdefcf6dcf72576b52235673fd80c39969ff820xd64ed2c8c24081e540cd7ed2b6297828a57ecd190.00403327142086313 Ether
0x7fa808c0afe15fac380d30ec95232a83ee8bed4d70967d5b2f25e50e12dfc4de4396480396 days 1 hr ago0xd64ed2c8c24081e540cd7ed2b6297828a57ecd190x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00403327142086313 Ether
0x7fa808c0afe15fac380d30ec95232a83ee8bed4d70967d5b2f25e50e12dfc4de4396480396 days 1 hr ago0x23bdefcf6dcf72576b52235673fd80c39969ff820xd64ed2c8c24081e540cd7ed2b6297828a57ecd190.006 Ether
0x646a11b07978e9e23d177a1a3f50109f23621bc4e6108b07510941af0501ed274395238396 days 6 hrs ago0x23bdefcf6dcf72576b52235673fd80c39969ff820xd64ed2c8c24081e540cd7ed2b6297828a57ecd190.00004 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), NestedArrayFunctionCallDecoder (medium-severity), ZeroFunctionSelector (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: Pricer
Compiler Text: v0.4.16+commit.d7661dd9
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.16;

//User interface at http://www.staticoin.com
//Full source code at https://github.com/genkifs/staticoin

/** @title owned. */
contract owned  {
  address owner;
  function owned() {
    owner = msg.sender;
  }
  function changeOwner(address newOwner) onlyOwner {
    owner = newOwner;
  }
  modifier onlyOwner() {
    if (msg.sender==owner) 
    _;
  }
}

/** @title mortal. */
contract mortal is owned() {
  function kill() onlyOwner {
    if (msg.sender == owner) selfdestruct(owner);
  }
}
 

// <ORACLIZE_API>
/*
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016 Oraclize LTD


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

/** @title OraclizeI. */
contract OraclizeI {
    address public cbAddress;
    function query(uint _timestamp, string _datasource, string _arg) payable returns (bytes32 _id);
    function query_withGasLimit(uint _timestamp, string _datasource, string _arg, uint _gaslimit) payable returns (bytes32 _id);
    function query2(uint _timestamp, string _datasource, string _arg1, string _arg2) payable returns (bytes32 _id);
    function query2_withGasLimit(uint _timestamp, string _datasource, string _arg1, string _arg2, uint _gaslimit) payable returns (bytes32 _id);
    function queryN(uint _timestamp, string _datasource, bytes _argN) payable returns (bytes32 _id);
    function queryN_withGasLimit(uint _timestamp, string _datasource, bytes _argN, uint _gaslimit) payable returns (bytes32 _id);
    function getPrice(string _datasource) returns (uint _dsprice);
    function getPrice(string _datasource, uint gaslimit) returns (uint _dsprice);
    function useCoupon(string _coupon);
    function setProofType(byte _proofType);
    function setConfig(bytes32 _config);
    function setCustomGasPrice(uint _gasPrice);
    function randomDS_getSessionPubKeyHash() returns(bytes32);
}
/** @title OraclizeAddrResolverI. */
contract OraclizeAddrResolverI {
    function getAddress() returns (address _addr);
}
/** @title usingOraclize. */
contract usingOraclize {
    uint constant day = 60*60*24;
    uint constant week = 60*60*24*7;
    uint constant month = 60*60*24*30;
    byte constant proofType_NONE = 0x00;
    byte constant proofType_TLSNotary = 0x10;
    byte constant proofType_Android = 0x20;
    byte constant proofType_Ledger = 0x30;
    byte constant proofType_Native = 0xF0;
    byte constant proofStorage_IPFS = 0x01;
    uint8 constant networkID_auto = 0;
    uint8 constant networkID_mainnet = 1;
    uint8 constant networkID_testnet = 2;
    uint8 constant networkID_morden = 2;
    uint8 constant networkID_consensys = 161;

    OraclizeAddrResolverI OAR;

    OraclizeI oraclize;
    modifier oraclizeAPI {
        if((address(OAR)==0)||(getCodeSize(address(OAR))==0)) oraclize_setNetwork();
        oraclize = OraclizeI(OAR.getAddress());
        _;
    }
    modifier coupon(string code){
        oraclize = OraclizeI(OAR.getAddress());
        oraclize.useCoupon(code);
        _;
    }

    function oraclize_setNetwork() internal returns(bool){
        if (getCodeSize(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed)>0){ //mainnet
            OAR = OraclizeAddrResolverI(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed);
            oraclize_setNetworkName("eth_mainnet");
            return true;
        }
        if (getCodeSize(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1)>0){ //ropsten testnet
            OAR = OraclizeAddrResolverI(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1);
            oraclize_setNetworkName("eth_ropsten3");
            return true;
        }
        if (getCodeSize(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e)>0){ //kovan testnet
            OAR = OraclizeAddrResolverI(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e);
            oraclize_setNetworkName("eth_kovan");
            return true;
        }
        if (getCodeSize(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48)>0){ //rinkeby testnet
            OAR = OraclizeAddrResolverI(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48);
            oraclize_setNetworkName("eth_rinkeby");
            return true;
        }
        if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475)>0){ //ethereum-bridge
            OAR = OraclizeAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475);
            return true;
        }
        if (getCodeSize(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF)>0){ //ether.camp ide
            OAR = OraclizeAddrResolverI(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF);
            return true;
        }
        if (getCodeSize(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA)>0){ //browser-solidity
            OAR = OraclizeAddrResolverI(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA);
            return true;
        }
        return false;
    }

   function oraclize_getPrice(string datasource) oraclizeAPI internal returns (uint){
       return oraclize.getPrice(datasource);
   }

   function oraclize_getPrice(string datasource, uint gaslimit) oraclizeAPI internal returns (uint){
       return oraclize.getPrice(datasource, gaslimit);
   }
   
	function oraclize_setCustomGasPrice(uint gasPrice) oraclizeAPI internal { 
        return oraclize.setCustomGasPrice(gasPrice); 
	}     


    function oraclize_query(uint timestamp, string datasource, string arg) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource);
        if (price > 1 ether + tx.gasprice*200000) return 0; // unexpectedly high price
        return oraclize.query.value(price)(timestamp, datasource, arg);
    }
    function oraclize_query(uint timestamp, string datasource, string arg, uint gaslimit) oraclizeAPI internal returns (bytes32 id){
        uint price = oraclize.getPrice(datasource, gaslimit);
        if (price > 1 ether + tx.gasprice*gaslimit) return 0; // unexpectedly high price
        return oraclize.query_withGasLimit.value(price)(timestamp, datasource, arg, gaslimit);
    }


    function oraclize_cbAddress() oraclizeAPI internal returns (address){
        return oraclize.cbAddress();
    }
    function oraclize_setProof(byte proofP) oraclizeAPI internal {
        return oraclize.setProofType(proofP);
    }

    function getCodeSize(address _addr) constant internal returns(uint _size) {
        assembly {
            _size := extcodesize(_addr)
        }
    }
        
    string oraclize_network_name;
    function oraclize_setNetworkName(string _network_name) internal {
        oraclize_network_name = _network_name;
    }
    
    function oraclize_getNetworkName() internal returns (string) {
        return oraclize_network_name;
    }
        
}
// </ORACLIZE_API>

/** @title DSParser. */
contract DSParser{
    uint8 constant WAD_Dec=18;
    uint128 constant WAD = 10 ** 18;
    function parseInt128(string _a)  constant  returns (uint128) { 
		return cast(parseInt( _a, WAD_Dec));
    }
    function cast(uint256 x) constant internal returns (uint128 z) {
        assert((z = uint128(x)) == x);
    }
    function parseInt(string _a, uint _b)  
			constant 
			returns (uint) { 
		/** @dev Turns a string into a number with _b places
          * @param _a String to be processed, e.g. "0.002"
          * @param _b number of decimal places
          * @return uint of the decimal representation
        */
			bytes memory bresult = bytes(_a);
            uint mint = 0;
            bool decimals = false;
            for (uint i=0; i<bresult.length; i++){
                if ((bresult[i] >= 48)&&(bresult[i] <= 57)){
                    if (decimals){
                       if (_b == 0){
                        //Round up if next value is 5 or greater
                        if(uint(bresult[i])- 48>4){
                            mint = mint+1;
                        }    
                        break;
                       }
                       else _b--;
                    }
                    mint *= 10;
                    mint += uint(bresult[i]) - 48;
                } else if (bresult[i] == 46||bresult[i] == 44) { // cope with euro decimals using commas
                    decimals = true;
                }
            }
            if (_b > 0) mint *= 10**_b;
           return mint;
    }
	
}

/** @title I_minter. */
contract I_minter { 
    event EventCreateStatic(address indexed _from, uint128 _value, uint _transactionID, uint _Price); 
    event EventRedeemStatic(address indexed _from, uint128 _value, uint _transactionID, uint _Price); 
    event EventCreateRisk(address indexed _from, uint128 _value, uint _transactionID, uint _Price); 
    event EventRedeemRisk(address indexed _from, uint128 _value, uint _transactionID, uint _Price); 
    event EventBankrupt();
	
    function Leverage() constant returns (uint128)  {}
    function RiskPrice(uint128 _currentPrice,uint128 _StaticTotal,uint128 _RiskTotal, uint128 _ETHTotal) constant returns (uint128 price)  {}
    function RiskPrice(uint128 _currentPrice) constant returns (uint128 price)  {}     
    function PriceReturn(uint _TransID,uint128 _Price) {}
    function NewStatic() external payable returns (uint _TransID)  {}
    function NewStaticAdr(address _Risk) external payable returns (uint _TransID)  {}
    function NewRisk() external payable returns (uint _TransID)  {}
    function NewRiskAdr(address _Risk) external payable returns (uint _TransID)  {}
    function RetRisk(uint128 _Quantity) external payable returns (uint _TransID)  {}
    function RetStatic(uint128 _Quantity) external payable returns (uint _TransID)  {}
    function Strike() constant returns (uint128)  {}
}

/** @title I_Pricer. */
contract I_Pricer {
    uint128 public lastPrice;
    uint public constant DELAY = 1 days;// this needs to be a day on the mainnet
    I_minter public mint;
    string public sURL;//="json(https://api.kraken.com/0/public/Ticker?pair=ETHEUR).result.XETHZEUR.p.1";
    mapping (bytes32 => uint) RevTransaction;
    function setMinter(address _newAddress) {}
    function __callback(bytes32 myid, string result) {}
    function queryCost() constant returns (uint128 _value) {}
    function QuickPrice() payable {}
    function requestPrice(uint _actionID) payable returns (uint _TrasID){}
    function collectFee() returns(bool) {}
    function () {
        //if ether is sent to this address, send it back.
        revert();
    }
}

/** @title Pricer. */
contract Pricer is I_Pricer, 
	mortal, 
	usingOraclize, 
	DSParser {
	// <pair_name> = pair name
    // a = ask array(<price>, <whole lot volume>, <lot volume>),
    // b = bid array(<price>, <whole lot volume>, <lot volume>),
    // c = last trade closed array(<price>, <lot volume>),
    // v = volume array(<today>, <last 24 hours>),
    // p = volume weighted average price array(<today>, <last 24 hours>),
    // t = number of trades array(<today>, <last 24 hours>),
    // l = low array(<today>, <last 24 hours>),
    // h = high array(<today>, <last 24 hours>),
    // o = today's opening price
	
    function Pricer(string _URL) {
		/** @dev Constructor, allows the pricer URL to be set
          * @param _URL of the web query
          * @return nothing
        */
		oraclize_setNetwork();
		sURL=_URL;
    }

	function () {
        //if ether is sent to this address, send it back.
        revert();
    }

    function setMinter(address _newAddress) 
		onlyOwner {
		/** @dev Allows the address of the minter to be set
          * @param _newAddress Address of the minter
          * @return nothing
        */
        mint=I_minter(_newAddress);
    }

    function queryCost() 
		constant 
		returns (uint128 _value) {
		/** @dev ETH cost of calling the oraclize 
          * @param _newAddress Address of the minter
          * @return nothing
        */
		return cast(oraclize_getPrice("URL")); 
    }

    function QuickPrice() 
		payable {
		/** @dev Gets the latest price.  Be careful, All eth sent is kept by the contract.
          * @return nothing, but the new price will be stored in variable lastPrice
        */
        bytes32 TrasID =oraclize_query(1, "URL", sURL);
        RevTransaction[TrasID]=0;
    }
	
    function __callback(bytes32 myid, string result) {
		/** @dev ORACLIZE standard callback function-
          * @param myid Pricer transaction ID
		  * @param result Address of the minter
          * @return calls minter.PriceReturn() with the price
        */
        if (msg.sender != oraclize_cbAddress()) revert(); // Only oraclize
        bytes memory tempEmptyStringTest = bytes(result); // Array uses memory
        if (tempEmptyStringTest.length == 0) {
             lastPrice =  0;  //0 is taken to be an error by the minter contract
        } else {
            lastPrice =  parseInt128(result);  //convert the string into a 18 decimal place number
        }
        if(RevTransaction[myid]>0){  //if it's not from QuickPrice
            mint.PriceReturn(RevTransaction[myid],lastPrice);  //Call the minter
        }
        delete RevTransaction[myid]; // free up the memory
    }

	function setGas(uint gasPrice) 
		onlyOwner 
		returns(bool) {
		/** @dev Allows oraclize gas cost to be changed
          * @return True if sucessful
        */
		oraclize_setCustomGasPrice(gasPrice);
		return true;
    }
	
	function collectFee() 
		onlyOwner 
		returns(bool) {
		/** @dev Allows ETH to be removed from this contract (only this one, not the minter)
          * @return True if sucessful
        */
        return owner.send(this.balance);
		return true;
    }
	
	modifier onlyminter() {
      if (msg.sender==address(mint)) 
      _;
    }

    function requestPrice(uint _actionID) 
		payable 
		onlyminter 
		returns (uint _TrasID){
		/** @dev Minter only functuon.  Needs to be called with enough eth
          * @param _actionID Pricer transaction ID
          * @return calls minter.PriceReturn() with the price
        */
        // 
        bytes32 TrasID;
        TrasID=oraclize_query(DELAY, "URL", sURL);
        RevTransaction[TrasID]=_actionID;
		_TrasID=uint(TrasID);
    }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"lastPrice","outputs":[{"name":"","type":"uint128"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"mint","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"myid","type":"bytes32"},{"name":"result","type":"string"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sURL","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"DELAY","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_a","type":"string"},{"name":"_b","type":"uint256"}],"name":"parseInt","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_actionID","type":"uint256"}],"name":"requestPrice","outputs":[{"name":"_TrasID","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"collectFee","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"QuickPrice","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"gasPrice","type":"uint256"}],"name":"setGas","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_a","type":"string"}],"name":"parseInt128","outputs":[{"name":"","type":"uint128"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newAddress","type":"address"}],"name":"setMinter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"queryCost","outputs":[{"name":"_value","type":"uint128"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_URL","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"}]

  Contract Creation Code Switch To Opcodes View
606060405234156200001057600080fd5b60405162001be738038062001be78339810160405280805190910190505b5b60048054600160a060020a03191633600160a060020a03161790555b620000636401000000006200125b6200008282021704565b506002818051620000799291602001906200049f565b505b5062000549565b600080620000b2731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed640100000000620012536200047d82021704565b1115620001345760058054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed1790556200012b60408051908101604052600b81527f6574685f6d61696e6e65740000000000000000000000000000000000000000006020820152640100000000620015986200048582021704565b5060016200047a565b60006200016373c03a2615d5efaf5f49f60b7bb6583eaec212fdf1640100000000620012536200047d82021704565b1115620001e55760058054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf11790556200012b60408051908101604052600c81527f6574685f726f707374656e3300000000000000000000000000000000000000006020820152640100000000620015986200048582021704565b5060016200047a565b60006200021473b7a07bcf2ba2f2703b24c0691b5278999c59ac7e640100000000620012536200047d82021704565b1115620002965760058054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e1790556200012b60408051908101604052600981527f6574685f6b6f76616e00000000000000000000000000000000000000000000006020820152640100000000620015986200048582021704565b5060016200047a565b6000620002c573146500cfd35b22e4a392fe0adc06de1a1368ed48640100000000620012536200047d82021704565b1115620003475760058054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed481790556200012b60408051908101604052600b81527f6574685f72696e6b6562790000000000000000000000000000000000000000006020820152640100000000620015986200048582021704565b5060016200047a565b600062000376736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475640100000000620012536200047d82021704565b1115620003ac575060058054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb47517905560016200047a565b6000620003db7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf640100000000620012536200047d82021704565b111562000411575060058054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf17905560016200047a565b6000620004407351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa640100000000620012536200047d82021704565b111562000476575060058054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa17905560016200047a565b5060005b90565b803b5b919050565b60078180516200049a9291602001906200049f565b505b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004e257805160ff191683800117855562000512565b8280016001018555821562000512579182015b8281111562000512578251825591602001919060010190620004f5565b5b506200052192915062000525565b5090565b6200047a91905b808211156200052157600081556001016200052c565b5090565b90565b61168e80620005596000396000f300606060405236156100bf5763ffffffff60e060020a600035041663053f14da81146100d25780631249c58b1461010157806327dc297e1461013057806341c0e1b514610188578063452e0d251461019d57806369b4117014610228578063a6f9dae11461024d578063bf4d89b51461026e578063cd7c92e3146102d3578063d4d5d32a146102f0578063dc20183814610317578063dd51faa214610321578063f56c66b11461034b578063fca3b5aa146103b8578063fd557d39146103d9575b34156100ca57600080fd5b5b600080fd5b005b34156100dd57600080fd5b6100e5610408565b6040516001608060020a03909116815260200160405180910390f35b341561010c57600080fd5b610114610417565b604051600160a060020a03909116815260200160405180910390f35b341561013b57600080fd5b6100d0600480359060446024803590810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061042695505050505050565b005b341561019357600080fd5b6100d0610565565b005b34156101a857600080fd5b6101b06105a6565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101ed5780820151818401525b6020016101d4565b50505050905090810190601f16801561021a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561023357600080fd5b61023b610644565b60405190815260200160405180910390f35b341561025857600080fd5b6100d0600160a060020a036004351661064b565b005b341561027957600080fd5b61023b60046024813581810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650509335935061068392505050565b60405190815260200160405180910390f35b61023b600435610866565b60405190815260200160405180910390f35b34156102fb57600080fd5b61030361097e565b604051901515815260200160405180910390f35b6100d06109cd565b005b341561032c57600080fd5b610303600435610abf565b604051901515815260200160405180910390f35b341561035657600080fd5b6100e560046024813581810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610aed95505050505050565b6040516001608060020a03909116815260200160405180910390f35b34156103c357600080fd5b6100d0600160a060020a0360043516610b0a565b005b34156103e457600080fd5b6100e5610b42565b6040516001608060020a03909116815260200160405180910390f35b6000546001608060020a031681565b600154600160a060020a031681565b61042e6115b0565b610436610b8e565b600160a060020a031633600160a060020a031614151561045557600080fd5b50808051151561047d57600080546fffffffffffffffffffffffffffffffff191690556104b0565b61048682610aed565b600080546fffffffffffffffffffffffffffffffff19166001608060020a03929092169190911790555b600083815260036020526040812054111561055057600154600084815260036020526040808220549154600160a060020a039093169263e5d02cd092916001608060020a03909116905160e060020a63ffffffff851602815260048101929092526001608060020a03166024820152604401600060405180830381600087803b151561053b57600080fd5b6102c65a03f1151561054c57600080fd5b5050505b6000838152600360205260408120555b505050565b60045433600160a060020a03908116911614156105a15760045433600160a060020a03908116911614156105a157600454600160a060020a0316ff5b5b5b5b565b60028054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561063c5780601f106106115761010080835404028352916020019161063c565b820191906000526020600020905b81548152906001019060200180831161061f57829003601f168201915b505050505081565b6201518081565b60045433600160a060020a039081169116141561067e5760048054600160a060020a031916600160a060020a0383161790555b5b5b50565b600061068d6115b0565b5082600080805b8351811015610846577f30000000000000000000000000000000000000000000000000000000000000008482815181106106ca57fe5b016020015160f860020a900460f860020a02600160f860020a0319161015801561073b57507f390000000000000000000000000000000000000000000000000000000000000084828151811061071c57fe5b016020015160f860020a900460f860020a02600160f860020a03191611155b156107c957811561079157851515610789576004603085838151811061075d57fe5b016020015160f860020a900460f860020a0260f860020a9004031115610784578260010192505b610846565b600019909501945b5b600a8302925060308482815181106107a657fe5b016020015160f860020a900460f860020a0260f860020a9004038301925061083c565b8381815181106107d557fe5b016020015160f860020a900460f860020a02600160f860020a031916602e60f860020a021480610832575083818151811061080c57fe5b016020015160f860020a900460f860020a02600160f860020a031916602c60f860020a02145b1561083c57600191505b5b5b600101610694565b60008611156108585785600a0a830292505b8294505b5050505092915050565b600154600090819033600160a060020a03908116911614156109765761095f620151806040805190810160405280600381526020017f55524c000000000000000000000000000000000000000000000000000000000081525060028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156109555780601f1061092a57610100808354040283529160200191610955565b820191906000526020600020905b81548152906001019060200180831161093857829003601f168201915b5050505050610ca9565b600081815260036020526040902084905591508190505b5b5b50919050565b60045460009033600160a060020a03908116911614156109c857600454600160a060020a039081169030163180156108fc0290604051600060405180830381858888f19450505050505b5b5b90565b6000610aaa60016040805190810160405280600381526020017f55524c000000000000000000000000000000000000000000000000000000000081525060028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156109555780601f1061092a57610100808354040283529160200191610955565b820191906000526020600020905b81548152906001019060200180831161093857829003601f168201915b5050505050610ca9565b60008181526003602052604081205590505b50565b60045460009033600160a060020a0390811691161415610ae657610ae282610f9f565b5060015b5b5b919050565b6000610b02610afd836012610683565b6110af565b90505b919050565b60045433600160a060020a039081169116141561067e5760018054600160a060020a031916600160a060020a0383161790555b5b5b50565b6000610b88610afd60408051908101604052600381527f55524c000000000000000000000000000000000000000000000000000000000060208201526110c8565b6110af565b90505b90565b600554600090600160a060020a03161580610bbb5750600554610bb990600160a060020a0316611253565b155b15610bca57610bc861125b565b505b600554600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610c1257600080fd5b6102c65a03f11515610c2357600080fd5b505050604051805160068054600160a060020a031916600160a060020a03928316179081905516905063c281d19e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610c8857600080fd5b6102c65a03f11515610c9957600080fd5b50505060405180519150505b5b90565b6005546000908190600160a060020a03161580610cd85750600554610cd690600160a060020a0316611253565b155b15610ce757610ce561125b565b505b600554600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610d2f57600080fd5b6102c65a03f11515610d4057600080fd5b505050604051805160068054600160a060020a031916600160a060020a03928316179081905516905063524f3889856000604051602001526040518263ffffffff1660e060020a0281526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610dc85780820151818401525b602001610daf565b50505050905090810190601f168015610df55780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b1515610e1357600080fd5b6102c65a03f11515610e2457600080fd5b5050506040518051915050670de0b6b3a764000062030d403a0201811115610e4f5760009150610f96565b600654600160a060020a031663adf59f99828787876000604051602001526040518563ffffffff1660e060020a028152600401808481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015610ec75780820151818401525b602001610eae565b50505050905090810190601f168015610ef45780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015610f2b5780820151818401525b602001610f12565b50505050905090810190601f168015610f585780820380516001836020036101000a031916815260200191505b50955050505050506020604051808303818588803b1515610f7857600080fd5b6125ee5a03f11515610f8957600080fd5b5050505060405180519250505b5b509392505050565b600554600160a060020a03161580610fc95750600554610fc790600160a060020a0316611253565b155b15610fd857610fd661125b565b505b600554600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561102057600080fd5b6102c65a03f1151561103157600080fd5b505050604051805160068054600160a060020a031916600160a060020a03928316179081905516905063ca6ad1e48260405160e060020a63ffffffff84160281526004810191909152602401600060405180830381600087803b151561109657600080fd5b6102c65a03f115156110a757600080fd5b5050505b5b50565b806001608060020a0381168114610ae657fe5b5b919050565b600554600090600160a060020a031615806110f557506005546110f390600160a060020a0316611253565b155b156111045761110261125b565b505b600554600160a060020a03166338cc48316000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561114c57600080fd5b6102c65a03f1151561115d57600080fd5b505050604051805160068054600160a060020a031916600160a060020a03928316179081905516905063524f3889836000604051602001526040518263ffffffff1660e060020a0281526004018080602001828103825283818151815260200191508051906020019080838360005b838110156111e55780820151818401525b6020016111cc565b50505050905090810190601f1680156112125780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b151561123057600080fd5b6102c65a03f1151561124157600080fd5b50505060405180519150505b5b919050565b803b5b919050565b60008061127b731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed611253565b11156112eb5760058054600160a060020a031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed1790556112e360408051908101604052600b81527f6574685f6d61696e6e65740000000000000000000000000000000000000000006020820152611598565b5060016109c8565b600061130a73c03a2615d5efaf5f49f60b7bb6583eaec212fdf1611253565b111561137a5760058054600160a060020a03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf11790556112e360408051908101604052600c81527f6574685f726f707374656e3300000000000000000000000000000000000000006020820152611598565b5060016109c8565b600061139973b7a07bcf2ba2f2703b24c0691b5278999c59ac7e611253565b11156114095760058054600160a060020a03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e1790556112e360408051908101604052600981527f6574685f6b6f76616e00000000000000000000000000000000000000000000006020820152611598565b5060016109c8565b600061142873146500cfd35b22e4a392fe0adc06de1a1368ed48611253565b11156114985760058054600160a060020a03191673146500cfd35b22e4a392fe0adc06de1a1368ed481790556112e360408051908101604052600b81527f6574685f72696e6b6562790000000000000000000000000000000000000000006020820152611598565b5060016109c8565b60006114b7736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475611253565b11156114eb575060058054600160a060020a031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb47517905560016109c8565b600061150a7320e12a1f859b3feae5fb2a0a32c18f5a65555bbf611253565b111561153e575060058054600160a060020a0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf17905560016109c8565b600061155d7351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa611253565b1115611591575060058054600160a060020a0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa17905560016109c8565b5060005b90565b60078180516115ab9291602001906115c2565b505b50565b60206040519081016040526000815290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061160357805160ff1916838001178555611630565b82800160010185558215611630579182015b82811115611630578251825591602001919060010190611615565b5b5061163d929150611641565b5090565b6109c891905b8082111561163d5760008155600101611647565b5090565b905600a165627a7a72305820312b69b541b8ab5dd869170032401a493e7eee5d1b50748f1d8889d0768553a200290000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004c6a736f6e2868747470733a2f2f6170692e6b72616b656e2e636f6d2f302f7075626c69632f5469636b65723f706169723d455448555344292e726573756c742e584554485a5553442e702e310000000000000000000000000000000000000000

    Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004c6a736f6e2868747470733a2f2f6170692e6b72616b656e2e636f6d2f302f7075626c69632f5469636b65723f706169723d455448555344292e726573756c742e584554485a5553442e702e310000000000000000000000000000000000000000

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000004c
Arg [2] : 6a736f6e2868747470733a2f2f6170692e6b72616b656e2e636f6d2f302f7075
Arg [3] : 626c69632f5469636b65723f706169723d455448555344292e726573756c742e
Arg [4] : 584554485a5553442e702e310000000000000000000000000000000000000000


   Swarm Source:
bzzr://312b69b541b8ab5dd869170032401a493e7eee5d1b50748f1d8889d0768553a2

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.