Assessment reports>ZetaChain>Threat Models>Message: DeployFungibleCoinZRC20

Message: DeployFungibleCoinZRC20

The DeployFungibleCoinZRC20 handler is responsible for deploying a ZRC20 token contract on the EVM. It does two different things depending on whether the coin being deployed has a type of CoinType_Gas or not.

If the type is CoinType_Gas, the handler sets up an ERC20 contract for the token and then sets up a Uniswap V2 pool for the token. The pool contains ZETA tokens and the gas token itself. It also adds 0.1 gas/0.1 zeta into the pool.

If the type is CoinType_Zeta or CoinType_ERC20, the handler simply deploys an ERC20 contract for the token on the EVM.

It is only callable by the Admin Policy account.

Zellic © 2024Back to top ↑