What special EVM instruction makes a contract send all its leftover money to another wallet when it stops existing?
The special EVM instruction that makes a contract send all its leftover money to another wallet when it stops existing is `SELFDESTRUCT`. The Ethereum Virtual Machine (EVM) is the runtime environment that executes smart contract code on the Ethereum blockchain. An instruction, also known as an opcode, is a single operation that the EVM can perform. When the `SELFDESTRUCT` instruction is executed within a smart contract, it permanently removes the contract's code and storage from the blockchain state, which means the contract stops existing or is terminated. Crucially, as part of this process, the `SELFDESTRUCT` instruction automatically sends all the remaining Ether balance held by the contract to a specified target address. This target address is provided as an argument to the `SELFDESTRUCT` instruction, allowing the contract to direct its leftover funds to another wallet or contract upon its termination.