Skip to content

Commit

Permalink
Revert "fix: prevent strategy apy calculation leaking between Avs"
Browse files Browse the repository at this point in the history
This reverts commit 8ce729f.
  • Loading branch information
gowthamsundaresan committed Dec 19, 2024
1 parent 4d54aff commit 51ddf11
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/api/src/routes/operators/operatorController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,13 @@ async function calculateOperatorApy(operator: any) {
}[]
}
> = new Map()
const strategyApyMap: Map<
string,
{
apy: number
tokens: Map<string, number>
}
> = new Map()

const tokenPrices = await fetchTokenPrices()
const strategiesWithSharesUnderlying = await getStrategiesWithShareUnderlying()
Expand All @@ -585,14 +592,6 @@ async function calculateOperatorApy(operator: any) {
return []

for (const avs of avsWithEligibleRewardSubmissions) {
const strategyApyMap: Map<
string,
{
apy: number
tokens: Map<string, number>
}
> = new Map()

const shares = withOperatorShares(avs.avs.operators).filter(
(s) => avs.avs.restakeableStrategies?.indexOf(s.strategyAddress.toLowerCase()) !== -1
)
Expand Down

0 comments on commit 51ddf11

Please sign in to comment.