This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Description
@0xAshish reported that making changes in contracts exceeds the max permissible bytecode size of a contract. FYI the byte limit for contract size is 24576. See this.
Moreover, there are a lot of calls among the contracts; interfaces for which are not every clean - for instance rootchain.setWethToken
calling withdrawManager.setWethToken
AND depositManager.setWethToken
- This is code duplication which is one the reasons for large contract sizes. Also, the contracts are abundant with calls of the nature setContract
(setExitNFTContract
, setDepositManager
etc)
To combat the same, some sort of contracts refactoring is required.