Skip to content

Commit

Permalink
v7.9.2
Browse files Browse the repository at this point in the history
v7.9.2
  • Loading branch information
platschi authored Sep 21, 2023
2 parents e80b655 + c5e6b3a commit 2314d63
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/app/src/sections/dashboard/Stake/StakingTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ import { Body, Heading } from 'components/Text'
import { STAKING_DISABLED } from 'constants/ui'
import { StakingCard } from 'sections/dashboard/Stake/card'
import { useAppDispatch, useAppSelector } from 'state/hooks'
import { claimStakingRewards } from 'state/staking/actions'
import { claimStakingRewards, claimStakingRewardsV2 } from 'state/staking/actions'
import {
selectApy,
selectClaimableBalance,
selectIsGettingReward,
selectStakedKwentaBalance,
selectStakingV1,
} from 'state/staking/selectors'
import media from 'styles/media'

Expand All @@ -29,11 +30,16 @@ const StakingTab = () => {
const claimableBalance = useAppSelector(selectClaimableBalance)
const stakedKwentaBalance = useAppSelector(selectStakedKwentaBalance)
const isClaimingReward = useAppSelector(selectIsGettingReward)
const stakingV1 = useAppSelector(selectStakingV1)
const apy = useAppSelector(selectApy)

const handleGetReward = useCallback(() => {
dispatch(claimStakingRewards())
}, [dispatch])
if (stakingV1) {
dispatch(claimStakingRewards())
} else {
dispatch(claimStakingRewardsV2())
}
}, [dispatch, stakingV1])

const stakingAndRewardsInfo: StakingCards[] = useMemo(
() => [
Expand Down

1 comment on commit 2314d63

@vercel
Copy link

@vercel vercel bot commented on 2314d63 Sep 21, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

kwenta – ./packages/app

www.kwenta.io
kwenta-kwenta.vercel.app
kwenta-git-main-kwenta.vercel.app
kwenta.io

Please sign in to comment.