@gearbox-protocol/sdk 13.0.0-next.2 → 13.0.0-next.3
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.
|
@@ -272,15 +272,6 @@ class PoolService extends import_base.SDKConstruct {
|
|
|
272
272
|
(z) => (0, import__.hexEq)(z.tokenIn.addr, tokenIn) && (0, import__.hexEq)(z.tokenOut.addr, tokenOut)
|
|
273
273
|
);
|
|
274
274
|
}
|
|
275
|
-
#mustGetZapper(poolAddr, tokenIn, tokenOut) {
|
|
276
|
-
const result = this.#getZapper(poolAddr, tokenIn, tokenOut);
|
|
277
|
-
if (!result) {
|
|
278
|
-
throw new Error(
|
|
279
|
-
`No zapper found for tokenIn ${this.labelAddress(tokenIn)} and tokenOut ${this.labelAddress(tokenOut)} on pool ${this.labelAddress(poolAddr)}`
|
|
280
|
-
);
|
|
281
|
-
}
|
|
282
|
-
return result;
|
|
283
|
-
}
|
|
284
275
|
#addZapper(z) {
|
|
285
276
|
const existing = this.zappers.get(z.pool);
|
|
286
277
|
if (existing) {
|
|
@@ -259,15 +259,6 @@ class PoolService extends SDKConstruct {
|
|
|
259
259
|
(z) => hexEq(z.tokenIn.addr, tokenIn) && hexEq(z.tokenOut.addr, tokenOut)
|
|
260
260
|
);
|
|
261
261
|
}
|
|
262
|
-
#mustGetZapper(poolAddr, tokenIn, tokenOut) {
|
|
263
|
-
const result = this.#getZapper(poolAddr, tokenIn, tokenOut);
|
|
264
|
-
if (!result) {
|
|
265
|
-
throw new Error(
|
|
266
|
-
`No zapper found for tokenIn ${this.labelAddress(tokenIn)} and tokenOut ${this.labelAddress(tokenOut)} on pool ${this.labelAddress(poolAddr)}`
|
|
267
|
-
);
|
|
268
|
-
}
|
|
269
|
-
return result;
|
|
270
|
-
}
|
|
271
262
|
#addZapper(z) {
|
|
272
263
|
const existing = this.zappers.get(z.pool);
|
|
273
264
|
if (existing) {
|