Skip to content

Commit

Permalink
Merge pull request #1825 from synonymdev/fix/boost-fee-conversion
Browse files Browse the repository at this point in the history
fix(wallet): Fix Boost Fee Conversion
  • Loading branch information
coreyphillips authored May 15, 2024
2 parents 02d72a8 + 27ead34 commit 53a92a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/screens/Wallets/BoostPrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
updateFee,
} from '../../utils/wallet/transactions';
import { showToast } from '../../utils/notifications';
import { btcToSats } from '../../utils/conversion';
import { TOnchainActivityItem } from '../../store/types/activity';
import {
useBottomSheetBackPress,
Expand Down Expand Up @@ -57,7 +56,7 @@ const BoostForm = ({
const [showCustom, setShowCustom] = useState(false);
const boostData = useMemo(() => canBoost(activityItem.id), [activityItem.id]);

const activityItemFee = btcToSats(activityItem.fee);
const activityItemFee = activityItem.fee;
const recommendedFee = feeEstimates.fast;
const { description: duration } = useFeeText(transaction.satsPerByte);

Expand Down
4 changes: 2 additions & 2 deletions src/utils/wallet/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import validate, { getAddressInfo } from 'bitcoin-address-validation';
import { __E2E__ } from '../../constants/env';
import { EAvailableNetwork } from '../networks';
import { reduceValue } from '../helpers';
import { btcToSats, satsToBtc } from '../conversion';
import { btcToSats } from '../conversion';
import { TWalletName } from '../../store/types/wallet';
import {
getBalance,
Expand Down Expand Up @@ -1103,7 +1103,7 @@ export const broadcastBoost = async ({
const updatedActivityItemData: Partial<TOnchainActivityItem> = {
txId: newTxId,
address: transaction.changeAddress,
fee: oldFee + satsToBtc(transaction.fee),
fee: oldFee + transaction.fee,
isBoosted: true,
timestamp: new Date().getTime(),
};
Expand Down

0 comments on commit 53a92a1

Please sign in to comment.