Bridging the chasm between the DeFi world and the world of regulated financial institutions.
Platform: Code4rena
Start Date: 02/08/2022
End Date: 07/08/2022
Period: 5 days
Status: Completed
Reporters: liveactionllama, itsmetechjay
Pot Size: $50,000 USDC
Participants: 69
Reporters: liveactionllama, itsmetechjay
Judge: gzeon
Id: 150
League: ETH
vlad_bochok | 1/69 | $8,444.30 | 3 | 1 | 1 | 2 | 0 | 0 | 0 | 0 |
Lambda | 2/69 | $5,035.44 | 3 | 2 | 0 | 1 | 0 | 0 | 0 | 0 |
ayeslick | 3/69 | $4,672.77 | 3 | 1 | 0 | 2 | 0 | 0 | 0 | 0 |
Bnke0x0 | 4/69 | $3,550.66 | 3 | 1 | 0 | 0 | 0 | - | - | 0 |
bin2chen | 5/69 | $3,489.26 | 2 | 1 | 0 | 0 | 0 | - | 0 | 0 |
0x52 | 6/69 | $3,307.69 | 2 | 0 | 0 | 2 | 1 | 0 | 0 | 0 |
horsefacts | 7/69 | $3,209.75 | 4 | 0 | 0 | 3 | 1 | - | 0 | 0 |
0xDjango | 8/69 | $2,522.43 | 3 | 0 | 0 | 1 | 1 | - | - | 0 |
0xNazgul | 9/69 | $2,436.29 | 3 | 0 | 0 | 1 | 1 | - | - | 0 |
cccz | 10/69 | $1,222.28 | 2 | 1 | 0 | 1 | 0 | 0 | 0 | 0 |
Auditor per page
SuperVaults V2 enables any user to deploy their own proxy contract to extend the functionality of the Mimo protocol. This opens users up to do complicated vault operations such as:
vaultsCore
operations through delegateCall
sSee docs/ for more documentation and docs/Contracts.md/ for an overview of all the contracts.
# Install all dependencies with `yarn` first. yarn # To run all tests in the test suite, including both the integration tests and the unit tests, use: yarn test
Note: integration tests are expected to occasionally fail due to them depending on 1inch/Paraswap API and being run against a forked network. Tests should pass after 2 or 3 retries max.
Outputs the following:
AttributeError: 'NoneType' object has no attribute 'can_reenter'
This is most likely linked to the opened issue crytic/slither#1001 which is quite well described here. Unfortunately we did not find a way to make Slither work.
----------------------------------------------------------------------------------------------------------------- File blank comment code ----------------------------------------------------------------------------------------------------------------- contracts/actions/MIMOEmptyVault.sol 18 35 77 contracts/actions/MIMOFlashloan.sol 8 18 33 contracts/actions/MIMOLeverage.sol 22 34 83 contracts/actions/MIMORebalance.sol 13 36 90 contracts/actions/MIMOSwap.sol 10 16 40 contracts/actions/MIMOVaultActions.sol 12 45 55 contracts/actions/automated/MIMOAutoAction.sol 20 23 66 contracts/actions/automated/MIMOAutoRebalance.sol 33 76 178 contracts/actions/automated/interfaces/IMIMOAutoAction.sol 9 1 26 contracts/actions/automated/interfaces/IMIMOAutoRebalance.sol 4 1 14 contracts/actions/interfaces/IMIMOEmptyVault.sol 2 1 11 contracts/actions/interfaces/IMIMOFlashloan.sol 5 1 20 contracts/actions/interfaces/IMIMOLeverage.sol 3 1 12 contracts/actions/interfaces/IMIMOProxyAction.sol 1 1 4 contracts/actions/interfaces/IMIMORebalance.sol 3 1 18 contracts/actions/interfaces/IMIMOSwap.sol 2 1 8 contracts/actions/interfaces/IMIMOVaultActions.sol 11 1 20 contracts/actions/managed/MIMOManagedAction.sol 25 30 77 contracts/actions/managed/MIMOManagedRebalance.sol 26 47 139 contracts/actions/managed/interfaces/IMIMOManagedAction.sol 11 1 26 contracts/actions/managed/interfaces/IMIMOManagedRebalance.sol 3 1 13 contracts/proxy/MIMOProxy.sol 25 28 95 contracts/proxy/MIMOProxyFactory.sol 16 15 27 contracts/proxy/MIMOProxyRegistry.sol 15 16 28 contracts/proxy/interfaces/IMIMOProxy.sol 13 45 22 contracts/proxy/interfaces/IMIMOProxyFactory.sol 9 16 9 contracts/proxy/interfaces/IMIMOProxyRegistry.sol 7 23 9 ----------------------------------------------------------------------------------------------------------------- SUM: 326 514 1200 -----------------------------------------------------------------------------------------------------------------
### Do you have a link to the repo that the contest will cover? Repo is still private ### How many (non-library) contracts are in the scope? 20 contracts + 7 interfaces. A large portion of the contracts were part of our first audit ### Total sLoC in these contracts? 1250 ### How many library dependencies? BoringBatchable + various OpenZeppelin libraries that are out of scope ### How many separate interfaces and struct definitions are there for the contracts within scope? 10 structs and 7 interfaces ### Does most of your code generally use composition or inheritance? Yes ### How many external calls? This project is dependent on our main Mimo protocol, Aave, 1inch and Paraswap ### Is there a need to understand a separate part of the codebase / get context in order to audit this part of the protocol? true ### Please describe required context Understanding of our main Mimo protocol is required to understand this project ### Does it use an oracle? false ### Does the token conform to the ERC20 standard? Yes ### Are there any novel or unique curve logic or mathematical models? No ### Does it use a timelock function? No ### Is it an NFT? No ### Does it have an AMM? No ### Is it a fork of a popular project? false ### Does it use rollups? false ### Is it multi-chain? true ### Does it use a side-chain? false