Skip to content

Commit

Permalink
Update skale-network, fix sfuel issue, update legacy addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytrotkk committed Oct 3, 2023
1 parent 0f3ebd3 commit 3186820
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/components/ChainIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import OfflineBoltRoundedIcon from '@mui/icons-material/OfflineBoltRounded'
import { SkaleNetwork } from '../core/interfaces'
import { chainIconPath } from '../core/metadata'

import { cls, styles } from '../core/css'
import { cls, styles, cmn } from '../core/css'

export default function ChainIcon(props: {
skaleNetwork: SkaleNetwork
Expand All @@ -17,5 +17,5 @@ export default function ChainIcon(props: {
if (iconPath !== undefined) {
return <img className={className} src={iconPath.default ?? iconPath} />
}
return <OfflineBoltRoundedIcon className={cls(styles.defaultChainIcon, className)} />
return <OfflineBoltRoundedIcon className={cls(styles.defaultChainIcon, cmn.pPrim, className)} />
}
11 changes: 7 additions & 4 deletions src/components/SFuelWarning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,15 @@ export default function SFuelWarning(props: {}) {
}

const mainnetTransfer = chainName1 === MAINNET_CHAIN_NAME || chainName2 === MAINNET_CHAIN_NAME
const noSFuelDest = sFuelStatus === 'warning' && chainName1 === MAINNET_CHAIN_NAME
const noSFuelSource = sFuelStatus === 'error' && chainName2 === MAINNET_CHAIN_NAME
const sFuelBtn = noSFuelDest || noSFuelSource || !mainnetTransfer

function getSFuelText() {
if (mainnetTransfer) {
return SFUEL_TEXT['gas'][sFuelStatus]
if (sFuelBtn) {
return SFUEL_TEXT['sfuel'][sFuelStatus]
}
return SFUEL_TEXT['sfuel'][sFuelStatus]
return SFUEL_TEXT['gas'][sFuelStatus]
}

if (loading && chainName2)
Expand All @@ -201,7 +204,7 @@ export default function SFuelWarning(props: {}) {
<p className={cls(cmn.flex, cmn.p3, cmn.p, cmn.pPrim, cmn.flexGrow, cmn.mleft10)}>
{getSFuelText()}
</p>
{!mainnetTransfer ? (
{sFuelBtn ? (
<div>
{mining ? (
<LoadingButton
Expand Down
16 changes: 8 additions & 8 deletions src/metadata/addresses/legacy.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"message_proxy_mainnet_address": "0x20C7946Ace5abE5A1d2B7a8995ff6bAd9AfDfA08",
"linker_address": "0xb8174D91323BB448F190d0410f8B8ADD171fA561",
"community_pool_address": "0x39aA4a762117FA1513516bA119153C4A44B6a54f",
"deposit_box_eth_address": "0x02e03E9Fa67aedfc9234378164CD60B1e3fB2fA3",
"deposit_box_erc20_address": "0x978A111EfD61ccD7983c17fD15b3C8F54E363133",
"deposit_box_erc721_address": "0xa59Cc7611f62bEF09393FdC56B6B446aD9088d1F",
"deposit_box_erc1155_address": "0x645F16eb315cb5F97a6E58116d9684083127CcAB",
"deposit_box_erc721_with_metadata_address": "0x953157b6ad85399bC0Ca629beB2C954CC876E274"
"message_proxy_mainnet_address": "0x1aB061B92CF11Cb7E1dc66Ef397a8A86707398a8",
"linker_address": "0x71b9CeE11de5A0CD1c23c79761bd228D37f68B7f",
"community_pool_address": "0xf0d861f90707Fc348d3f55ac54DF51993191e146",
"deposit_box_eth_address": "0x4F945E1E36CB921acd25C25467C516B2aD830A26",
"deposit_box_erc20_address": "0x05F9264A0639419f3A1ED21de910EC1D7B7868ba",
"deposit_box_erc721_address": "0x44c39c783E2ba0B981A0a0e5beCE5a12661d11C8",
"deposit_box_erc1155_address": "0x4EC8e29627e233da710F257b537D0F53740CDB3E",
"deposit_box_erc721_with_metadata_address": "0x2dC54a15E06b9cBcE94d26C9753cc15aE3192b9C"
}

0 comments on commit 3186820

Please sign in to comment.