Skip to content

Commit

Permalink
Merge pull request #441 from consensusnetworks/bug/operators
Browse files Browse the repository at this point in the history
Fix operators bug
  • Loading branch information
shanejearley authored Oct 26, 2023
2 parents 28c2241 + 942d3b8 commit b013403
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions apps/web/src/composables/operators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,11 @@ export default function useOperators() {

async function _getPools(operatorId: number, type: 'base' | 'eigen'): Promise<PoolConfig[]> {
const pools: PoolConfig[] = []

const basePoolIds = [
...await (baseManager as CasimirManager).getPendingPoolIds(),
...await (baseManager as CasimirManager).getStakedPoolIds()
]
const eigenPoolIds = [
...await (eigenManager as CasimirManager).getPendingPoolIds(),
...await (eigenManager as CasimirManager).getStakedPoolIds()
const manager = type === 'base' ? baseManager : eigenManager
const poolIds = [
...await (manager as CasimirManager).getPendingPoolIds(),
...await (manager as CasimirManager).getStakedPoolIds()
]

const poolIds = type === 'base' ? basePoolIds : eigenPoolIds
const views = type === 'base' ? baseViews : eigenViews

for (const poolId of poolIds) {
Expand Down

0 comments on commit b013403

Please sign in to comment.