@clonegod/ttd-core 2.1.29 → 2.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -120,7 +120,7 @@ function fetchPriceFromJupiter(addresses) {
|
|
|
120
120
|
if (response.data) {
|
|
121
121
|
for (const address of addresses) {
|
|
122
122
|
const key = address;
|
|
123
|
-
if (response.data[key] !== undefined) {
|
|
123
|
+
if (response.data[key] !== undefined && response.data[key]['usdPrice'] > 0) {
|
|
124
124
|
result.set(address, {
|
|
125
125
|
address: address,
|
|
126
126
|
price: response.data[key]['usdPrice'].toString(),
|
|
@@ -157,5 +157,6 @@ if (require.main === module) {
|
|
|
157
157
|
"JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
|
|
158
158
|
"MEW1gQWJ3nEXg2qgERiKu7FAFj79PHvQVREQUzScPP5",
|
|
159
159
|
];
|
|
160
|
+
console.log(yield fetchPriceFromJupiter(addresses));
|
|
160
161
|
}))();
|
|
161
162
|
}
|