Skip to content

Commit

Permalink
Merge pull request #407 from soramitsu/fix/multiple-amounts
Browse files Browse the repository at this point in the history
fixed multiple amounts
  • Loading branch information
timofeytrepalin authored Jul 29, 2024
2 parents 924a8ba + e901482 commit 209ea01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ADAR/components/RouteAssets/Stages/Done.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export default class RoutingCompleted extends Mixins(TranslationMixin) {
getReportData(isCsv = false) {
return this.recipients.map((recipient, idx) => {
const usd = recipient.usd.dp(2);
const amount = this.getRecipientTransferAmount(recipient.wallet, recipient.asset.address);
const amount = recipient.amount ?? FPNumber.ZERO;
const rate = recipient.exchangeRate ?? FPNumber.ZERO;
return [
`${idx + 1}`,
Expand Down
1 change: 1 addition & 0 deletions src/store/routeAssets/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ async function executeBatchSwapAndSend(context, data: Array<any>): Promise<any>
const inputAsset = getters.inputToken;
const newData = data.map((item) => {
const targetAmount = item.swapAndSendData.targetAmount;
commit.setRecipientTokenAmount({ id: item.recipient.id, amount: targetAmount });
return {
accountId: item.swapAndSendData.address,
targetAmount,
Expand Down

0 comments on commit 209ea01

Please sign in to comment.