pyre-world-kit 3.2.1 → 3.2.2
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.
|
@@ -261,7 +261,7 @@ class StateProvider {
|
|
|
261
261
|
const holdings = new Map();
|
|
262
262
|
for (const a of [...walletValues, ...vaultValues]) {
|
|
263
263
|
const mint = a.account.data.parsed.info.mint;
|
|
264
|
-
const balance = Number(a.account.data.parsed.info.tokenAmount.
|
|
264
|
+
const balance = Number(a.account.data.parsed.info.tokenAmount.amount ?? 0);
|
|
265
265
|
if (balance > 0 && (0, vanity_1.isPyreMint)(mint) && !(0, util_1.isBlacklistedMint)(mint)) {
|
|
266
266
|
holdings.set(mint, (holdings.get(mint) ?? 0) + balance);
|
|
267
267
|
}
|
package/package.json
CHANGED
|
@@ -262,7 +262,7 @@ export class StateProvider implements State {
|
|
|
262
262
|
const holdings = new Map<string, number>()
|
|
263
263
|
for (const a of [...walletValues, ...vaultValues]) {
|
|
264
264
|
const mint = a.account.data.parsed.info.mint as string
|
|
265
|
-
const balance = Number(a.account.data.parsed.info.tokenAmount.
|
|
265
|
+
const balance = Number(a.account.data.parsed.info.tokenAmount.amount ?? 0)
|
|
266
266
|
if (balance > 0 && isPyreMint(mint) && !isBlacklistedMint(mint)) {
|
|
267
267
|
holdings.set(mint, (holdings.get(mint) ?? 0) + balance)
|
|
268
268
|
}
|