@across-protocol/sdk 4.1.13 → 4.1.14

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.
@@ -131,7 +131,7 @@ declare class UserState {
131
131
  }>;
132
132
  }
133
133
  export declare function calculateRemoval(amountWei: BigNumber, percentWei: BigNumber): {
134
- recieve: string;
134
+ receive: string;
135
135
  remain: string;
136
136
  };
137
137
  export declare function previewRemoval(values: {
@@ -140,15 +140,15 @@ export declare function previewRemoval(values: {
140
140
  totalDeposited: BigNumberish;
141
141
  }, percentFloat: number): {
142
142
  position: {
143
- recieve: string;
143
+ receive: string;
144
144
  remain: string;
145
145
  };
146
146
  fees: {
147
- recieve: string;
147
+ receive: string;
148
148
  remain: string;
149
149
  };
150
150
  total: {
151
- recieve: string;
151
+ receive: string;
152
152
  remain: string;
153
153
  };
154
154
  };
@@ -232,7 +232,7 @@ function calculateRemoval(amountWei, percentWei) {
232
232
  var receive = amountWei.mul(percentWei).div(utils_1.fixedPointAdjustment);
233
233
  var remain = amountWei.sub(receive);
234
234
  return {
235
- recieve: receive.toString(),
235
+ receive: receive.toString(),
236
236
  remain: remain.toString(),
237
237
  };
238
238
  }
@@ -141,7 +141,7 @@ declare class UserState {
141
141
  }>;
142
142
  }
143
143
  export declare function calculateRemoval(amountWei: BigNumber, percentWei: BigNumber): {
144
- recieve: string;
144
+ receive: string;
145
145
  remain: string;
146
146
  };
147
147
  export declare function previewRemoval(values: {
@@ -150,15 +150,15 @@ export declare function previewRemoval(values: {
150
150
  totalDeposited: BigNumberish;
151
151
  }, percentFloat: number): {
152
152
  position: {
153
- recieve: string;
153
+ receive: string;
154
154
  remain: string;
155
155
  };
156
156
  fees: {
157
- recieve: string;
157
+ receive: string;
158
158
  remain: string;
159
159
  };
160
160
  total: {
161
- recieve: string;
161
+ receive: string;
162
162
  remain: string;
163
163
  };
164
164
  };
@@ -251,7 +251,7 @@ export function calculateRemoval(amountWei, percentWei) {
251
251
  var receive = amountWei.mul(percentWei).div(fixedPointAdjustment);
252
252
  var remain = amountWei.sub(receive);
253
253
  return {
254
- recieve: receive.toString(),
254
+ receive: receive.toString(),
255
255
  remain: remain.toString(),
256
256
  };
257
257
  }
@@ -141,7 +141,7 @@ declare class UserState {
141
141
  }>;
142
142
  }
143
143
  export declare function calculateRemoval(amountWei: BigNumber, percentWei: BigNumber): {
144
- recieve: string;
144
+ receive: string;
145
145
  remain: string;
146
146
  };
147
147
  export declare function previewRemoval(values: {
@@ -150,15 +150,15 @@ export declare function previewRemoval(values: {
150
150
  totalDeposited: BigNumberish;
151
151
  }, percentFloat: number): {
152
152
  position: {
153
- recieve: string;
153
+ receive: string;
154
154
  remain: string;
155
155
  };
156
156
  fees: {
157
- recieve: string;
157
+ receive: string;
158
158
  remain: string;
159
159
  };
160
160
  total: {
161
- recieve: string;
161
+ receive: string;
162
162
  remain: string;
163
163
  };
164
164
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@across-protocol/sdk",
3
3
  "author": "UMA Team",
4
- "version": "4.1.13",
4
+ "version": "4.1.14",
5
5
  "license": "AGPL-3.0",
6
6
  "homepage": "https://docs.across.to/reference/sdk",
7
7
  "files": [
@@ -100,7 +100,7 @@
100
100
  "dependencies": {
101
101
  "@across-protocol/across-token": "^1.0.0",
102
102
  "@across-protocol/constants": "^3.1.34",
103
- "@across-protocol/contracts": "4.0.0",
103
+ "@across-protocol/contracts": "4.0.2",
104
104
  "@eth-optimism/sdk": "^3.3.1",
105
105
  "@ethersproject/bignumber": "^5.7.0",
106
106
  "@pinata/sdk": "^2.1.0",
@@ -335,7 +335,7 @@ export function calculateRemoval(amountWei: BigNumber, percentWei: BigNumber) {
335
335
  const receive = amountWei.mul(percentWei).div(fixedPointAdjustment);
336
336
  const remain = amountWei.sub(receive);
337
337
  return {
338
- recieve: receive.toString(),
338
+ receive: receive.toString(),
339
339
  remain: remain.toString(),
340
340
  };
341
341
  }
@@ -388,7 +388,7 @@ export async function findFillBlock(
388
388
  assert(highBlockNumber > lowBlockNumber, `Block numbers out of range (${lowBlockNumber} >= ${highBlockNumber})`);
389
389
 
390
390
  // In production the chainId returned from the provider matches 1:1 with the actual chainId. Querying the provider
391
- // object saves an RPC query becasue the chainId is cached by StaticJsonRpcProvider instances. In hre, the SpokePool
391
+ // object saves an RPC query because the chainId is cached by StaticJsonRpcProvider instances. In hre, the SpokePool
392
392
  // may be configured with a different chainId than what is returned by the provider.
393
393
  const destinationChainId = Object.values(CHAIN_IDs).includes(relayData.originChainId)
394
394
  ? (await provider.getNetwork()).chainId
@@ -462,7 +462,7 @@ export async function findFillEvent(
462
462
  if (query.length === 0) throw new Error(`Failed to find fill event at block ${blockNumber}`);
463
463
  const event = query[0];
464
464
  // In production the chainId returned from the provider matches 1:1 with the actual chainId. Querying the provider
465
- // object saves an RPC query becasue the chainId is cached by StaticJsonRpcProvider instances. In hre, the SpokePool
465
+ // object saves an RPC query because the chainId is cached by StaticJsonRpcProvider instances. In hre, the SpokePool
466
466
  // may be configured with a different chainId than what is returned by the provider.
467
467
  const destinationChainId = Object.values(CHAIN_IDs).includes(relayData.originChainId)
468
468
  ? (await spokePool.provider.getNetwork()).chainId