Skip to content

Commit

Permalink
fix: multisig transfer send amount, closes #5941
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo authored and kyranjamie committed Nov 11, 2024
1 parent 1da243a commit e464419
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ import {
serializeCV,
serializePostCondition,
} from '@stacks/transactions';
import BigNumber from 'bignumber.js';
import { createUnsecuredToken } from 'jsontokens';

import { STX_DECIMALS } from '@leather.io/constants';
import { isDefined, isUndefined } from '@leather.io/utils';

import { RouteUrls } from '@shared/route-urls';
Expand Down Expand Up @@ -68,10 +66,7 @@ const transactionPayloadToTransactionRequest = (
case PayloadType.TokenTransfer:
transactionRequest.txType = TransactionTypes.STXTransfer;
transactionRequest.recipient = cvToValue(stacksTransaction.payload.recipient, true);
transactionRequest.amount = new BigNumber(Number(stacksTransaction.payload.amount))
.shiftedBy(-STX_DECIMALS)
.toNumber()
.toLocaleString('en-US', { maximumFractionDigits: STX_DECIMALS });
transactionRequest.amount = stacksTransaction.payload.amount.toString();
transactionRequest.memo = cleanMemoString(stacksTransaction.payload.memo.content);
break;
case PayloadType.ContractCall:
Expand Down

0 comments on commit e464419

Please sign in to comment.