Skip to content

Commit

Permalink
Merge pull request #378 from balancer/develop
Browse files Browse the repository at this point in the history
Release 4.1.1-beta.7
  • Loading branch information
John Grant authored Mar 24, 2023
2 parents c1432fd + 86c5706 commit 2eedb66
Show file tree
Hide file tree
Showing 19 changed files with 3,129 additions and 261 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@balancer-labs/sor",
"version": "4.1.1-beta.6",
"version": "4.1.1-beta.7",
"license": "GPL-3.0-only",
"main": "dist/index.js",
"module": "dist/index.esm.js",
Expand Down
41 changes: 0 additions & 41 deletions src/frontendHelpers/phantomStableHelpers.ts

This file was deleted.

184 changes: 0 additions & 184 deletions src/frontendHelpers/queryBatchSwapHelpers.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
export { SOR } from './wrapper';
export { BPTForTokensZeroPriceImpact as weightedBPTForTokensZeroPriceImpact } from './frontendHelpers/weightedHelpers';
export { BPTForTokensZeroPriceImpact as stableBPTForTokensZeroPriceImpact } from './frontendHelpers/stableHelpers';
export { BPTForTokensZeroPriceImpact as phantomStableBPTForTokensZeroPriceImpact } from './frontendHelpers/phantomStableHelpers';
export {
queryBatchSwapTokensIn,
queryBatchSwapTokensOut,
} from './frontendHelpers/queryBatchSwapHelpers';
export * from './types';
export { formatSequence, getTokenAddressesForSwap } from './formatSwaps';
export { RouteProposer } from './routeProposal';
Expand Down
6 changes: 5 additions & 1 deletion src/pools/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { ComposableStablePool } from './composableStable/composableStablePool';
import { Gyro2Pool } from './gyro2Pool/gyro2Pool';
import { Gyro3Pool } from './gyro3Pool/gyro3Pool';
import { GyroEPool } from './gyroEPool/gyroEPool';
import { FxPool } from './xaveFxPool/fxPool';
import {
BigNumber as OldBigNumber,
INFINITY,
Expand Down Expand Up @@ -36,6 +37,7 @@ export function parseNewPool(
| Gyro2Pool
| Gyro3Pool
| GyroEPool
| FxPool
| undefined {
// We're not interested in any pools which don't allow swapping
if (!pool.swapEnabled) return undefined;
Expand All @@ -50,7 +52,8 @@ export function parseNewPool(
| ComposableStablePool
| Gyro2Pool
| Gyro3Pool
| GyroEPool;
| GyroEPool
| FxPool;

try {
if (pool.poolType === 'Weighted' || pool.poolType === 'Investment') {
Expand All @@ -73,6 +76,7 @@ export function parseNewPool(
else if (pool.poolType === 'Gyro2') newPool = Gyro2Pool.fromPool(pool);
else if (pool.poolType === 'Gyro3') newPool = Gyro3Pool.fromPool(pool);
else if (pool.poolType === 'GyroE') newPool = GyroEPool.fromPool(pool);
else if (pool.poolType === 'FX') newPool = FxPool.fromPool(pool);
else {
console.error(
`Unknown pool type or type field missing: ${pool.poolType} ${pool.id}`
Expand Down
Loading

0 comments on commit 2eedb66

Please sign in to comment.