Verified contractPartial
TokenBurner
Address0x088c57c5e32ed24610ce76340f5fe405757b08f8
- Balance
0 ETH
- Transactions
3
- Compiler
solc 0.4.22
- Same code
370 more contracts
Details
- Compiler
- solc 0.4.22+commit.4cb486ee
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 7,244,984
- Creation transaction
- 0xefbbdab063…fc955b123d
TokenBurner.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.22;
contract BurnableToken {
function burn(uint256 value) public returns (bool);
}
contract TokenBurner {
address public owner;
BurnableToken public token;
event Burn(uint256 amount);
constructor(address _token) public {
owner = msg.sender;
token = BurnableToken(_token);
}
function burnTokens(uint256 amount) public {
require(msg.sender == owner);
require(token.burn(amount));
emit Burn(amount);
}
function changeOwner(address newOwner) public {
require(msg.sender == owner);
owner = newOwner;
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.