zeta-chain / node

ZetaChain’s blockchain node and an observer validator client
https://zetachain.com
MIT License
164 stars 105 forks source link

Prevent ZETA withdraw at the protocol level if ZETA not enabled #2648

Open lumtis opened 1 month ago

lumtis commented 1 month ago

For new added supported networks, we don't enabled ZETA withdraws.

However, a CCTX can still be initiated by interacting with the connector. This create the CCTX that gets reverted or aborted/ This will lead to:

We need to prevent at the protocol level from initiating a CCTX if ZETA is not support and gives a message that it is not supported.

One solution can be to use the ChainParams: ZetaTokenAddress or ConnectorAddress not set mean it is disabled.

lumtis commented 1 month ago

Adding for August release as it can be part of the smart contract environment migration. Need to assess complexity.