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

20
test_sweep_post.js Normal file
View File

@@ -0,0 +1,20 @@
export async function runTest() {
try {
const response = await fetch('http://localhost:3000/api/crypto-sweep', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
txId: 'not-important-since-it-will-catch-in-db',
network: 'SOLANA',
token: 'SOL'
})
});
console.log("Status:", response.status);
const data = await response.json();
console.log("Data:", data);
} catch(e) {
console.error("Fetch Error:", e);
}
}
runTest();