```\\nfunction swapTokensGetBalance(uint256 amount) private returns(uint256) {\\n    // capture the contract's current ETH balance.\\n    // this is so that we can capture exactly the amount of ETH that the\\n    // swap creates, and not make the liquidity event include any ETH that\\n    // has been manually sent to the contract\\n    uint256 initialBalance = address(this).balance;\\n\\n    // swap tokens for ETH\\n    swapTokensForEth(amount); \\n\\n    // how much ETH did we just swap into?\\n    uint256 newBalance = address(this).balance - initialBalance;\\n\\n    return newBalance;\\n}\\n```\\n