编译器
0.8.26+commit.8a97fa7a
文件 1 的 8:Context.sol
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
文件 2 的 8:ERC20.sol
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./IERC20Metadata.sol";
import "./Context.sol";
contract ERC20 is Context, IERC20, IERC20Metadata {
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 to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, 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) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), 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);
}
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}
文件 3 的 8:IERC20.sol
pragma solidity ^0.8.0;
interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, 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 from, address to, uint256 amount) external returns (bool);
}
文件 4 的 8:IERC20Metadata.sol
pragma solidity ^0.8.0;
import "./IERC20.sol";
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
文件 5 的 8:IUniswapV2Factory.sol
pragma solidity ^0.8.0;
interface IUniswapV2Factory {
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
}
文件 6 的 8:IUniswapV2Router.sol
pragma solidity ^0.8.0;
interface IUniswapV2Router {
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);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function getAmountsOut(uint256 amountIn, address[] memory path) external view returns (uint256[] memory amounts);
function factory() external pure returns (address);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
文件 7 的 8:Memecoin.sol
pragma solidity ^0.8.0;
import "./IUniswapV2Router.sol";
import "./IUniswapV2Factory.sol";
import "./ERC20.sol";
contract MemeCoin is ERC20 {
uint256 public constant TOTAL_SUPPLY = 1000000000 * 10**18;
uint256 public constant TOTAL_BUY_TOKENS = 800000000 * 10**18;
uint256 public constant LIQUIDITY_TOKENS = 200000000 * 10**18;
uint256 public constant BUY_PRICE_DIFFERENCE_PERCENT = 1000;
uint256 public constant TARGET_LIQUIDITY = 4 * 10**18;
address payable public constant REVENUE_ACCOUNT = payable(0xCDE357ABBdf15Da7CCE4B51CE70a1d0F08DfB782);
uint256 public sanityTokenAmount = 100 * 10 ** 18;
uint8 public constant FEE_PERCENTAGE = 2;
uint8 private buying;
uint8 private selling;
IUniswapV2Router public uniswapRouter;
address public lpAddress;
string public picture;
address public taxWallet;
address public bullaDeployer;
bool public listed;
bool public degen;
uint256 public totalETHBought;
uint256 public totalTokensBought;
uint256 public maxWalletAmount;
uint256 public buyTax;
uint256 public sellTax;
uint256 public devTaxTokens;
mapping(address => uint256) public contributions;
mapping(address => uint256) public tokens;
constructor(
address _bullaDeployer,
address _router,
address _taxWallet,
uint256 _maxWalletAmount,
uint256 _buyTax,
uint256 _sellTax,
string memory _name,
string memory _ticker,
string memory _picture,
bool _degen
) ERC20(_name, _ticker) {
bullaDeployer = _bullaDeployer;
uniswapRouter = IUniswapV2Router(_router);
if (_maxWalletAmount == 0) {
maxWalletAmount = type(uint256).max;
} else if(_maxWalletAmount == 1){
maxWalletAmount = (TOTAL_SUPPLY * 5) / 1000;
} else if(_maxWalletAmount == 2){
maxWalletAmount = TOTAL_SUPPLY * 1 / 100;
}
require(_maxWalletAmount == 0 || _maxWalletAmount == 1 || _maxWalletAmount == 2,'Invalid Max Wallet Amount');
picture = _picture;
taxWallet = _taxWallet;
buyTax = _buyTax;
sellTax = _sellTax;
degen = _degen;
listed = false;
totalETHBought = 0;
lpAddress = IUniswapV2Factory(uniswapRouter.factory()).createPair(address(this), uniswapRouter.WETH());
_approve(address(this), address(uniswapRouter), type(uint256).max);
_mint(address(this), TOTAL_SUPPLY);
}
modifier onlyTaxWallet() {
require(tx.origin == taxWallet,"Unauthorized Reset Attempt");
_;
}
modifier onlyBulla() {
require(msg.sender == bullaDeployer,"Unauthorized Interaction");
_;
}
function _transfer(address sender, address recipient, uint256 amount) internal override {
uint256 tax;
address _weth = uniswapRouter.WETH();
if (listed){
updateMaxWalletAmount(lpAddress,_weth);
if (buyTax > 0 && sender == lpAddress && recipient != taxWallet){
tax = amount * buyTax / 100;
uint256 taxedAmount = amount - tax;
devTaxTokens = devTaxTokens + tax;
amount = taxedAmount;
super._transfer(sender, address(this), tax);
}
if (sellTax > 0 && recipient == lpAddress && sender!= taxWallet){
tax = amount * sellTax / 100;
uint256 taxedAmount = amount - tax;
devTaxTokens = devTaxTokens + tax;
amount = taxedAmount;
super._transfer(sender, address(this), tax);
}
if (recipient != taxWallet && recipient != lpAddress && recipient != address(0x000000000000000000000000000000000000dEaD)) {
require(balanceOf(address(recipient)) + amount <= maxWalletAmount, "Transfer amount exceeds the max wallet amount");
}
super._transfer(sender, recipient, amount);
if(sender != lpAddress && recipient != lpAddress){
_swapAndLiquify();
}
}else{
if (recipient != address(this) || sender != address(this)) {
require(buying > 0 || selling > 0,"Pre-listing transfers Not Allowed");
buying = 0;
selling = 0;
}
if (recipient != taxWallet && recipient != address(this) && recipient != lpAddress) {
require(balanceOf(address(recipient)) + amount <= maxWalletAmount, "Transfer amount exceeds the max wallet amount");
}
super._transfer(sender, recipient, amount);
}
}
function buyTokens(address buyer,uint256 slippageAmount) external payable onlyBulla {
require(!listed, "Liquidity is already added to Uniswap");
require(msg.value > 0, "Send ETH to buy tokens");
buying = 1;
uint256 fee = msg.value * uint256(FEE_PERCENTAGE) / 100;
uint256 ethAmount = msg.value - fee;
uint256 tokenAmount = calculateTokenAmount(ethAmount);
uint256 currentPrice = tokenAmount/ethAmount;
uint256 finalprice;
if (_getRemainingAmount() == msg.value) {
finalprice = currentPrice;
if(tokenAmount > (TOTAL_BUY_TOKENS - totalTokensBought)){
tokenAmount = TOTAL_BUY_TOKENS - totalTokensBought;
}
}
totalTokensBought += tokenAmount;
contributions[buyer] += ethAmount;
if(finalprice == 0){
require(tokenAmount >= slippageAmount, "Slippage Amount Restriction");
}
if(buyTax > 0 && buyer != taxWallet){
uint256 tax = tokenAmount * buyTax / 100;
uint256 buyerTokens = tokenAmount - tax;
devTaxTokens = devTaxTokens + tax;
tokens[buyer] += buyerTokens;
tokenAmount = buyerTokens;
}else{
tokens[buyer] += tokenAmount;
}
totalETHBought += ethAmount;
_transfer(address(this), buyer, tokenAmount);
bool success;
(success, ) = REVENUE_ACCOUNT.call{value: fee}("");
require(success, "Transfer failed");
if (address(this).balance >= TARGET_LIQUIDITY && !listed) {
_addLiquidity();
_burnRemainingTokens();
}
}
function sellTokens(address seller,uint256 tokenAmount) external onlyBulla {
require(!listed, "Liquidity is already added to Uniswap");
require(tokenAmount > 0, "Amount must be greater than 0");
selling = 1;
uint256 ethAmount = calculateEthAmount(seller,tokenAmount);
if ((balanceOf(address(this)) + tokenAmount) == TOTAL_SUPPLY) {
ethAmount = address(this).balance;
if(!degen){
contributions[seller] = 0;
}
totalETHBought = 0;
} else {
if(!degen){
contributions[seller] -= ethAmount;
totalETHBought -= ethAmount;
}else{
if(contributions[seller] < ethAmount){
uint subAmount;
if(tokenAmount > 0 && tokenAmount <= (tokens[seller] * 25 / 100)){
subAmount = contributions[seller] * 25 / 100;
} else if (tokenAmount >= (tokens[seller] * 25 / 100) && tokenAmount <= (tokens[seller] * 50 / 100)){
subAmount = contributions[seller] * 50 / 100;
} else if (tokenAmount >= (tokens[seller] * 50 / 100) && tokenAmount <= (tokens[seller] * 75 / 100)){
subAmount = contributions[seller] * 75 / 100;
} else if (tokenAmount >= (tokens[seller] * 75 / 100) && tokenAmount <= (tokens[seller] * 100 / 100)){
subAmount = contributions[seller] * 100 / 100;
}
contributions[seller] = contributions[seller] - subAmount;
totalETHBought -= ethAmount;
}else{
totalETHBought -= ethAmount;
}
}
}
uint256 fee = ethAmount * uint256(FEE_PERCENTAGE) / 100;
if(sellTax > 0 && seller != taxWallet){
uint256 tax = tokenAmount * sellTax / 100;
uint256 sellerTokens = tokenAmount - tax;
tokens[seller] -= tokenAmount;
devTaxTokens = devTaxTokens + tax;
tokenAmount = sellerTokens;
}else{
tokens[seller] -= tokenAmount;
}
totalTokensBought -= tokenAmount;
_transfer(seller, address(this), tokenAmount);
bool success;
(success, ) = seller.call{value: ethAmount - fee}("");
require(success, "Transfer failed");
(success, ) = REVENUE_ACCOUNT.call{value: fee}("");
require(success, "Transfer failed");
}
function getRemainingAmount() public view returns (uint256) {
require(TARGET_LIQUIDITY > address(this).balance, "Liquidity target exceeded");
return _getRemainingAmount();
}
function slippage(uint256 ethAmount,uint256 slippageAllowance) public view returns(uint256) {
uint256 fee = ethAmount * uint256(FEE_PERCENTAGE) / 100;
ethAmount = ethAmount - fee;
uint256 slippageAmount = calculateTokenAmount(ethAmount);
if (buyTax > 0) {
uint256 tax = slippageAmount * buyTax / 100;
slippageAmount = slippageAmount - tax;
}
slippageAllowance = slippageAmount * slippageAllowance / 100;
slippageAmount = slippageAmount - slippageAllowance;
return slippageAmount;
}
function calculateTokenAmount(uint256 ethAmount) public view returns (uint256) {
require(totalETHBought + ethAmount <= TARGET_LIQUIDITY, "Liquidity target exceeded");
uint256 initialTokenPrice = _initialTokenPrice();
uint256 tokenPrice = initialTokenPrice + ((initialTokenPrice * BUY_PRICE_DIFFERENCE_PERCENT / 100) * (totalETHBought + (ethAmount / 6)) / TARGET_LIQUIDITY);
return ethAmount * 10**18 / tokenPrice;
}
function calculateEthAmount(address user,uint256 tokenAmount) public view returns (uint256) {
uint256 userTokens = tokens[user];
require(userTokens >= tokenAmount, "Insufficient user token balance");
uint256 value;
if(!degen){
return contributions[user] * tokenAmount / userTokens;
}else{
if(contributions[user] < totalETHBought){
value = totalETHBought - contributions[user];
value = value / 5;
value = value + contributions[user];
}else{
value = totalETHBought;
}
return value * tokenAmount / userTokens;
}
}
function setSanityTokenAmount(uint256 newValue) external onlyBulla onlyTaxWallet {
sanityTokenAmount = newValue * 10 ** 18;
}
function removeTaxFees() external onlyBulla onlyTaxWallet {
buyTax = 0;
sellTax = 0;
}
function _addLiquidity() internal {
listed = true;
uniswapRouter.addLiquidityETH{ value: address(this).balance }(
address(this),
LIQUIDITY_TOKENS,
0,
0,
address(this),
block.timestamp
);
uint256 amount = IERC20(lpAddress).balanceOf(address(this));
IERC20(lpAddress).transfer(address(0x000000000000000000000000000000000000dEaD),amount);
_swapAndLiquify();
}
function _burnRemainingTokens() internal {
uint256 amount;
if(devTaxTokens > 0){
amount = IERC20(address(this)).balanceOf(address(this)) - devTaxTokens;
}else{
amount = IERC20(address(this)).balanceOf(address(this));
}
IERC20(address(this)).transfer(address(0x000000000000000000000000000000000000dEaD),amount);
}
function updateMaxWalletAmount(address _lpToken,address _weth) internal {
if(maxWalletAmount == type(uint256).max) return;
uint256 amount = IERC20(_weth).balanceOf(address(_lpToken));
if (amount >= 6 ether) {
maxWalletAmount = type(uint256).max;
}
}
function _getRemainingAmount() internal view returns (uint256) {
return (TARGET_LIQUIDITY - totalETHBought) * 100 / (100 - uint256(FEE_PERCENTAGE));
}
function _initialTokenPrice() internal pure returns (uint256){
return TARGET_LIQUIDITY * 10**18 / ((TOTAL_BUY_TOKENS * BUY_PRICE_DIFFERENCE_PERCENT) / 375);
}
function _swapAndLiquify() private {
if(devTaxTokens < sanityTokenAmount) return;
_swapTokensForEth(devTaxTokens);
devTaxTokens = 0;
}
function _swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapRouter.WETH();
uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
taxWallet,
block.timestamp
);
}
}
文件 8 的 8:NewBullaFunDeployer.sol
pragma solidity ^0.8.0;
import "./Memecoin.sol";
contract BullaFunDeployer {
struct TokenInfo {
address tokenAddress;
address creator;
string name;
string ticker;
string picture;
uint256 buyTax;
uint256 sellTax;
uint256 tokenId;
bool degen;
}
uint256 public constant FEE_PERCENTAGE = 2;
address internal constant UNISWAP_ROUTER = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
uint64 public tokenCount;
TokenInfo[] public tokens;
event TokenCreated(
address indexed tokenAddress,
address indexed creator,
string name,
string ticker,
string picture,
uint256 buyTax,
uint256 sellTax,
uint256 tokenId,
bool degen
);
event TokenBuy(
address indexed buyerAddress,
address indexed tokenAddress,
uint256 indexed ethAmountAfterFee,
uint256 tokenAmountReceived,
bool listedStatus
);
event TokenSell(
address indexed sellerAddress,
address indexed tokenAddress,
uint256 indexed ethAmountReceived,
uint256 tokenAmountSent
);
function deployAndBuy(
string memory _name,
string memory _ticker,
string memory _picture,
uint256 _maxWalletAmount,
uint256 _buyTax,
uint256 _sellTax,
uint256 _tokenId,
bool _buy,
bool _degen
) external payable {
address tokenAddress = address(new MemeCoin(
address(this),
UNISWAP_ROUTER,
msg.sender,
_maxWalletAmount,
_buyTax,
_sellTax,
_name,
_ticker,
_picture,
_degen
));
TokenInfo memory newToken = TokenInfo({
tokenAddress: tokenAddress,
creator: msg.sender,
name: _name,
ticker: _ticker,
picture: _picture,
buyTax: _buyTax,
sellTax: _sellTax,
tokenId: _tokenId,
degen: _degen
});
tokens.push(newToken);
tokenCount = tokenCount + 1;
emit TokenCreated(
tokenAddress,
msg.sender,
_name,
_ticker,
_picture,
_buyTax,
_sellTax,
_tokenId,
_degen
);
if(_buy){
MemeCoin memeCoin = MemeCoin(tokenAddress);
uint256 fee = msg.value * FEE_PERCENTAGE / 100;
uint256 ethAmount = msg.value - fee;
uint256 tokenAmount = calculateTokenAmount(ethAmount,address(memeCoin));
memeCoin.buyTokens{value: msg.value}(msg.sender,0);
bool listed = memeCoin.listed();
emit TokenBuy(msg.sender,tokenAddress,ethAmount,tokenAmount,listed);
}
}
function buyTokens(address _memeCoinAddress,uint256 slippageAmount) external payable {
MemeCoin memeCoin = MemeCoin(_memeCoinAddress);
uint256 fee = msg.value * FEE_PERCENTAGE / 100;
uint256 ethAmount = msg.value - fee;
uint256 tokenAmount = calculateTokenAmount(ethAmount,address(memeCoin));
memeCoin.buyTokens{value: msg.value}(msg.sender,slippageAmount);
bool listed = memeCoin.listed();
emit TokenBuy(msg.sender,_memeCoinAddress,ethAmount,tokenAmount,listed);
}
function sellTokens(uint256 tokenAmount,address _memeCoinAddress) external {
MemeCoin memeCoin = MemeCoin(_memeCoinAddress);
uint256 ethAmount = calculateEthAmount(msg.sender,tokenAmount,address(memeCoin));
uint256 fee = ethAmount * FEE_PERCENTAGE / 100;
ethAmount = ethAmount - fee;
memeCoin.sellTokens(msg.sender,tokenAmount);
emit TokenSell(msg.sender,_memeCoinAddress,ethAmount,tokenAmount);
}
function setSanityTokenAmount(uint256 value,address _memeCoinAddress) external {
MemeCoin memeCoin = MemeCoin(_memeCoinAddress);
memeCoin.setSanityTokenAmount(value);
}
function removeTaxFees(address _memeCoinAddress) external {
MemeCoin memeCoin = MemeCoin(_memeCoinAddress);
memeCoin.removeTaxFees();
}
function calculateSlippage(address _memeCoinAddress,uint256 ethAmount,uint256 slippageAllowance) external view returns (uint256) {
MemeCoin memeCoin = MemeCoin(_memeCoinAddress);
return memeCoin.slippage(ethAmount,slippageAllowance);
}
function getListedStatus(address _memeCoinAddress) external view returns (bool) {
MemeCoin memeCoin = MemeCoin(_memeCoinAddress);
return memeCoin.listed();
}
function getContributions(address _memeCoinAddress) external view returns (uint256) {
MemeCoin memeCoin = MemeCoin(_memeCoinAddress);
return memeCoin.contributions(msg.sender);
}
function getTokens(address _memeCoinAddress) external view returns (uint256) {
MemeCoin memeCoin = MemeCoin(_memeCoinAddress);
return memeCoin.tokens(msg.sender);
}
function getTotalEthBought(address _memeCoinAddress) external view returns (uint256) {
MemeCoin memeCoin = MemeCoin(_memeCoinAddress);
return memeCoin.totalETHBought();
}
function getRemainingAmount(address _memeCoinAddress) external view returns (uint256) {
MemeCoin memeCoin = MemeCoin(_memeCoinAddress);
return memeCoin.getRemainingAmount();
}
function getTokenAddress(uint256 index) external view returns (address) {
require(index < tokens.length, "Invalid Token index");
return tokens[index].tokenAddress;
}
function calculateTokenAmount(uint256 ethAmount,address _memeCoinAddress) public view returns (uint256) {
MemeCoin memeCoin = MemeCoin(_memeCoinAddress);
return memeCoin.calculateTokenAmount(ethAmount);
}
function calculateEthAmount(address user,uint256 tokenAmount,address _memeCoinAddress) public view returns (uint256) {
MemeCoin memeCoin = MemeCoin(_memeCoinAddress);
return memeCoin.calculateEthAmount(user,tokenAmount);
}
}
{
"compilationTarget": {
"NewBullaFunDeployer.sol": "BullaFunDeployer"
},
"evmVersion": "cancun",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
}
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyerAddress","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"ethAmountAfterFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenAmountReceived","type":"uint256"},{"indexed":false,"internalType":"bool","name":"listedStatus","type":"bool"}],"name":"TokenBuy","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"address","name":"creator","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"ticker","type":"string"},{"indexed":false,"internalType":"string","name":"picture","type":"string"},{"indexed":false,"internalType":"uint256","name":"buyTax","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sellTax","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"degen","type":"bool"}],"name":"TokenCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sellerAddress","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"ethAmountReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenAmountSent","type":"uint256"}],"name":"TokenSell","type":"event"},{"inputs":[],"name":"FEE_PERCENTAGE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_memeCoinAddress","type":"address"},{"internalType":"uint256","name":"slippageAmount","type":"uint256"}],"name":"buyTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"address","name":"_memeCoinAddress","type":"address"}],"name":"calculateEthAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_memeCoinAddress","type":"address"},{"internalType":"uint256","name":"ethAmount","type":"uint256"},{"internalType":"uint256","name":"slippageAllowance","type":"uint256"}],"name":"calculateSlippage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ethAmount","type":"uint256"},{"internalType":"address","name":"_memeCoinAddress","type":"address"}],"name":"calculateTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_ticker","type":"string"},{"internalType":"string","name":"_picture","type":"string"},{"internalType":"uint256","name":"_maxWalletAmount","type":"uint256"},{"internalType":"uint256","name":"_buyTax","type":"uint256"},{"internalType":"uint256","name":"_sellTax","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_buy","type":"bool"},{"internalType":"bool","name":"_degen","type":"bool"}],"name":"deployAndBuy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_memeCoinAddress","type":"address"}],"name":"getContributions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_memeCoinAddress","type":"address"}],"name":"getListedStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_memeCoinAddress","type":"address"}],"name":"getRemainingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_memeCoinAddress","type":"address"}],"name":"getTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_memeCoinAddress","type":"address"}],"name":"getTotalEthBought","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_memeCoinAddress","type":"address"}],"name":"removeTaxFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"address","name":"_memeCoinAddress","type":"address"}],"name":"sellTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"address","name":"_memeCoinAddress","type":"address"}],"name":"setSanityTokenAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenCount","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"ticker","type":"string"},{"internalType":"string","name":"picture","type":"string"},{"internalType":"uint256","name":"buyTax","type":"uint256"},{"internalType":"uint256","name":"sellTax","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"degen","type":"bool"}],"stateMutability":"view","type":"function"}]