Omniscia Alliance Block Audit
Router Manual Review Findings
Router Manual Review Findings
ROU-01M: Empty Fallback Function
Type | Severity | Location |
---|---|---|
Logical Fault | Minor | Router.sol:L113 |
Description:
The receive
implementation of the contract contains no logic.
Example:
contracts/Router.sol
113receive() external payable {}
Recommendation:
We advise whether the contract should receive the native currency or not to be evaluated as there currently is no logic to utilize the balance of the contract in any of the facets.
Alleviation:
The receive
function was omitted from the codebase and the fallback
function also had its payable
attribute removed, guaranteeing that the contract can no longer receive native currency.