@aurigami/sdk 1.7.3 → 1.7.5

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.
@@ -103,5 +103,5 @@ export declare type AccountAuTokensInfo = {
103
103
  tokens: AccountAuTokenInfo[];
104
104
  };
105
105
  export declare type AuTokenWithUnderlying = AuToken & {
106
- underlying?: string;
106
+ underlying: string;
107
107
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.3",
2
+ "version": "1.7.5",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -70,4 +70,4 @@
70
70
  "jest": {
71
71
  "testURL": "https://app.aurigami.finance"
72
72
  }
73
- }
73
+ }
@@ -2,7 +2,6 @@ import {
2
2
  AuriFairLaunch,
3
3
  AuriInternalLens,
4
4
  AuriLens,
5
- AuToken,
6
5
  Comptroller,
7
6
  IERC20,
8
7
  PULP,
@@ -28,7 +27,7 @@ export class AuriEnv extends BlockchainEntityRead {
28
27
 
29
28
  public getAuTokenContracts(): AuTokenWithUnderlying[] {
30
29
  return networkAddresses.auTokens.map((auToken) => {
31
- const contract: AuTokenWithUnderlying = this.getContract<AuToken>(
30
+ const contract = this.getContract<AuTokenWithUnderlying>(
32
31
  auToken.address,
33
32
  abis.AuTokenABI.abi
34
33
  );
@@ -104,6 +104,7 @@ export async function getBlocksTimestamp(
104
104
  provider: Provider,
105
105
  blockNumbers: number[]
106
106
  ): Promise<number[]> {
107
+ if (blockNumbers.length == 0) return [];
107
108
  const CHUNK_SIZE = 100; // graphql query limit
108
109
 
109
110
  let promises = [];
@@ -119,5 +119,5 @@ export type AccountAuTokensInfo = {
119
119
  };
120
120
 
121
121
  export type AuTokenWithUnderlying = AuToken & {
122
- underlying?: string;
122
+ underlying: string;
123
123
  };