Burn Function

smart contract code
for the burn function

“It tells you that the contract has inherent rights to communicate with Uniswap. It means that you can tell Uniswap to balance the liquidity and sent excess native token to the dead address for no payment. It’s obviously a codebase work around to the issue of paying for buybacks.”

Burn Wallet:
https://etherscan.io/token/0xebe05c1fc5a8ceb0fc3c1d2c22097bde76cb1773?a=0xdead

Contract:
https://etherscan.io/token/0xebe05c1fc5a8ceb0fc3c1d2c22097bde76cb1773#code

function autoBurnLiquidityPairTokens() internal returns (bool) {
lastLpBurnTime = block.timestamp;

// get balance of liquidity pair
uint256 liquidityPairBalance = this.balanceOf(uniswapV2Pair);

// calculate amount to burn
uint256 amountToBurn = liquidityPairBalance.mul(percentForLPBurn).div(10000);

// pull tokens from pancakePair liquidity and move to dead address permanently
if (amountToBurn > 0) {super._transfer(uniswapV2Pair, address(0xdead), amountToBurn);}

//sync price since this is not in a swap transaction!
IUniswapV2Pair pair = IUniswapV2Pair(uniswapV2Pair);pair.sync();emit AutoNukeLP();
return true;
}

05/03/2024 12:15:37 AM