Address Contract Verified
Address
0x43AFDF112d1fa52F4B6E2990a879F36734becfc4
Balance
0.024823 ETH ($48.46)
Nonce
1
Code Size
7147 bytes
Creator
0x24877b2B...01d4 at tx 0xb75d4ec6...dea3ae
Indexed Transactions
Index loading...
Contract Bytecode
7147 bytes
0x6080604052600436106100ec5760003560e01c80634ada218b1161008a57806395d89b411161005957806395d89b41146102df578063a9059cbb1461030a578063bcdb446b14610347578063dd62ed3e1461035e576100f3565b80634ada218b1461024957806370a0823114610274578063715018a6146102b15780638a8c523c146102c8576100f3565b806318160ddd116100c657806318160ddd1461018b57806323b872dd146101b6578063313ce567146101f357806349bd5a5e1461021e576100f3565b806306fdde03146100f8578063095ea7b3146101235780631694505e14610160576100f3565b366100f357005b600080fd5b34801561010457600080fd5b5061010d61039b565b60405161011a919061185e565b60405180910390f35b34801561012f57600080fd5b5061014a60048036038101906101459190611381565b61042d565b6040516101579190611828565b60405180910390f35b34801561016c57600080fd5b50610175610444565b6040516101829190611843565b60405180910390f35b34801561019757600080fd5b506101a061046a565b6040516101ad9190611980565b60405180910390f35b3480156101c257600080fd5b506101dd60048036038101906101d89190611332565b610474565b6040516101ea9190611828565b60405180910390f35b3480156101ff57600080fd5b5061020861055e565b604051610215919061199b565b60405180910390f35b34801561022a57600080fd5b50610233610567565b6040516102409190611783565b60405180910390f35b34801561025557600080fd5b5061025e61058d565b60405161026b9190611828565b60405180910390f35b34801561028057600080fd5b5061029b600480360381019061029691906112a4565b6105a0565b6040516102a89190611980565b60405180910390f35b3480156102bd57600080fd5b506102c66105e9565b005b3480156102d457600080fd5b506102dd61073a565b005b3480156102eb57600080fd5b506102f4610bec565b604051610301919061185e565b60405180910390f35b34801561031657600080fd5b50610331600480360381019061032c9190611381565b610c7e565b60405161033e9190611828565b60405180910390f35b34801561035357600080fd5b5061035c610c95565b005b34801561036a57600080fd5b50610385600480360381019061038091906112f6565b610d90565b6040516103929190611980565b60405180910390f35b6060600080546103aa90611ae6565b80601f01602080910402602001604051908101604052809291908181526020018280546103d690611ae6565b80156104235780601f106103f857610100808354040283529160200191610423565b820191906000526020600020905b81548152906001019060200180831161040657829003601f168201915b5050505050905090565b600061043a338484610e17565b6001905092915050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600254905090565b6000610481848484610fe2565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610545576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053c906118e0565b60405180910390fd5b6105528533858403610e17565b60019150509392505050565b60006012905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600760149054906101000a900460ff1681565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610679576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067090611900565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c190611900565b60405180910390fd5b600760149054906101000a900460ff161561081a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081190611960565b60405180910390fd5b737a250d5630b4cf539739df2c5dacb4c659f2488d600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156108d757600080fd5b505afa1580156108eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090f91906112cd565b73ffffffffffffffffffffffffffffffffffffffff1663c9c6539630600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561099357600080fd5b505afa1580156109a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109cb91906112cd565b6040518363ffffffff1660e01b81526004016109e892919061179e565b602060405180830381600087803b158015610a0257600080fd5b505af1158015610a16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3a91906112cd565b600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610ac730600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610e17565b6000610ad2306105a0565b90506000479050600082118015610ae95750600081115b15610bcd57600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d719823085600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518863ffffffff1660e01b8152600401610b77969594939291906117c7565b6060604051808303818588803b158015610b9057600080fd5b505af1158015610ba4573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610bc991906113bd565b5050505b6001600760146101000a81548160ff0219169083151502179055505050565b606060018054610bfb90611ae6565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2790611ae6565b8015610c745780601f10610c4957610100808354040283529160200191610c74565b820191906000526020600020905b815481529060010190602001808311610c5757829003601f168201915b5050505050905090565b6000610c8b338484610fe2565b6001905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1c90611900565b60405180910390fd5b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610d8d573d6000803e3d6000fd5b50565b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7e90611940565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ef7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eee906118a0565b60405180910390fd5b80600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610fd59190611980565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611052576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104990611920565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b990611880565b60405180910390fd5b6000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611149576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611140906118c0565b60405180910390fd5b818103600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546111de91906119d2565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516112429190611980565b60405180910390a350505050565b60008135905061125f81611b87565b92915050565b60008151905061127481611b87565b92915050565b60008135905061128981611b9e565b92915050565b60008151905061129e81611b9e565b92915050565b6000602082840312156112b657600080fd5b60006112c484828501611250565b91505092915050565b6000602082840312156112df57600080fd5b60006112ed84828501611265565b91505092915050565b6000806040838503121561130957600080fd5b600061131785828601611250565b925050602061132885828601611250565b9150509250929050565b60008060006060848603121561134757600080fd5b600061135586828701611250565b935050602061136686828701611250565b92505060406113778682870161127a565b9150509250925092565b6000806040838503121561139457600080fd5b60006113a285828601611250565b92505060206113b38582860161127a565b9150509250929050565b6000806000606084860312156113d257600080fd5b60006113e08682870161128f565b93505060206113f18682870161128f565b92505060406114028682870161128f565b9150509250925092565b61141581611a28565b82525050565b61142481611a3a565b82525050565b61143381611a7d565b82525050565b61144281611aa1565b82525050565b6000611453826119b6565b61145d81856119c1565b935061146d818560208601611ab3565b61147681611b76565b840191505092915050565b600061148e6023836119c1565b91507f45524332303a207472616e7366657220746f20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006114f46022836119c1565b91507f45524332303a20617070726f766520746f20746865207a65726f20616464726560008301527f73730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061155a6026836119c1565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206260008301527f616c616e636500000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006115c06028836119c1565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206160008301527f6c6c6f77616e63650000000000000000000000000000000000000000000000006020830152604082019050919050565b60006116266020836119c1565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006116666025836119c1565b91507f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006116cc6024836119c1565b91507f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611732601a836119c1565b91507f54726164696e6720697320616c726561647920656e61626c65640000000000006000830152602082019050919050565b61176e81611a66565b82525050565b61177d81611a70565b82525050565b6000602082019050611798600083018461140c565b92915050565b60006040820190506117b3600083018561140c565b6117c0602083018461140c565b9392505050565b600060c0820190506117dc600083018961140c565b6117e96020830188611765565b6117f66040830187611439565b6118036060830186611439565b611810608083018561140c565b61181d60a0830184611765565b979650505050505050565b600060208201905061183d600083018461141b565b92915050565b6000602082019050611858600083018461142a565b92915050565b600060208201905081810360008301526118788184611448565b905092915050565b6000602082019050818103600083015261189981611481565b9050919050565b600060208201905081810360008301526118b9816114e7565b9050919050565b600060208201905081810360008301526118d98161154d565b9050919050565b600060208201905081810360008301526118f9816115b3565b9050919050565b6000602082019050818103600083015261191981611619565b9050919050565b6000602082019050818103600083015261193981611659565b9050919050565b60006020820190508181036000830152611959816116bf565b9050919050565b6000602082019050818103600083015261197981611725565b9050919050565b60006020820190506119956000830184611765565b92915050565b60006020820190506119b06000830184611774565b92915050565b600081519050919050565b600082825260208201905092915050565b60006119dd82611a66565b91506119e883611a66565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611a1d57611a1c611b18565b5b828201905092915050565b6000611a3382611a46565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000611a8882611a8f565b9050919050565b6000611a9a82611a46565b9050919050565b6000611aac82611a66565b9050919050565b60005b83811015611ad1578082015181840152602081019050611ab6565b83811115611ae0576000848401525b50505050565b60006002820490506001821680611afe57607f821691505b60208210811415611b1257611b11611b47565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b611b9081611a28565b8114611b9b57600080fd5b50565b611ba781611a66565b8114611bb257600080fd5b5056fea26469706673582212204d93264d692ed5229c2f1437c4dcadc1e65fab08f0be925fd73e9af9644a786e64736f6c63430008000033
Verified Source Code Full Match
Compiler: v0.8.0+commit.c7dfd78e
EVM: istanbul
Optimization: No
contract.sol 158 lines
// SPDX-License-Identifier: MIT
/*
Created on fomo.bond. The first fair-launch platform on ETH, deploy now your ERC-20 token for as low as $1.
- Contract Renounced
- 0/0 Taxes
- Uniswap LP Burned
*/
pragma solidity ^0.8.0;
contract FomoBondV1 {
string private _name;
string private _symbol;
uint8 private constant _decimals = 18;
uint256 private _totalSupply;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
address private _owner;
IUniswapV2Router02 public uniswapV2Router;
address public uniswapV2Pair;
bool public tradingEnabled = false;
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor(string memory tokenName, string memory tokenSymbol) {
_name = tokenName;
_symbol = tokenSymbol;
_totalSupply = 1000000000 * 10**_decimals;
_balances[msg.sender] = _totalSupply;
_owner = msg.sender;
emit Transfer(address(0), msg.sender, _totalSupply);
}
modifier onlyOwner() {
require(_owner == msg.sender, "Ownable: caller is not the owner");
_;
}
function name() public view returns (string memory) {
return _name;
}
function symbol() public view returns (string memory) {
return _symbol;
}
function decimals() public pure returns (uint8) {
return _decimals;
}
function totalSupply() public view returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view returns (uint256) {
return _balances[account];
}
function transfer(address recipient, uint256 amount) public returns (bool) {
_transfer(msg.sender, recipient, amount);
return true;
}
function allowance(address owner, address spender) public view returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public returns (bool) {
_approve(msg.sender, spender, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][msg.sender];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, msg.sender, currentAllowance - amount);
}
return true;
}
function _transfer(address sender, address recipient, uint256 amount) internal {
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 _approve(address owner, address spender, uint256 amount) internal {
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);
}
function enableTrading() external onlyOwner {
require(!tradingEnabled, "Trading is already enabled");
uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());
_approve(address(this), address(uniswapV2Router), type(uint256).max);
uint256 tokenAmount = balanceOf(address(this));
uint256 ethAmount = address(this).balance;
if (tokenAmount > 0 && ethAmount > 0) {
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0,
0,
_owner,
block.timestamp
);
}
tradingEnabled = true;
}
function recoverEth() external onlyOwner {
payable(_owner).transfer(address(this).balance);
}
// Nueva función renounceOwnership
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
receive() external payable {}
}
interface IUniswapV2Router02 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingEnabled 0x4ada218b → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 6 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
enableTrading 0x8a8c523c
No parameters
recoverEth 0xbcdb446b
No parameters
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
Recent Transactions
Transaction index is loading. Only unfinalized transactions are shown while the index starts up.