Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QA Report #6

Open
code423n4 opened this issue Aug 3, 2022 · 0 comments
Open

QA Report #6

code423n4 opened this issue Aug 3, 2022 · 0 comments
Labels
bug Something isn't working edited-by-warden QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax

Comments

@code423n4
Copy link
Contributor

code423n4 commented Aug 3, 2022

1.Override function arguments that are unused should have the variable name removed or commented out to avoid compiler warnings

contracts/actions/automated/MIMOAutoAction.sol
32: function setAutomation(uint256 vaultId, AutomatedVault calldata autoParams) external override {
57: function getAutomatedVault(uint256 vaultId) external view override returns (AutomatedVault memory) {
64: function getOperationTracker(uint256 vaultId) external view override returns (uint256) {

contracts/actions/automated/MIMOAutoRebalance.sol
54: function rebalance(uint256 vaultId, IMIMOSwap.SwapData calldata swapData) external override {

contracts/actions/managed/MIMOManagedAction.sol
33: function setManagement(uint256 vaultId, ManagedVault calldata mgtParams) external override {
55: function setManager(address manager, bool isManager) external override {
70: function getManagedVault(uint256 vaultId) external view override returns (ManagedVault memory) {
77: function getOperationTracker(uint256 vaultId) external view override returns (uint256) {
84: function getManager(address manager) external view override returns (bool) {

contracts/proxy/MIMOProxy.sol
127: function multicall(address[] calldata targets, bytes[] calldata data) external override returns (bytes[] memory) {

contracts/proxy/MIMOProxyFactory.sol
33: function isProxy(address proxy) external view override returns (bool result) {
40: function deploy() external override returns (IMIMOProxy proxy) {

contracts/proxy/MIMOProxyRegistry.sol
33: function getCurrentProxy(address owner) external view override returns (IMIMOProxy proxy) {

  1. Unused/Empty receive()/fallback() function

contracts/proxy/MIMOProxy.sol
38: receive() external payable {}

  1. Unused named returns

contracts/proxy/MIMOProxyFactory.sol
40: function deploy() external override returns (IMIMOProxy proxy) {

  1. Public functions not called by the contract should be declared external instead

contracts/proxy/MIMOProxy.sol
104: function setPermission(

  1. Constants should be defined rather than using magic numbers

contracts/proxy/MIMOProxy.sol
30: minGasReserve = 5_000;

@code423n4 code423n4 added bug Something isn't working QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax labels Aug 3, 2022
code423n4 added a commit that referenced this issue Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working edited-by-warden QA (Quality Assurance) Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Projects
None yet
Development

No branches or pull requests

1 participant