Transaction Hash:
Block:
18239835 at Sep-29-2023 07:17:59 AM +UTC
Transaction Fee:
0.00035974744123112 ETH
$0.76
Gas Used:
54,410 Gas / 6.611789032 Gwei
Emitted Events:
| 444 |
EmotiCoin.Transfer( from=[Sender] 0x36e6309aa7a923fb111ae50b56bfb3cfb2256f89, to=0x0dfaB51e9D8A5fcD334554198ddDc5Fb7914A963, value=445846000000000000000000 )
|
Account State Difference:
| Address | Before | After | State Difference | ||
|---|---|---|---|---|---|
| 0x36E6309a...fB2256F89 | (EmotiCoin: Deployer) |
0.041839770387034519 Eth
Nonce: 395
|
0.041480022945803399 Eth
Nonce: 396
| 0.00035974744123112 | |
|
0x4838B106...B0BAD5f97
Miner
| (Titan Builder) | 23.230199608947409753 Eth | 23.230205049947409753 Eth | 0.000005441 | |
| 0x9985152b...c62e0A13F |
Execution Trace
EmotiCoin.transfer( recipient=0x0dfaB51e9D8A5fcD334554198ddDc5Fb7914A963, amount=445846000000000000000000 ) => ( True )
transfer[ERC20 (ln:72)]
_transfer[ERC20 (ln:73)]Transfer[ERC20 (ln:124)]
_msgSender[ERC20 (ln:73)]
// SPDX-License-Identifier: MIT
// Welcome to EmotiCoin, where innovation meets the future of memecoins.
// Our groundbreaking Reverse Split Protocol (RSP) is here to redefine the crypto experience.
// With a total of 84 captivating supply cuts, EmotiCoin is changing the game.
// Website: www.emoticoin.io
// Twitter: https://twitter.com/Emoticoin_io
// Telegram: https://t.me/emoticoin_io
// Instagram: https://www.instagram.com/emoticoin_io/
pragma solidity 0.8.20;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
contract ERC20 is Context, IERC20 {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function decimals() public view virtual override returns (uint8) {
return 18;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
}
function _createInitialSupply(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
}
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
contract EmotiCoin is Ownable, ERC20 {
mapping (address => bool) public whitelisted;
string public _1_x;
string public _2_telegram;
string public _3_website;
bool public tradingActive = false;
constructor() ERC20("EmotiCoin", "EMOTI"){
whitelisted[msg.sender] = true;
uint256 totalSupply = 777_777_777 * 1e18;
_1_x = "x.com/Emoticoin_io";
_2_telegram = "t.me/emoticoin_io";
_3_website = "Emoticoin.io";
_createInitialSupply(msg.sender, totalSupply);
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
if(!tradingActive){
require(whitelisted[to] || whitelisted[from], "Trading not active");
}
super._transfer(from, to, amount);
}
function enableTrading() external onlyOwner {
require(!tradingActive, "Trading already active");
tradingActive = true;
renounceOwnership();
}
function setWhitelisted(address account, bool exempt) external onlyOwner {
whitelisted[account] = exempt;
}
}