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) {
|
||||
case CheckState.OK:
|
||||
text = 'Your chequebook is deployed and funded'
|
||||
break
|
||||
case CheckState.WARNING:
|
||||
text = (
|
||||
<>
|
||||
Your chequebook is not funded. Please deposit some xBZZ to your chequebook address. You may need to aquire BZZ
|
||||
(e.g. <a href="https://bzz.exchange/">bzz.exchange</a>) and bridge it to the Gnosis Chain network through the{' '}
|
||||
<a href="https://omni.gnosischain.com/bridge">omni bridge</a>. To pay the transaction fees, you will also need
|
||||
xDAI token. You can purchase DAI on the Ethereum mainnet network and bridge it to Gnosis Chain network through
|
||||
the <a href="https://bridge.gnosischain.com">xDai Bridge</a>. See the{' '}
|
||||
Your chequebook is deployed. You may deposit some xBZZ to your chequebook to afford more traffic. You can
|
||||
acquire BZZ (e.g. <a href="https://bzz.exchange/">bzz.exchange</a>) and bridge it to the Gnosis Chain network
|
||||
through the <a href="https://omni.gnosischain.com/bridge">omni bridge</a>. To pay the transaction fees, you
|
||||
will also need xDAI token. You can purchase DAI on the Ethereum mainnet network and bridge it to Gnosis Chain
|
||||
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.
|
||||
</>
|
||||
)
|
||||
|
||||
@@ -163,14 +163,9 @@ function getStatus(
|
||||
if (error || (nodeInfo && [BeeModes.FULL, BeeModes.LIGHT].includes(nodeInfo.beeMode))) {
|
||||
status.chequebook.isEnabled = true
|
||||
|
||||
if (
|
||||
chequebookAddress?.chequebookAddress &&
|
||||
chequebookBalance !== null &&
|
||||
chequebookBalance?.totalBalance.toBigNumber.isGreaterThan(0)
|
||||
) {
|
||||
if (chequebookAddress?.chequebookAddress && chequebookBalance !== null) {
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user