Submitted by p0wd3r
The unwhitelist function of ERC20Custody cannot be invoked,
The unwhitelist function of ERC20Custody is supposed to be triggered by SignWhitelistTx, but SignWhitelistTx is not called anywhere else. Additionally, there is no test code in node specifically for unwhitelist.
https://github.com/code-423n4/2023-11-zetachain/blob/main/repos/node/zetaclient/evm_signer.go#L626-L633
The whitelist function is actually called in SignCommandTx, but there is no call to unwhitelist within SignCommandTx.
https://github.com/code-423n4/2023-11-zetachain/blob/main/repos/node/zetaclient/evm_signer.go#L257-L278
Ultimately, unwhitelist cannot be invoked through tss.
https://github.com/code-423n4/2023-11-zetachain/blob/main/repos/protocol-contracts/contracts/evm/ERC20Custody.sol#L153-L156
VScode
Add a call to SignWhitelistTx.
lumtis (ZetaChain) confirmed
0xean (Judge) commented:
