Skip to content

Commit

Permalink
Block welshare health (#4410)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipviz authored Jul 26, 2024
1 parent 70ef734 commit 467920d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/locales/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1622,6 +1622,9 @@ msgstr ""
msgid "Link minters of this NFT to your project's website, Discord, etc."
msgstr ""

msgid "Welshare Health has requested that payments to their project be paused."
msgstr ""

msgid "Cycle #1 starts when you create your project. With unlocked cycles, you can edit your project's rules at any time. This gives you more flexibility, but may appear risky to supporters. Switching to locked cycles will help you build supporter confidence."
msgstr ""

Expand Down
11 changes: 10 additions & 1 deletion src/packages/v2v3/hooks/usePayProjectDisabled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function usePayProjectDisabled(): {
reason: PayDisabledReason | undefined
message: string | undefined
} {
const { projectMetadata } = useProjectMetadataContext()
const { projectMetadata, projectId } = useProjectMetadataContext()
const { fundingCycleMetadata, loading } = useProjectContext()
const isBlockedProject = useV2V3BlockedProject()
const { isAddressListedInOFAC, isLoading: isOFACLoading } =
Expand All @@ -39,6 +39,15 @@ export function usePayProjectDisabled(): {
}
}

// Hard-coded block for Welshare Health, at their request. TODO: Remove this after 2024-07-28, Sunday, 04:58:47 AM UTC.
if (projectId && projectId === 698) {
return {
...disabled,
reason: PayDisabledReason.PAUSED,
message: t`Welshare Health has requested that payments to their project be paused.`,
}
}

if (isBlockedProject) {
return {
...disabled,
Expand Down

0 comments on commit 467920d

Please sign in to comment.