Error when exchanging (purchasing) assets

After making the changes, I tested the functionality of the platform again - you got an excellent result, almost everything works properly. Transactions are fast, no problems.
I noticed two main downsides:

  1. The problem of gas to repay the loan. You still need to set the gas manually, otherwise the transaction will not go through.
  2. After refreshing the page, I received the following error when trying to exchange assets, refreshing the page again helped.