Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/locales/el/messages.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/locales/en/messages.js

Large diffs are not rendered by default.

52 changes: 48 additions & 4 deletions src/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,10 @@ msgstr "Maximum amount available to borrow is <0/> {0} (<1/>)."
msgid "Check errors"
msgstr "Check errors"

#: src/modules/reserve-overview/ReserveOracleCard/OraclePriceFeeds.tsx
msgid "(Capped)"
msgstr "(Capped)"

#: src/modules/reserve-overview/ReserveOracleCard/index.tsx
msgid "The price is set by the oracle administrator or governance."
msgstr "The price is set by the oracle administrator or governance."
Expand Down Expand Up @@ -1099,6 +1103,10 @@ msgstr "Av. to Claim"
msgid "Collateral is (mostly) the same currency that is being borrowed"
msgstr "Collateral is (mostly) the same currency that is being borrowed"

#: src/modules/reserve-overview/ReserveOracleCard/OraclePriceFeeds.tsx
msgid "Feed"
msgstr "Feed"

#: src/modules/governance/proposal/VotersListModal.tsx
#: src/modules/governance/proposal/VotersListModal.tsx
msgid "Addresses ({0})"
Expand Down Expand Up @@ -1423,6 +1431,10 @@ msgstr "sGHO"
msgid "Please connect your wallet to swap tokens."
msgstr "Please connect your wallet to swap tokens."

#: src/modules/reserve-overview/ReserveOracleCard/OraclePriceFeeds.tsx
msgid "(Cap {cap})"
msgstr "(Cap {cap})"

#: src/components/infoTooltips/MigrationDisabledTooltip.tsx
msgid "Asset cannot be migrated to {marketName} v3 Market since collateral asset will enable isolation mode."
msgstr "Asset cannot be migrated to {marketName} v3 Market since collateral asset will enable isolation mode."
Expand Down Expand Up @@ -1567,6 +1579,10 @@ msgstr "Swapping"
msgid "ETH Correlated"
msgstr "ETH Correlated"

#: src/modules/reserve-overview/ReserveOracleCard/OraclePriceFeeds.tsx
msgid "Last Update"
msgstr "Last Update"

#: src/components/transactions/CollateralChange/CollateralChangeModalContent.tsx
msgid "You can not use this currency as collateral"
msgstr "You can not use this currency as collateral"
Expand Down Expand Up @@ -2102,6 +2118,10 @@ msgstr "View TX"
msgid "The Aave Balancer Pool Token (ABPT) is a liquidity pool token. You can receive ABPT by depositing a combination of AAVE + wstETH in the Balancer liquidity pool. You can then stake your BPT in the Safety Module to secure the protocol and earn Safety Incentives."
msgstr "The Aave Balancer Pool Token (ABPT) is a liquidity pool token. You can receive ABPT by depositing a combination of AAVE + wstETH in the Balancer liquidity pool. You can then stake your BPT in the Safety Module to secure the protocol and earn Safety Incentives."

#: src/modules/reserve-overview/ReserveOracleCard/OraclePriceFeeds.tsx
msgid "The token reports {value}, above the cap, so the oracle uses the cap. It grows at most {growth}% a year."
msgstr "The token reports {value}, above the cap, so the oracle uses the cap. It grows at most {growth}% a year."

#: src/components/transactions/ClaimRewards/ClaimRewardsModalContent.tsx
#: src/components/transactions/ClaimRewards/ClaimRewardsModalContent.tsx
#: src/components/transactions/ClaimRewards/RewardsSelect.tsx
Expand All @@ -2117,11 +2137,21 @@ msgstr "Withdrawing"
msgid "Execution fee"
msgstr "Execution fee"

#: src/modules/reserve-overview/ReserveOracleCard/OracleParts.tsx
#: src/modules/reserve-overview/ReserveOracleCard/OracleParts.tsx
#: src/modules/reserve-overview/ReserveOracleCard/OracleParts.tsx
msgid "{age} ago"
msgstr "{age} ago"

#: src/modules/governance/proposal/VotingResults.tsx
#: src/modules/governance/proposal/VotingResults.tsx
msgid "Not reached"
msgstr "Not reached"

#: src/modules/reserve-overview/ReserveOracleCard/OraclePriceFeeds.tsx
msgid "The highest rate the oracle uses. It grows at most {growth}% a year."
msgstr "The highest rate the oracle uses. It grows at most {growth}% a year."

#: src/components/transactions/Swap/inputs/shared/SwitchSlippageSelector.tsx
msgid "Auto"
msgstr "Auto"
Expand Down Expand Up @@ -2644,6 +2674,7 @@ msgstr "Representative smart contract wallet (ie. Safe) addresses on other chain

#: src/modules/reserve-overview/ReserveOracleCard/index.tsx
#: src/modules/reserve-overview/ReserveOracleCard/index.tsx
#: src/modules/reserve-overview/ReserveOracleCard/OraclePriceFeeds.tsx
msgid "Heartbeat"
msgstr "Heartbeat"

Expand Down Expand Up @@ -2870,6 +2901,7 @@ msgid "An error has occurred fetching the proposal."
msgstr "An error has occurred fetching the proposal."

