fix: add amount-in for bridge multitransaction param

This commit is contained in:
Cristian Lungu 2024-09-20 17:17:51 +03:00
parent 1ee16da0c7
commit 6022aa03f8
No known key found for this signature in database
GPG Key ID: 00D675EDE1B264D9
3 changed files with 7 additions and 2 deletions

View File

@ -470,11 +470,12 @@
:Amount amount-in)))))
(defn multi-transaction-command
[{:keys [from-address to-address from-asset to-asset amount-out multi-transaction-type]
[{:keys [from-address to-address from-asset to-asset amount-in amount-out multi-transaction-type]
:or {multi-transaction-type constants/multi-transaction-type-unknown}}]
{:fromAddress from-address
:toAddress to-address
:fromAsset from-asset
:toAsset to-asset
:fromAmount amount-out
:fromAmount amount-in
:toAmount amount-out
:type multi-transaction-type})

View File

@ -641,6 +641,7 @@
:to-address to-address
:from-asset token-id
:to-asset token-id
:amount-in (if eth-transfer? (:amount-in first-route) "0x0")
:amount-out (if eth-transfer? (:amount-out first-route) "0x0")
:multi-transaction-type multi-transaction-type})
transaction-paths

View File

@ -247,6 +247,9 @@
:amount-out (if eth-transfer?
(:amount-out swap-proposal)
"0x0")
:amount-in (if eth-transfer?
(:amount-in swap-proposal)
"0x0")
:multi-transaction-type
multi-transaction-type})
transaction-paths