Skip to content

Commit

Permalink
Merge pull request #14 from darwinia-network/update-words
Browse files Browse the repository at this point in the history
Update words
  • Loading branch information
1022ranji authored Sep 27, 2024
2 parents 323eea9 + b90a37d commit 41e1904
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/collator/join.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const CollatorJoin = ({ hasSessionKey, sessionKey, hasPool, refetch }: CollatorJ
Note that you need to complete two steps in sequence, setup [Session Key] and setup
[Commission] before becoming a collator. Please{' '}
<a
href="https://docs.darwinia.network/node-operators/run-collator-node"
href="https://ringdao.notion.site/How-to-become-a-collator-fffaad1d671e81c6b5f0ee4e97c29889"
className="text-[#0094FF]"
target="_blank"
rel="noopener noreferrer"
Expand Down
23 changes: 19 additions & 4 deletions src/config/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,34 @@ export const NATIVE_TOKEN_ICON_MAP = new Map<ChainId, string>([

export const KTON_TOKEN_INFO_MAP = new Map<
ChainId,
{ symbol: string; decimals: number; address: `0x${string}` }
{ symbol: string; decimals: number; address: `0x${string}`; governanceName: string }
>([
[
ChainId.CRAB,
{ symbol: 'CKTON', decimals: 18, address: '0x0000000000000000000000000000000000000402' }
{
symbol: 'CKTON',
decimals: 18,
address: '0x0000000000000000000000000000000000000402',
governanceName: 'CktonDAO'
}
],
[
ChainId.DARWINIA,
{ symbol: 'KTON', decimals: 18, address: '0x0000000000000000000000000000000000000402' }
{
symbol: 'KTON',
decimals: 18,
address: '0x0000000000000000000000000000000000000402',
governanceName: 'KtonDAO'
}
],
[
ChainId.KOI,
{ symbol: 'PKTON', decimals: 18, address: '0x0000000000000000000000000000000000000402' }
{
symbol: 'PKTON',
decimals: 18,
address: '0x0000000000000000000000000000000000000402',
governanceName: 'PktonDAO'
}
]
]);

Expand Down
24 changes: 15 additions & 9 deletions src/view/deposit/_components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,21 @@ const Deposit = () => {
>
Deposit
</Button>
<Button
className="w-full"
color="primary"
isDisabled={!isEnabled}
variant="light"
onClick={() => setIsOpen(true)}
>
Deposit in Wallet
</Button>

<div className="flex flex-col items-center gap-1">
<Button
className="w-full"
color="primary"
isDisabled={!isEnabled}
variant="light"
onClick={() => setIsOpen(true)}
>
Deposit in Wallet
</Button>
<p className="text-xs text-foreground/50">
Powered and governed by {ktonInfo?.governanceName}
</p>
</div>
</div>
</div>
<DepositRecordsModal
Expand Down

0 comments on commit 41e1904

Please sign in to comment.