Skip to content

Commit

Permalink
Merge pull request #4190 from balancer/hf/branded-pool-actions
Browse files Browse the repository at this point in the history
hotfix: remove stake and migrate actions for branded redirect pools
  • Loading branch information
alter-eggo authored Sep 12, 2023
2 parents 1b3b039 + 118ecfd commit 0d75d3d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
import { PoolWarning } from '@/types/pools';
import { usePoolWarning } from '@/composables/usePoolWarning';
import { useDisabledJoinPool } from '@/composables/useDisabledJoinPool';
import { POOLS } from '@/constants/pools';
type Props = {
pool: Pool;
Expand Down Expand Up @@ -50,7 +51,8 @@ function isActionDisabled(action: PoolAction) {
Boolean(deprecatedDetails(props.pool.id)) ||
isAffectedBy(PoolWarning.PoolProtocolFeeVulnWarning) ||
isJoinsDisabled(props.pool.id) ||
shouldDisableJoins.value;
shouldDisableJoins.value ||
POOLS.BrandedRedirect?.[props.pool.poolType];
const actionsToDisable = [
PoolAction.Add,
Expand Down

0 comments on commit 0d75d3d

Please sign in to comment.