Skip to content

Commit

Permalink
chore: Disable MorphoBlue pairs in refinance strategies filter (#3956)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrwitek authored Jun 19, 2024
1 parent a0d0df2 commit 6e89cba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions features/refinance/disabledMorphoPairs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const disabledMorphoPairs = ['WSTETH/USDA', 'PTWEETH/USDA']
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { PositionFromUrlWithTriggers } from 'features/omni-kit/observables'
import type { ProductHubItem } from 'features/productHub/types'
import { disabledMorphoPairs } from 'features/refinance/disabledMorphoPairs'
import { LendingProtocol } from 'lendingProtocols'

/**
Expand Down Expand Up @@ -44,6 +45,10 @@ export const getRefinanceStrategiesToBeFiltered = ({
return table.filter((item) => {
const existingPosition = mappedEvents.find((event) => event.protocol === item.protocol)

if (item.protocol === LendingProtocol.MorphoBlue && disabledMorphoPairs.includes(item.label)) {
return false
}

if (!existingPosition) {
return true
}
Expand Down

0 comments on commit 6e89cba

Please sign in to comment.