Skip to content

Commit

Permalink
fix: Add support for delegation related strategies on delegation page…
Browse files Browse the repository at this point in the history
… (#4660)

* fix: Add erc20-balance-of-delegation and delegation-with-cap to delegation page

* remove log

* Update src/views/DelegateView.vue
  • Loading branch information
ChaituVR authored Apr 8, 2024
1 parent c3878b8 commit e6c168d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/views/DelegateView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,16 @@ async function getDelegationsAndDelegates() {
}
}
const delegationStrategies = [
'delegation',
'erc20-balance-of-delegation',
'delegation-with-cap',
'delegation-with-overrides'
];
async function getDelegatesWithScore() {
const delegationStrategy = space.value.strategies.filter(
strategy => strategy.name === 'delegation'
const delegationStrategy = space.value.strategies.filter(strategy =>
delegationStrategies.includes(strategy.name)
);
if (delegationStrategy.length === 0) return;
Expand Down

0 comments on commit e6c168d

Please sign in to comment.