zeta-chain / protocol-contracts

Protocol contracts implementing the core logic of the protocol, deployed on ZetaChain and on connected chains
MIT License
70 stars 58 forks source link

Rename `WZETA` in the Connector on ZetaChain to `zetaToken` #158

Closed fadeev closed 3 months ago

fadeev commented 5 months ago

In the connector on connected EVM chains ZETA token address is stored as zetaToken:

https://github.com/zeta-chain/protocol-contracts/blob/d21bce58271993ca9ad32b295a44b23d06ee5ff9/contracts/evm/ZetaConnector.base.sol#L16

On ZetaChain's connector it's stored as WZETA:

https://github.com/zeta-chain/protocol-contracts/blob/d21bce58271993ca9ad32b295a44b23d06ee5ff9/contracts/zevm/ZetaConnectorZEVM.sol#L65

I propose we rename WZETA to zetaToken, so that it becomes possible to deploy messaging contracts that read ZETA token address from the connector instead of passing it explicitly to the constructor.

lumtis commented 4 months ago

Will be set the same for new contracts

skosito commented 3 months ago

this can be closed, it is named correctly on v2 zetaconnector