diff --git a/components/Banner/index.tsx b/components/Banner/index.tsx
index 2f462837..30b050c9 100644
--- a/components/Banner/index.tsx
+++ b/components/Banner/index.tsx
@@ -33,7 +33,7 @@ const Banner: React.FC = () => {
}}
>
{banners.map((banner) => (
-
+
))}
diff --git a/components/ConfirmTransactionDialog/index.tsx b/components/ConfirmTransactionDialog/index.tsx
index 007a2245..56b8d8ef 100644
--- a/components/ConfirmTransactionDialog/index.tsx
+++ b/components/ConfirmTransactionDialog/index.tsx
@@ -95,9 +95,7 @@ const ConfirmTransactionDialog: React.FC = ({
React.useEffect(() => {
if (defaultTransactionData && account) {
- estimateGasFee(defaultTransactionData, account).then((f) =>
- setFee(granter ? { ...f, granter } : f)
- )
+ estimateGasFee(defaultTransactionData, account, granter).then(setFee)
}
}, [defaultTransactionData, account, granter])
diff --git a/components/ConnectLedgerDialogContent/index.tsx b/components/ConnectLedgerDialogContent/index.tsx
index 6c81c163..771a7b77 100644
--- a/components/ConnectLedgerDialogContent/index.tsx
+++ b/components/ConnectLedgerDialogContent/index.tsx
@@ -12,6 +12,7 @@ import React from 'react'
import Carousel from 'react-material-ui-carousel'
import TransportWebHID from '@ledgerhq/hw-transport-webhid'
import { LaunchpadLedger } from '@cosmjs/ledger-amino'
+import TerraApp from '@terra-money/ledger-terra-js'
import LedgerImage from '../../assets/images/ledger.svg'
import LedgerSignImage from '../../assets/images/sign_ledger.svg'
import LedgerSignPinImage from '../../assets/images/sign_ledger_with_PIN.svg'
@@ -65,9 +66,18 @@ const ConnectLedgerDialogContent: React.FC = ({
let transport
try {
transport = await TransportWebHID.create()
- const ledger = new LaunchpadLedger(transport, { ledgerAppName })
- // Check if ledger app is open
- await ledger.getCosmosAppVersion()
+ if (ledgerAppName === 'terra') {
+ const ledger = new TerraApp(transport)
+ // Check if ledger app is open
+ const response = await ledger.getAddressAndPubKey([44, 330, 0, 0, 0], 'terra')
+ if (!response || !response.bech32_address) {
+ throw new Error(response.error_message)
+ }
+ } else {
+ const ledger = new LaunchpadLedger(transport, { ledgerAppName })
+ // Check if ledger app is open
+ await ledger.getCosmosAppVersion()
+ }
setInstruction(signInstructions[1])
clearTimeout(retryTimeout)
onConnect(transport)
diff --git a/components/DsmAirdrop/CheckAirdrop.tsx b/components/DsmAirdrop/CheckAirdrop.tsx
index 892076bf..35cd7243 100644
--- a/components/DsmAirdrop/CheckAirdrop.tsx
+++ b/components/DsmAirdrop/CheckAirdrop.tsx
@@ -130,6 +130,8 @@ const CheckAirdrop: React.FC = ({
{dataStakingInfo.map((item, key) => {
const chain = item.chain_name
+ const dsm = item.dsm_allotted
+ const { claimed } = item
return (
= ({
pt={theme.spacing(0.2)}
key={key}
>
-
+
-
+
{t('chain staker', {
chain,
suffix: item.forbole_delegator ? '& Forbole Delegator' : '',
})}
+ {/* {dsm DSM} */}
+ {claimed ? (
+
+ {formatCrypto(dsm, 'DSM', lang)} {t('claimed')}
+
+ ) : (
+
+ {formatCrypto(dsm, 'DSM', lang)}
+
+ )}
)
@@ -156,6 +185,8 @@ const CheckAirdrop: React.FC = ({
{lpInfos.map((item, key) => {
const chain = item.chain_name
+ const dsm = item.dsm_allotted
+ const { claimed } = item
return (
= ({
pt={theme.spacing(0.2)}
key={key}
>
-
+
-
+
{chain} {t('lp staker')}
+ {claimed ? (
+
+ {formatCrypto(dsm, 'DSM', lang)} {t('claimed')}
+
+ ) : (
+
+ {formatCrypto(dsm, 'DSM', lang)}
+
+ )}{' '}
)
@@ -178,7 +235,14 @@ const CheckAirdrop: React.FC = ({
{(dataStakingInfo !== null && dataStakingInfo !== undefined) ||
(lpInfos !== null && lpInfos !== undefined) ? (