As we always try to ensure that the swap is done at the rate the user has confirmed from the UI, the algorithm can cancel part of the route, if the rate in it has become less attractive. This tool is called “partial fill,” and the application of it doesn’t lead to a failed transaction. The user’s unswapped tokens just return to their wallet.

Thanks to the dynamic fill tool, parts of the swap can immediately switch to another protocol in the split or path that offers better rates.

Did this answer your question?