Skip to content

Commit

Permalink
fix: v4 matic unstake price display error
Browse files Browse the repository at this point in the history
  • Loading branch information
kwoktung committed Nov 9, 2023
1 parent 6ad3f5f commit 0c40e51
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/kit/src/views/Staking/LidoMaticUnstake/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import { formatAmount } from '../../../utils/priceUtils';
import { SendModalRoutes } from '../../Send/types';
import { useSwapSubmit } from '../../Swap/hooks/useSwapSubmit';
import { div, formatAmountExact, multiply } from '../../Swap/utils';
import { getMaticContractAdderess } from '../address';
import { StakingKeyboard } from '../components/StakingKeyboard';
import { useLidoMaticOverview } from '../hooks';
import { getStMaticToMaticQuote } from '../quote';
Expand Down Expand Up @@ -151,7 +152,10 @@ export default function LidoMaticUnstake() {
params: { networkId, accountId },
} = useRoute<RouteProps>();
const navigation = useNavigation<NavigationProps['navigation']>();
const mainPrice = useSimpleTokenPriceValue({ networkId });
const mainPrice = useSimpleTokenPriceValue({
networkId,
contractAdress: getMaticContractAdderess(networkId),
});
const lidoOverview = useLidoMaticOverview(networkId, accountId);
const balance = lidoOverview?.balance ?? '0';
const tokenSymbol = 'stMatic';
Expand Down

0 comments on commit 0c40e51

Please sign in to comment.