Tipjar
contract. Lots of people are sending tips to it. Suppose you don't want to tip the campaign if they've already reached their funding goal. Since you don't know when your transaction will get processed, or whose transactions will come ahead of yours, you can't reliably calculate your tip beforehand.pragma solidity ^0.8.0; contract ConditionalTipper { constructor(address payable tipjar, uint256 limit) payable { if (tipjar.balance < limit) { tipjar.transfer(limit - tipjar.balance); } selfdestruct(payable(msg.sender)); } }