Closed code423n4 closed 2 years ago
WatchPug
https://github.com/code-423n4/2021-12-amun/blob/98f6e2ff91f5fcebc0489f5871183566feaec307/contracts/bridge/contracts/amunBasketBridge/PolygonERC20Wrapper.sol#L13-L14
Considering that underlying, childChainManager will never change, changing them to immutable variables instead of storages variable can save gas.
underlying
childChainManager
Duplicate of #18
Handle
WatchPug
Vulnerability details
https://github.com/code-423n4/2021-12-amun/blob/98f6e2ff91f5fcebc0489f5871183566feaec307/contracts/bridge/contracts/amunBasketBridge/PolygonERC20Wrapper.sol#L13-L14
Considering that
underlying
,childChainManager
will never change, changing them to immutable variables instead of storages variable can save gas.