Address Contract Partially Verified
Address
0xcd578Bf9236202B2ABed9735Ad3E24bE694B21C7
Balance
0 ETH
Nonce
1
Code Size
1905 bytes
Creator
0xa9Ae3864...8402 at tx 0xa6c8cb5e...43903e
Indexed Transactions
0
Contract Bytecode
1905 bytes
0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c806370a082311161008c5780639ce38998116100665780639ce38998146102b1578063a9059cbb146102dd578063dce423b914610309578063dd62ed3e14610326576100ea565b806370a082311461025f5780638da5cb5b1461028557806395d89b41146102a9576100ea565b806318160ddd116100c857806318160ddd146101cb57806323b872dd146101e557806324c2684b1461021b578063313ce56714610241576100ea565b806306fdde03146100ef578063095ea7b31461016c57806316dfc862146101ac575b600080fd5b6100f7610354565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610131578181015183820152602001610119565b50505050905090810190601f16801561015e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101986004803603604081101561018257600080fd5b506001600160a01b038135169060200135610379565b604080519115158252519081900360200190f35b6101c9600480360360208110156101c257600080fd5b50356103e0565b005b6101d3610454565b60408051918252519081900360200190f35b610198600480360360608110156101fb57600080fd5b506001600160a01b0381358116916020810135909116906040013561045a565b6101d36004803603602081101561023157600080fd5b50356001600160a01b0316610535565b610249610550565b6040805160ff9092168252519081900360200190f35b6101d36004803603602081101561027557600080fd5b50356001600160a01b0316610555565b61028d610570565b604080516001600160a01b039092168252519081900360200190f35b6100f761057f565b6101c9600480360360408110156102c757600080fd5b506001600160a01b03813516906020013561059f565b610198600480360360408110156102f357600080fd5b506001600160a01b0381351690602001356105e5565b6101c96004803603602081101561031f57600080fd5b503561066c565b6101d36004803603604081101561033c57600080fd5b506001600160a01b03813581169160200135166106f1565b6040518060400160405280600981526020016813db5959d8481554d160ba1b81525081565b3360008181526002602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b3360009081526004602052604090205481118015906103ff5750600081115b156104515733600081815260016020908152604080832080548601905560048252808320805486900390558254850183558051858152905160008051602061071d833981519152929181900390910190a35b50565b60005481565b6001600160a01b03831660009081526001602052604081205482118015906104a557506001600160a01b03841660009081526002602090815260408083203384529091529020548211155b80156104b15750600082115b1561052a576001600160a01b038084166000818152600160209081526040808320805488019055938816808352848320805488900390556002825284832033845282529184902080548790039055835186815293519293919260008051602061071d8339815191529281900390910190a350600161052e565b5060005b9392505050565b6001600160a01b031660009081526004602052604090205490565b601281565b6001600160a01b031660009081526001602052604090205490565b6003546001600160a01b031681565b604051806040016040528060048152602001631bd554d160e21b81525081565b6003546001600160a01b031633146105b657600080fd5b6001600160a01b0382166105c957600080fd5b6001600160a01b03909116600090815260046020526040902055565b3360009081526001602052604081205482118015906106045750600082115b1561066457336000818152600160209081526040808320805487900390556001600160a01b038716808452928190208054870190558051868152905192939260008051602061071d833981519152929181900390910190a35060016103da565b5060006103da565b33600090815260046020526040902054811180159061069a5750336000908152600160205260409020548111155b80156106a65750600081115b156104515733600081815260016020908152604080832080548690039055825485900383558051858152905192939260008051602061071d833981519152929181900390910190a350565b6001600160a01b0391821660009081526002602090815260408083209390941682529190915220549056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa265627a7a723058201da3a61ab6022ae21b5aaeb643f32dde50d281ee057538dc9690d3b6db05613e64736f6c63430005090032
Verified Source Code Partial Match
Compiler: v0.5.9+commit.e560f70d
EVM: petersburg
Optimization: Yes (200 runs)
OmegaUSD.sol 143 lines
// Abstract contract for the full ERC 20 Token standard
// https://github.com/ethereum/EIPs/issues/20
pragma solidity >=0.4.0 <0.6.0;
contract Token {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalSupply;
This automatically creates a getter function for the totalSupply.
This is moved to the base contract since public getter functions are not
currently recognised as an implementation of the matching abstract
function by the compiler.
*/
/// total amount of tokens
uint256 public totalSupply;
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) public view returns (uint256 balance);
/// @notice send `_value` token to `_to` from `msg.sender`
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not
function transfer(address _to, uint256 _value) public returns (bool success);
/// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
/// @param _from The address of the sender
/// @param _to The address of the recipient
/// @param _value The amount of token to be transferred
/// @return Whether the transfer was successful or not
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
/// @notice `msg.sender` approves `_spender` to spend `_value` tokens
/// @param _spender The address of the account able to transfer the tokens
/// @param _value The amount of tokens to be approved for transfer
/// @return Whether the approval was successful or not
function approve(address _spender, uint256 _value) public returns (bool success);
/// @param _owner The address of the account owning tokens
/// @param _spender The address of the account able to transfer the tokens
/// @return Amount of remaining tokens allowed to spent
function allowance(address _owner, address _spender) public view returns (uint256 remaining);
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}
contract StandardToken is Token {
function transfer(address _to, uint256 _value) public returns (bool success) {
//Default assumes totalSupply can't be over max (2^256 - 1).
//If your token leaves out totalSupply and can issue more tokens as time goes on, you need to check if it doesn't wrap.
//Replace the if with this one instead.
//if (balances[msg.sender] >= _value && balances[_to] + _value > balances[_to]) {
if (balances[msg.sender] >= _value && _value > 0) {
balances[msg.sender] -= _value;
balances[_to] += _value;
emit Transfer(msg.sender, _to, _value);
return true;
} else { return false; }
}
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
//same as above. Replace this line with the following if you want to protect against wrapping uints.
//if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && balances[_to] + _value > balances[_to]) {
if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) {
balances[_to] += _value;
balances[_from] -= _value;
allowed[_from][msg.sender] -= _value;
emit Transfer(_from, _to, _value);
return true;
} else { return false; }
}
function balanceOf(address _owner) public view returns (uint256 balance) {
return balances[_owner];
}
function approve(address _spender, uint256 _value) public returns (bool success) {
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
function allowance(address _owner, address _spender) public view returns (uint256 remaining) {
return allowed[_owner][_spender];
}
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) allowed;
}
contract OmegaCoinToken is StandardToken {
uint8 public constant decimals = 18;
address public owner;
modifier isOwner() {
require(msg.sender == owner);
_;
}
function setMinter(address _minterAddress, uint256 _value) public isOwner {
require(_minterAddress != address(0));
minters[_minterAddress] = _value;
}
function minterLeft(address _minterAddress) view public returns (uint256 rest) {
return minters[_minterAddress];
}
function dematerialize(uint256 _value) public {
if (minters[msg.sender] >= _value && _value > 0) {
balances[msg.sender] += _value;
minters[msg.sender] -= _value;
totalSupply += _value;
emit Transfer(address(0), msg.sender, _value);
}
}
function materialize(uint256 _value) public {
if (minters[msg.sender] >= _value && balances[msg.sender] >= _value && _value > 0) {
balances[msg.sender] -= _value;
totalSupply -= _value;
emit Transfer(msg.sender, address(0), _value);
}
}
mapping (address => uint256) minters;
}
contract OmegaUSD is OmegaCoinToken {
string public constant name = "Omega USD";
string public constant symbol = "oUSD";
uint8 public constant decimals = 18;
constructor() public {
owner = msg.sender;
totalSupply = 0;
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
minterLeft 0x24c2684b → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 6 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
dematerialize 0x16dfc862
uint256 _value
materialize 0xdce423b9
uint256 _value
setMinter 0x9ce38998
address _minterAddress
uint256 _value
transfer 0xa9059cbb
address _to
uint256 _value
returns: bool
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool
Recent Transactions
No transactions found for this address