zeta-chain / protocol-contracts

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

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

Closed fadeev closed 2 months ago

fadeev commented 3 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 2 months ago

Will be set the same for new contracts

skosito commented 2 months ago

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