How to get a contract's balance in Solidity?
How do I get the balance of a contract with
solidity? I know
web3.eth.getBalance(), but that's to get the contract balance after it has been deployed.
Is there a standard way of doing this, or do I have to have a separate var that
uint256that keeps track of the total balance?