Good Day Everyone
i am currently working on a smart contract now i have this error
i am needing some help to fix this
contracts/TheOblivion.sol:645:43: ParserError: OVM: SELFBALANCE is not implemented in the OVM. (We have no native ETH -- use deposited WETH instead!) _tLiquidTotal = _tLiquidTotal.add(address(this).balance); ^-------------------^
contracts/TheOblivion.sol:646:42: ParserError: OVM: SELFBALANCE is not implemented in the OVM. (We have no native ETH -- use deposited WETH instead!) TransferLiquidETH(liquidAddress, address(this).balance); ^-------------------^
function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
swapTokensForEth(contractTokenBalance);
_tLiquidTotal = _tLiquidTotal.add(address(this).balance);
TransferLiquidETH(liquidAddress, address(this).balance);
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this), // The contract
block.timestamp
);
}