fix(admin): resolve incorrect crypto balance calculation fallback displaying fiat amount

This commit is contained in:
mstfyldz
2026-03-14 18:09:18 +03:00
parent 8800454b60
commit a0e787e03c
17 changed files with 525 additions and 22 deletions

17
testSweepResp.ts Normal file
View File

@@ -0,0 +1,17 @@
import fetch from 'node-fetch';
async function verifySweepResponse() {
const res = await fetch('http://localhost:3000/api/crypto-sweep', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
txId: '5fda5442-23ea-4130-8646-d0a882ed2517',
network: 'SOLANA',
token: 'SOL'
})
});
const data = await res.json();
console.log("Sweep API returns:", data);
}
verifySweepResponse().catch(console.error);