Skip to content

Commit

Permalink
fix: paused warning (#1829)
Browse files Browse the repository at this point in the history
  • Loading branch information
grothem authored Nov 4, 2023
1 parent 3081b1c commit faba78f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/locales/en/messages.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -2447,6 +2447,10 @@ msgstr "This action will reduce your health factor. Please be mindful of the inc
msgid "This address is blocked on app.aave.com because it is associated with one or more"
msgstr "This address is blocked on app.aave.com because it is associated with one or more"

#: src/modules/reserve-overview/ReserveConfiguration.tsx
msgid "This asset been paused due to a community decision. Supply, borrows and repays are impacted."
msgstr "This asset been paused due to a community decision. Supply, borrows and repays are impacted."

#: src/components/caps/CapsTooltip.tsx
msgid "This asset has almost reached its borrow cap. There is only {messageValue} available to be borrowed from this market."
msgstr "This asset has almost reached its borrow cap. There is only {messageValue} available to be borrowed from this market."
Expand Down
37 changes: 23 additions & 14 deletions src/modules/reserve-overview/ReserveConfiguration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,29 @@ export const ReserveConfiguration: React.FC<ReserveConfigurationProps> = ({ rese
)}

{reserve.isPaused ? (
<Warning sx={{ mt: '16px', mb: '40px' }} severity="error">
<Trans>
MAI has been paused due to a community decision. Supply, borrows and repays are
impacted.{' '}
<Link
href={
'https://governance.aave.com/t/arfc-add-mai-to-arbitrum-aave-v3-market/12759/8'
}
sx={{ textDecoration: 'underline' }}
>
<Trans>More details</Trans>
</Link>
</Trans>
</Warning>
reserve.symbol === 'MAI' ? (
<Warning sx={{ mt: '16px', mb: '40px' }} severity="error">
<Trans>
MAI has been paused due to a community decision. Supply, borrows and repays are
impacted.{' '}
<Link
href={
'https://governance.aave.com/t/arfc-add-mai-to-arbitrum-aave-v3-market/12759/8'
}
sx={{ textDecoration: 'underline' }}
>
<Trans>More details</Trans>
</Link>
</Trans>
</Warning>
) : (
<Warning sx={{ mt: '16px', mb: '40px' }} severity="error">
<Trans>
This asset been paused due to a community decision. Supply, borrows and repays are
impacted.{' '}
</Trans>
</Warning>
)
) : null}
</Box>

Expand Down

1 comment on commit faba78f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit was deployed on ipfs

Please sign in to comment.