Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 1 txn
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: CuteCoinPriceOracle
Compiler Text: v0.4.24+commit.e67f0147
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.24;

contract CuteCoinPriceOracle {

    mapping (address => bool) admins;

    // How much Tokens you get for 1 ETH, multiplied by 10^18
    uint256 public ETHPrice = 1000 ether;

    event PriceChanged(uint256 newPrice);

    constructor() public {
        admins[msg.sender] = true;
    }

    function updatePrice(uint256 _newPrice) public {
        require(_newPrice > 0);
        require(admins[msg.sender] == true);
        ETHPrice = _newPrice;
        emit PriceChanged(_newPrice);
    }

    function setAdmin(address _newAdmin, bool _value) public {
        require(admins[msg.sender] == true);
        admins[_newAdmin] = _value;
    }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"ETHPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newAdmin","type":"address"},{"name":"_value","type":"bool"}],"name":"setAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newPrice","type":"uint256"}],"name":"updatePrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newPrice","type":"uint256"}],"name":"PriceChanged","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6080604052683635c9adc5dea0000060015534801561001d57600080fd5b50336000908152602081905260409020805460ff191660011790556101c3806100476000396000f3006080604052600436106100565763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633732e153811461005b5780634b0bddd2146100825780638d6cc56d146100b7575b600080fd5b34801561006757600080fd5b506100706100cf565b60408051918252519081900360200190f35b34801561008e57600080fd5b506100b573ffffffffffffffffffffffffffffffffffffffff6004351660243515156100d5565b005b3480156100c357600080fd5b506100b560043561012e565b60015481565b3360009081526020819052604090205460ff1615156001146100f657600080fd5b73ffffffffffffffffffffffffffffffffffffffff919091166000908152602081905260409020805460ff1916911515919091179055565b6000811161013b57600080fd5b3360009081526020819052604090205460ff16151560011461015c57600080fd5b60018190556040805182815290517fa6dc15bdb68da224c66db4b3838d9a2b205138e8cff6774e57d0af91e196d6229181900360200190a1505600a165627a7a72305820d23094c5695c6b6e0568f8f81649744cfd0d282dd44373b4495a9f13c239eec00029

   Swarm Source:
bzzr://d23094c5695c6b6e0568f8f81649744cfd0d282dd44373b4495a9f13c239eec0

 

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.