import React from 'react';
import { getEnvironment } from '../util/config-json-helper';
import { Environment, ContractState } from '../util/enum';
function WarningBanner(props: any) {
// config.js from public folder
const env = getEnvironment();
return (
{
env === Environment.PROD ?
<>
Warning: Zillion is in beta phase. Use this dApp at your own risk.
Important: Please note that gZIL minting has concluded as of Block 1483713. No further gZIL will be minted. The Zilliqa staking program will still continue to distribute ZIL for staking rewards.
{
ContractState.IS_PAUSED.toString() === 'true' &&
Attention: We have noticed an issue with the staking contract which is causing a slowdown of the Zilliqa network.
While we are investigating the issue and work on a fix, the staking contract has been paused for a week (starting from May 21, 2021).
Once the staking contract is unpaused, any missed rewards for the paused period will be retroactively disbursed.
All funds are SAFU and we apologize for your inconvenience.
}
> :
<>
Warning: Zillion is still in testnet. You are using this dApp at your own risk. Zilliqa cannot assume any responsibility for any loss of funds.
>
}
);
}
export default WarningBanner;