Transfer the remainder to the user

Always remember to transfer all tokens left over from the swap or from your calls to the user's address, or your own contract address, at the end of the postHooks.

If you don't do this, there will likely be some funds left on the Squid Multicall Contract after your transaction has completed.

The best way to do this is to add a call sending the full ERC20 or NATIVE balance of the multicall to the address desired. Using the full ERC20 or Native balance in a call

Last updated