From 07bf709c5d8170e889e40f0b61097d04cb6ca074 Mon Sep 17 00:00:00 2001 From: johngrantuk Date: Tue, 24 Sep 2024 09:44:45 +0100 Subject: [PATCH] fix: Enable sdBal stable pool in SOR. --- .changeset/strange-cheetahs-beam.md | 5 +++++ modules/sor/sorV2/lib/static.ts | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .changeset/strange-cheetahs-beam.md diff --git a/.changeset/strange-cheetahs-beam.md b/.changeset/strange-cheetahs-beam.md new file mode 100644 index 00000000..7d3c1881 --- /dev/null +++ b/.changeset/strange-cheetahs-beam.md @@ -0,0 +1,5 @@ +--- +'backend': patch +--- + +Enable sdBal stable pool. diff --git a/modules/sor/sorV2/lib/static.ts b/modules/sor/sorV2/lib/static.ts index 8c4e56c9..6bfdafd8 100644 --- a/modules/sor/sorV2/lib/static.ts +++ b/modules/sor/sorV2/lib/static.ts @@ -39,7 +39,12 @@ export async function sorGetPathsWithPools( case 'STABLE': // Since we allowed all the pools, we started getting BAL#322 errors // Enabling pools one by one until we find the issue - if (prismaPool.id === '0x3dd0843a028c86e0b760b1a76929d1c5ef93a2dd000200000000000000000249') { + if ( + [ + '0x3dd0843a028c86e0b760b1a76929d1c5ef93a2dd000200000000000000000249', // auraBal/8020 + '0x2d011adf89f0576c9b722c28269fcb5d50c2d17900020000000000000000024d', // sdBal/8020 + ].includes(prismaPool.id) + ) { basePools.push(StablePool.fromPrismaPool(prismaPool)); } break;