From b5368ad67fbb02ebf4f80665b656ab151c7709d1 Mon Sep 17 00:00:00 2001 From: Tom Hirst Date: Tue, 26 Jul 2022 15:11:38 +0100 Subject: [PATCH] Add message that OGV rewards will be collected on stake/extend --- client/components/vote-escrow/LockupForm.tsx | 27 ++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/client/components/vote-escrow/LockupForm.tsx b/client/components/vote-escrow/LockupForm.tsx index a4a4258f..a173dc3c 100644 --- a/client/components/vote-escrow/LockupForm.tsx +++ b/client/components/vote-escrow/LockupForm.tsx @@ -17,7 +17,7 @@ import CardStat from "components/CardStat"; import CardDescription from "components/CardDescription"; import CardGroup from "components/CardGroup"; import moment from "moment"; -import { mdiArrowRight } from "@mdi/js"; +import { mdiArrowRight, mdiAlertCircle } from "@mdi/js"; import Icon from "@mdi/react"; import ApyToolTip from "components/claim/claim/ApyTooltip"; import { getRewardsApy } from "utils/apy"; @@ -526,7 +526,30 @@ const LockupForm: FunctionComponent = ({ existingLockup }) => { {transactionError} )} -
+ {balances?.accruedRewards.gt(0) && ( +
+
+ +
+ + OGV rewards will be collected + + + You have accrued{" "} + {} OGV in + staking rewards. This OGV will be transferred to your wallet + immediately when you {existingLockup ? "extend" : "create"}{" "} + your stake. + +
+
+
+ )} +