#: src/modules/reserve-overview/ReserveOracleCard/index.tsx
#: src/modules/reserve-overview/ReserveOracleCard/OraclePriceFeeds.tsx
msgid "Provider"
msgstr "Provider"

Expand Down Expand Up @@ -3192,6 +3224,10 @@ msgstr "Total borrowed"
msgid "The collateral balance is 0"
msgstr "The collateral balance is 0"

#: src/modules/reserve-overview/ReserveOracleCard/index.tsx
msgid "The longest the price goes without an update. Each feed has its own, listed under Oracle Price Feeds."
msgstr "The longest the price goes without an update. Each feed has its own, listed under Oracle Price Feeds."

#: src/components/ChainAvailabilityText.tsx
msgid "Available on"
msgstr "Available on"
Expand Down Expand Up @@ -3528,10 +3564,6 @@ msgstr "Claim all merit rewards"
msgid "Total APY"
msgstr "Total APY"

#: src/modules/reserve-overview/ReserveOracleCard/index.tsx
msgid "The longest the price goes without an update. Each feed has its own."
msgstr "The longest the price goes without an update. Each feed has its own."

#: src/modules/umbrella/helpers/StakingDropdown.tsx
msgid "Cooling down"
msgstr "Cooling down"
Expand Down Expand Up @@ -3596,6 +3628,10 @@ msgstr "View"
msgid "Unavailable"
msgstr "Unavailable"

#: src/modules/reserve-overview/ReserveOracleCard/OraclePriceFeeds.tsx
msgid "Last Price"
msgstr "Last Price"

#: src/components/transactions/Borrow/ParameterChangewarning.tsx
msgid "<0>Attention:</0> Parameter changes via governance can alter your account health factor and risk of liquidation. Follow the <1>Aave governance forum</1> for updates."
msgstr "<0>Attention:</0> Parameter changes via governance can alter your account health factor and risk of liquidation. Follow the <1>Aave governance forum</1> for updates."
Expand Down Expand Up @@ -3864,6 +3900,10 @@ msgstr "GHO yield with instant withdraws."
msgid "Both"
msgstr "Both"

#: src/modules/reserve-overview/ReserveOracleCard/OraclePriceFeeds.tsx
msgid "Oracle Price Feeds"
msgstr "Oracle Price Feeds"

#: src/components/transactions/StkGhoMigrate/StkGhoMigrateModal.tsx
msgid "Migrate stkGHO to sGHO"
msgstr "Migrate stkGHO to sGHO"
Expand Down Expand Up @@ -4117,6 +4157,10 @@ msgstr "Invalid expiration"
msgid "Rewards available to claim"
msgstr "Rewards available to claim"

#: src/modules/reserve-overview/ReserveOracleCard/OraclePriceFeeds.tsx
msgid "Token Contract Read"
msgstr "Token Contract Read"

#: src/components/transactions/GovVote/GovVoteModalContent.tsx
msgid "Thank you for voting"
msgstr "Thank you for voting"
Expand Down
2 changes: 1 addition & 1 deletion src/locales/es/messages.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/locales/fr/messages.js

Large diffs are not rendered by default.

20 changes: 16 additions & 4 deletions src/modules/reserve-overview/ReserveOracleCard/OracleParts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ const Age = ({ age }: { age: OracleAge }) => {
return <Plural value={age.count} one="# day" other="# days" />;
};

export const TimeAgo = ({ date }: { date: string }) => {
const now = useNow(MINUTE_MS);
const age = <Age age={getOracleAge(date, now)} />;
return <Trans>{age} ago</Trans>;
};

// The pulse marks a live price; the global reduced-motion rule ends it after one beat.
const StatusDot = ({ color, pulse }: { color: FigmaColorName; pulse?: boolean }) => (
<Box
Expand Down Expand Up @@ -175,9 +181,11 @@ const StatusDot = ({ color, pulse }: { color: FigmaColorName; pulse?: boolean })
export const FeedStatus = ({
feeds,
lastUpdatedAt,
short,
}: {
feeds: ReserveOracleFeed[];
lastUpdatedAt: string;
short?: boolean;
}) => {
const now = useNow(MINUTE_MS);
const freshness = getOracleFreshness(feeds, now);
Expand All @@ -188,8 +196,8 @@ export const FeedStatus = ({
return (
<Box sx={{ display: 'inline-flex', alignItems: 'center', gap: '0.5rem' }}>
<StatusDot color={color} pulse />
<Typography variant="base" color="fg-3">
<Trans>Updated {age} ago</Trans>
<Typography variant={short ? 'h5' : 'base'} color="fg-3" sx={{ whiteSpace: 'nowrap' }}>
{short ? <Trans>{age} ago</Trans> : <Trans>Updated {age} ago</Trans>}
</Typography>
</Box>
);
Expand All @@ -216,8 +224,12 @@ export const FeedStatus = ({
)
}
>
<Typography variant="base" color={color} sx={dottedUnderline}>
<Trans>Last price {age} ago</Trans>
<Typography
variant={short ? 'h5' : 'base'}
color={color}
sx={{ ...dottedUnderline, whiteSpace: 'nowrap' }}
>
{short ? <Trans>{age} ago</Trans> : <Trans>Last price {age} ago</Trans>}
</Typography>
</ContentWithTooltip>
</Box>
Expand Down
Loading
Loading