fixed jup api

This commit is contained in:
shialoth 2025-05-14 05:22:07 +05:30
parent 60cd681ac7
commit 05d1803510

View File

@ -311,7 +311,7 @@ export const GpuPaymentModal = ({ isOpen, onClose, gpu }: GpuPaymentModalProps)
// Second attempt: Try using Jupiter Aggregator API for Solana tokens
try {
// Jupiter provides price data for most Solana tokens
const jupiterUrl = `https://price.jup.ag/v4/price?ids=${tokenAddress}`;
const jupiterUrl = `https://lite-api.jup.ag/price/v2?ids=${tokenAddress}`;
const jupResponse = await axios.get(jupiterUrl);
if (jupResponse.data &&