fix: use xDAI and xBZZ on Gnosis chain (#454)

* fix: use xDAI on Gnosis chain

* fix: rename BZZ to xBZZ when on Gnosis chain

* fix: replace MINIMUM_xDAI with MINIMUM_XDAI

* fix: update xdai links to correct gnosis chain urls
This commit is contained in:
Vojtech Simetka
2022-06-28 16:29:05 +02:00
committed by GitHub
parent 26ce0efc0b
commit a3c02dbf8a
14 changed files with 52 additions and 52 deletions
+10 -10
View File
@@ -95,26 +95,26 @@ export function Swap({ header }: Props): ReactElement {
<TopUpProgressIndicator index={1} />
</Box>
<Box mb={2}>
<Typography style={{ fontWeight: 'bold' }}>Swap some xDAI to BZZ</Typography>
<Typography style={{ fontWeight: 'bold' }}>Swap some xDAI to xBZZ</Typography>
</Box>
<Box mb={4}>
<Typography>
You need to swap xDAI to BZZ in order to use Swarm. Make sure to keep at least {MINIMUM_XDAI} xDAI in order to
pay for transaction costs on the network.
You need to swap xDAI to xBZZ in order to use Swarm. Make sure to keep at least {MINIMUM_XDAI} xDAI in order
to pay for transaction costs on the network.
</Typography>
</Box>
<SwarmDivider mb={4} />
<Box mb={4}>
<Typography>
Your current balance is {balance.dai.toSignificantDigits(4)} xDAI and {balance.bzz.toSignificantDigits(4)}{' '}
BZZ.
xBZZ.
</Typography>
</Box>
<Box mb={4}>
<SwarmTextInput
label="Amount to swap"
defaultValue={`${daiToSwap.toSignificantDigits(4)} XDAI`}
placeholder={`${daiToSwap.toSignificantDigits(4)} XDAI`}
defaultValue={`${daiToSwap.toSignificantDigits(4)} xDAI`}
placeholder={`${daiToSwap.toSignificantDigits(4)} xDAI`}
name="x"
onChange={event => setUserInputSwap(event.target.value)}
/>
@@ -133,14 +133,14 @@ export function Swap({ header }: Props): ReactElement {
</Box>
<Box mb={0.25}>
<ExpandableListItem
label="Resulting XDAI balance after swap"
value={`${daiAfterSwap.toSignificantDigits(4)} XDAI`}
label="Resulting xDAI balance after swap"
value={`${daiAfterSwap.toSignificantDigits(4)} xDAI`}
/>
</Box>
<Box mb={2}>
<ExpandableListItem
label="Resulting BZZ balance after swap"
value={`${bzzAfterSwap.toSignificantDigits(4)} BZZ`}
label="Resulting xBZZ balance after swap"
value={`${bzzAfterSwap.toSignificantDigits(4)} xBZZ`}
/>
</Box>
<ExpandableListItemActions>