Make sure the token input is located in a single address. With no other tokens in the address.

The whole token amount will be transfered.

You can use the above HEX OP_RETURN to verify the swap transaction. It should match the output 0 script, minus the first 4 chars "6a04"

BCH SLP Swap Howto