fix: add amount-in for bridge multitransaction param
This commit is contained in:
parent
1ee16da0c7
commit
6022aa03f8
|
@ -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})
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue