Skip to content

Commit

Permalink
add missing totalSharesNum for cow pools
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco committed Oct 27, 2024
1 parent 4f25e2e commit f258494
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sharp-pumas-boil.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'backend': patch
---

fix: add missing totalSharesNum column for COW_AMM pools
1 change: 1 addition & 0 deletions modules/sources/enrichers/apply-onchain-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const applyOnchainDataUpdateCowAmm = (
},
},
totalShares: formatEther(onchainPoolData.totalSupply),
totalSharesNum: parseFloat(formatEther(onchainPoolData.totalSupply)),
blockNumber: Number(blockNumber),
swapFee: formatEther(onchainPoolData.swapFee),
swapEnabled: true,
Expand Down
2 changes: 1 addition & 1 deletion tasks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function run(job: string = process.argv[2], chainId: string = process.argv
} else if (job === 'sync-cow-amm-pools') {
return CowAmmController().syncPools(chain);
} else if (job === 'reload-cow-amm-pools') {
return CowAmmController().reloadPools(chainIdToChain[chain]);
return CowAmmController().reloadPools(chain);
} else if (job === 'sync-cow-amm-snapshots') {
return CowAmmController().syncSnapshots(chain);
} else if (job === 'sync-all-cow-amm-snapshots') {
Expand Down

0 comments on commit f258494

Please sign in to comment.