If your transaction fails, you still pay a network fee (also known as gas). It covers the work validators on the network do to finalize transactions, validate them into blocks, and secure the blockchain. This isn't a fee that Phantom charges, so we can't refund it.
What happens when a transaction fails?
When you send tokens, interact with a smart contract, or take any other action on the blockchain, you pay for the required computation. This cost is measured in gas, and is paid in the native token of the blockchain where the transaction occurs. If you perform a cross-chain swap, you pay gas fees on both blockchains.
If something goes wrong during the computation, such as hitting compute limits, exceeding slippage, or calling a contract that returns an error, the transaction fails.
Even when that happens, you still pay for that computation. The network used resources to try to process your transaction, just as it would for one that succeeds.