The review has been performed based on the contract code in the following repository:
https://github.com/valory-xyz/autonolas-governance
commit: 01c92ed0b79a72ffac35191b2cb91aa46022b1b1
Update: 12-04-2023
The audit focused on FxGovernorTunnel
contract.
Flatten version of contracts. contracts
Hardhat coverage has been performed before the audit and can be found here:
------------------------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
------------------------|----------|----------|----------|----------|----------------|
contracts/bridges/ | 100 | 100 | 100 | 100 | |
FxGovernorTunnel.sol | 100 | 100 | 100 | 100 | |
Some of the checks are obtained automatically. They are commented and I do not see any serious problems.
All automatic warnings are listed in the following file, concerns of which we address in more detail below: slither-full
- zero-check on
target.call{value: value}(payload);
. Low risk. [x] fixed.
Notes:
Reentrancy in FxGovernorTunnel.processMessageFromRoot does not seem feasible.
changeRootGovernor not event. [x] fixed.