fix: do not require chequebook funding (#599)
* fix: do not require chequebook funding * chore: revert import sorting
This commit is contained in:
@@ -19,16 +19,13 @@ const ChequebookDeployFund = (): ReactElement | null => {
|
|||||||
|
|
||||||
switch (checkState) {
|
switch (checkState) {
|
||||||
case CheckState.OK:
|
case CheckState.OK:
|
||||||
text = 'Your chequebook is deployed and funded'
|
|
||||||
break
|
|
||||||
case CheckState.WARNING:
|
|
||||||
text = (
|
text = (
|
||||||
<>
|
<>
|
||||||
Your chequebook is not funded. Please deposit some xBZZ to your chequebook address. You may need to aquire BZZ
|
Your chequebook is deployed. You may deposit some xBZZ to your chequebook to afford more traffic. You can
|
||||||
(e.g. <a href="https://bzz.exchange/">bzz.exchange</a>) and bridge it to the Gnosis Chain network through the{' '}
|
acquire BZZ (e.g. <a href="https://bzz.exchange/">bzz.exchange</a>) and bridge it to the Gnosis Chain network
|
||||||
<a href="https://omni.gnosischain.com/bridge">omni bridge</a>. To pay the transaction fees, you will also need
|
through the <a href="https://omni.gnosischain.com/bridge">omni bridge</a>. To pay the transaction fees, you
|
||||||
xDAI token. You can purchase DAI on the Ethereum mainnet network and bridge it to Gnosis Chain network through
|
will also need xDAI token. You can purchase DAI on the Ethereum mainnet network and bridge it to Gnosis Chain
|
||||||
the <a href="https://bridge.gnosischain.com">xDai Bridge</a>. See the{' '}
|
network through the <a href="https://bridge.gnosischain.com">xDai Bridge</a>. See the{' '}
|
||||||
<a href="https://www.gnosischain.com">official Gnosis Chain website</a> for more information.
|
<a href="https://www.gnosischain.com">official Gnosis Chain website</a> for more information.
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -163,14 +163,9 @@ function getStatus(
|
|||||||
if (error || (nodeInfo && [BeeModes.FULL, BeeModes.LIGHT].includes(nodeInfo.beeMode))) {
|
if (error || (nodeInfo && [BeeModes.FULL, BeeModes.LIGHT].includes(nodeInfo.beeMode))) {
|
||||||
status.chequebook.isEnabled = true
|
status.chequebook.isEnabled = true
|
||||||
|
|
||||||
if (
|
if (chequebookAddress?.chequebookAddress && chequebookBalance !== null) {
|
||||||
chequebookAddress?.chequebookAddress &&
|
|
||||||
chequebookBalance !== null &&
|
|
||||||
chequebookBalance?.totalBalance.toBigNumber.isGreaterThan(0)
|
|
||||||
) {
|
|
||||||
status.chequebook.checkState = CheckState.OK
|
status.chequebook.checkState = CheckState.OK
|
||||||
} else if (chequebookAddress?.chequebookAddress) status.chequebook.checkState = CheckState.WARNING
|
} else status.chequebook.checkState = CheckState.OK
|
||||||
else status.chequebook.checkState = CheckState.OK
|
|
||||||
}
|
}
|
||||||
|
|
||||||
status.all = determineOverallStatus(debugApiHealth, debugApiReadiness, status)
|
status.all = determineOverallStatus(debugApiHealth, debugApiReadiness, status)
|
||||||
|
|||||||
Reference in New Issue
Block a user