diff --git a/src/routes/webhook/tradingview/+server.ts b/src/routes/webhook/tradingview/+server.ts index 0df1ab8..3a3023e 100644 --- a/src/routes/webhook/tradingview/+server.ts +++ b/src/routes/webhook/tradingview/+server.ts @@ -372,7 +372,7 @@ export const POST = async ({ locals, request }) => { const response = await client.createInternalTransfer( crypto.randomUUID(), 'USDT', - withdrawAmount.toString(), + withdrawAmount.toFixed(balance.split('.')[1].length), 'UNIFIED', 'FUND', )