We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1f141d commit 550b2b2Copy full SHA for 550b2b2
src/adaptors/pico-staked-sol/index.js
@@ -14,6 +14,9 @@ const apy = async () => {
14
),
15
]);
16
17
+ if (!Number.isFinite(totalSupply))
18
+ throw new Error(`Unable to fetch total supply for ${PICOSOL_MINT}`);
19
+
20
const currentPrice = priceRes.data.coins[priceKey]?.price;
21
if (!currentPrice) throw new Error('Unable to fetch picoSOL price');
22
0 commit comments