Skip to content

Commit

Permalink
Helpers: TON: Use Bridge Fee in forwarded amount
Browse files Browse the repository at this point in the history
  • Loading branch information
imsk17 committed Jun 27, 2024
1 parent f7a3b9b commit 335ee43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/chains/ton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function tonHandler({

return (await jtw.send(
signer,
{ ...gasArgs },
{ value: gasArgs.value + toNano("0.05") },
{
$$type: "JettonTransfer",
amount: amt,
Expand All @@ -153,7 +153,7 @@ export function tonHandler({
.asCell(),
)
.endCell(),
forward_ton_amount: toNano("0.40"),
forward_ton_amount: gasArgs.value,
response_destination: bridge,
},
)) as unknown as Promise<string>;
Expand All @@ -178,7 +178,7 @@ export function tonHandler({
);
return (await jtw.send(
signer,
{ ...gasArgs },
{ value: gasArgs.value + toNano("0.05") },
{
$$type: "JettonTransfer",
amount: amt,
Expand All @@ -200,7 +200,7 @@ export function tonHandler({
.asCell(),
)
.endCell(),
forward_ton_amount: toNano("0.40"),
forward_ton_amount: gasArgs.value,
query_id: 0n,
response_destination: bridge,
},
Expand Down

0 comments on commit 335ee43

Please sign in to comment.