Verified contractPartialMIT
RektCoin
Address0xbf410efa864b1a5ec1aeb2fb5a3e7bce81f83d22
- Balance
0 ETH
- Transactions
3
- Compiler
solc 0.8.29
- Same code
Only this contract
Details
- Compiler
- solc 0.8.29+commit.ab55807c
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 22,606,348
- Creation transaction
- 0x32a962b6fc…950f7b5c00
RektCoin.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.29;
contract RektCoin {
string public name;
string public symbol;
uint8 public constant decimals = 18;
uint256 public totalSupply;
uint256 private var_WyZRWD;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
constructor() {
name = "RektCoin";
symbol = "REKT";
totalSupply = 31000000000 * 10 ** uint256(decimals);
balanceOf[msg.sender] = totalSupply;
emit Transfer(address(0), msg.sender, totalSupply);
var_WyZRWD = block.timestamp % 1000;
}
function transfer(address _to, uint256 _value) external returns (bool) {
require(balanceOf[msg.sender] >= _value, "ERC20: transfer amount exceeds balance");
balanceOf[msg.sender] -= _value;
balanceOf[_to] += _value;
emit Transfer(msg.sender, _to, _value);
return true;
}
function update_var_WyZRWD(uint256 newValue) public {
var_WyZRWD = newValue;
}
function approve(address _spender, uint256 _value) external returns (bool) {
allowance[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
function get_var_WyZRWD() public view returns (uint256) {
return var_WyZRWD;
}
function transferFrom(address _from, address _to, uint256 _value) external returns (bool) {
require(balanceOf[_from] >= _value, "ERC20: transfer amount exceeds balance");
require(allowance[_from][msg.sender] >= _value, "ERC20: transfer amount exceeds allowance");
balanceOf[_from] -= _value;
balanceOf[_to] += _value;
allowance[_from][msg.sender] -= _value;
emit Transfer(_from, _to, _value);
return true;
}
uint256 private var_mKZmfD;
function add_oCWrW(uint256 newValue) public {
var_mKZmfD = newValue;
}
function get_add_oCWrW() public view returns (uint256) {
return var_mKZmfD;
}
}
Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.