Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update words #14

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading