Transaction Hash:
Block:
12163599 at Apr-03-2021 01:26:34 AM +UTC
Transaction Fee:
0.006631056 ETH
$14.23
Gas Used:
46,049 Gas / 144 Gwei
Emitted Events:
| 227 |
DrepToken.Approval( _owner=[Sender] 0x07cdcedd9f1043fed559c62817284ed1f01408e7, _spender=0x881D4023...dC08D300C, _value=90071992547409910000000000 )
|
Account State Difference:
| Address | Before | After | State Difference | ||
|---|---|---|---|---|---|
| 0x07cdCeDD...1f01408E7 |
0.05764 Eth
Nonce: 0
|
0.051008944 Eth
Nonce: 1
| 0.006631056 | ||
| 0x22dE9912...33cC2C1b3 | |||||
|
0xEA674fdD...16B898ec8
Miner
| (Ethermine) | 1,400.884337738922546651 Eth | 1,400.890968794922546651 Eth | 0.006631056 |
Execution Trace
DrepToken.approve( _spender=0x881D40237659C251811CEC9c364ef91dC08D300C, _value=90071992547409910000000000 ) => ( success=True )
approve[DrepToken (ln:62)]
Approval[DrepToken (ln:65)]
pragma solidity ^0.4.21;
contract DrepToken {
string public name = "DREP";
string public symbol = "DREP";
uint8 public decimals = 18;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
uint256 public totalSupply;
uint256 constant initialSupply = 10000000000;
bool public stopped = false;
address internal owner = 0x0;
modifier ownerOnly {
require(owner == msg.sender);
_;
}
modifier isRunning {
require(!stopped);
_;
}
modifier validAddress {
require(msg.sender != 0x0);
_;
}
function DrepToken() public {
owner = msg.sender;
totalSupply = initialSupply * 10 ** uint256(decimals);
balanceOf[owner] = totalSupply;
}
function transfer(address _to, uint256 _value) isRunning validAddress public returns (bool success) {
require(_to != 0x0);
require(balanceOf[msg.sender] >= _value);
require(balanceOf[_to] + _value >= balanceOf[_to]);
balanceOf[msg.sender] -= _value;
balanceOf[_to] += _value;
emit Transfer(msg.sender, _to, _value);
return true;
}
function transferFrom(address _from, address _to, uint256 _value) isRunning validAddress public returns (bool success) {
require(_to != 0x0);
require(balanceOf[_from] >= _value);
require(balanceOf[_to] + _value >= balanceOf[_to]);
require(allowance[_from][msg.sender] >= _value);
allowance[_from][msg.sender] -= _value;
balanceOf[_from] -= _value;
balanceOf[_to] += _value;
emit Transfer(_from, _to, _value);
return true;
}
function approve(address _spender, uint256 _value) isRunning validAddress public returns (bool success) {
require(_value == 0 || allowance[msg.sender][_spender] == 0);
allowance[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
function stop() ownerOnly public {
stopped = true;
}
function start() ownerOnly public {
stopped = false;
}
function burn(uint256 _value) isRunning validAddress public {
require(balanceOf[msg.sender] >= _value);
require(totalSupply >= _value);
balanceOf[msg.sender] -= _value;
totalSupply -= _value;
}
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}