@owney/sdk 0.2.14 → 0.2.15

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.
package/dist/index.cjs CHANGED
@@ -447,7 +447,6 @@ var ZyfaiAgent = class {
447
447
  validChainId,
448
448
  amount
449
449
  );
450
- console.log("zyf deposit raw", raw);
451
450
  return mapDeposit(raw);
452
451
  } catch (error) {
453
452
  await this.disconnect();
@@ -464,7 +463,6 @@ var ZyfaiAgent = class {
464
463
  amount,
465
464
  token
466
465
  );
467
- console.log("zyf withdraw raw", raw);
468
466
  if (!raw.success) {
469
467
  throw new OwneyError(
470
468
  "WITHDRAW_FAILED",
@@ -479,7 +477,6 @@ var ZyfaiAgent = class {
479
477
  async getBalances(state, chainId) {
480
478
  const { smartWallet, chainId: validChainId } = await this.resolveSmartWallet(state, chainId);
481
479
  const raw = await this.sdk.getPortfolio(this.getAddress());
482
- console.log("zyf balance raw", raw);
483
480
  return mapBalances(raw, validChainId, smartWallet);
484
481
  }
485
482
  async getEarnings(state, chainId) {
@@ -987,7 +984,7 @@ var OwneySDK = class {
987
984
  const balances = eligibleAgents.map((agent) => {
988
985
  const agentBalance = aggregated.agentBalances[agent.id];
989
986
  const tokenBalance = agentBalance?.tokens.find(
990
- (t) => t.chainId === chainId && t.asset === asset
987
+ (t) => t.chainId === chainId && t.asset.toUpperCase() === asset.toUpperCase()
991
988
  );
992
989
  if (!tokenBalance)
993
990
  return { agent, balance: 0n };
package/dist/index.js CHANGED
@@ -417,7 +417,6 @@ var ZyfaiAgent = class {
417
417
  validChainId,
418
418
  amount
419
419
  );
420
- console.log("zyf deposit raw", raw);
421
420
  return mapDeposit(raw);
422
421
  } catch (error) {
423
422
  await this.disconnect();
@@ -434,7 +433,6 @@ var ZyfaiAgent = class {
434
433
  amount,
435
434
  token
436
435
  );
437
- console.log("zyf withdraw raw", raw);
438
436
  if (!raw.success) {
439
437
  throw new OwneyError(
440
438
  "WITHDRAW_FAILED",
@@ -449,7 +447,6 @@ var ZyfaiAgent = class {
449
447
  async getBalances(state, chainId) {
450
448
  const { smartWallet, chainId: validChainId } = await this.resolveSmartWallet(state, chainId);
451
449
  const raw = await this.sdk.getPortfolio(this.getAddress());
452
- console.log("zyf balance raw", raw);
453
450
  return mapBalances(raw, validChainId, smartWallet);
454
451
  }
455
452
  async getEarnings(state, chainId) {
@@ -957,7 +954,7 @@ var OwneySDK = class {
957
954
  const balances = eligibleAgents.map((agent) => {
958
955
  const agentBalance = aggregated.agentBalances[agent.id];
959
956
  const tokenBalance = agentBalance?.tokens.find(
960
- (t) => t.chainId === chainId && t.asset === asset
957
+ (t) => t.chainId === chainId && t.asset.toUpperCase() === asset.toUpperCase()
961
958
  );
962
959
  if (!tokenBalance)
963
960
  return { agent, balance: 0n };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owney/sdk",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",