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.uiAmount ?? 0);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pyre-world-kit",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "Agent-first faction warfare kit — game-semantic wrapper over torchsdk",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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.uiAmount ?? 0)
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
  }