Skip to content

Commit

Permalink
fix(mobile): Fix lockup send (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
voloshinskii authored Jun 24, 2024
1 parent 4329e6b commit 3bda725
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@ export async function estimateTonTransferFee(params: TonTransferParams) {

if (!params.isSendAll && !fee.isNegative()) {
const totalAmount = fee.plus(params.sendAmountNano.toString());
const balance = toNano(tk.wallet.balances.state.data.ton);
const balance = toNano(
new BigNumber(tk.wallet.balances.state.data.ton)
.plus(tk.wallet.balances.state.data.tonRestricted)
.plus(tk.wallet.balances.state.data.tonLocked)
.toString(),
);
if (totalAmount.gt(balance)) {
openInsufficientFundsModal({
totalAmount: totalAmount.toString(),
Expand Down

0 comments on commit 3bda725

Please sign in to comment.