Skip to content

Commit

Permalink
fix(wallet)_: broken swap and bridge for erc20 tokens fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
saledjenic committed Nov 19, 2024
1 parent 742690c commit 7d288a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/wallet/responses/router_transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type RouterSentTransaction struct {
FromToken string `json:"fromToken"`
ToToken string `json:"toToken"`
Amount string `json:"amount"` // amount sent
AmountIn string `json:"amountIn"` // amount that is "data" of tx (important for erc20 tokens)
AmountOut string `json:"amountOut"` // amount that will be received
Hash types.Hash `json:"hash"`
ApprovalTx bool `json:"approvalTx"`
Expand Down Expand Up @@ -80,6 +81,7 @@ func NewRouterSentTransaction(sendArgs *wallettypes.SendTxArgs, hash types.Hash,
FromToken: sendArgs.FromTokenID,
ToToken: sendArgs.ToTokenID,
Amount: sendArgs.Value.String(),
AmountIn: sendArgs.ValueIn.String(),
AmountOut: sendArgs.ValueOut.String(),
Hash: hash,
ApprovalTx: approvalTx,
Expand Down

0 comments on commit 7d288a7

Please sign in to comment.