This fixes the validation of a trade proposal's price, which hasn't been updated after moving to tdex-protobuf@v2.
This also fixes the expiration of the trades by correctly dereferencing elements of a slice within a loop.
Last but not least, this increases the waiting time before configuring the CLI in the e2e tests, which seems to be slower on CI rather than it is locally.
Change in loop style for checkForPendingTrades()
The for loop in this function has been updated to a more modern range loop for cleaner code and better readability.
Removed feesToAdd parameter in TradePropose()
The feesToAdd parameter has been removed from the isValidTradePrice() function call, simplifying the function's usage.
Updates to the utils:
Added feeAsset, otherAmount, and otherAsset variables for enhanced functionality.
Renamed the amount variable to expectedAmount for clearer context.
Replaced the GetFee* methods in preview with swapRequest's methods while retaining the asset-related functionality.
This fixes the validation of a trade proposal's price, which hasn't been updated after moving to tdex-protobuf@v2.
This also fixes the expiration of the trades by correctly dereferencing elements of a slice within a loop.
Last but not least, this increases the waiting time before configuring the CLI in the e2e tests, which seems to be slower on CI rather than it is locally.