Mimo DeFi contest - dipp's results

Bridging the chasm between the DeFi world and the world of regulated financial institutions.

General Information

Platform: Code4rena

Start Date: 28/04/2022

Pot Size: $50,000 USDC

Total HM: 7

Participants: 43

Period: 5 days

Judge: gzeon

Total Solo HM: 2

Id: 115

League: ETH

Mimo DeFi

Findings Distribution

Researcher Performance

Rank: 30/43

Findings: 1

Award: $104.94

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

104.9405 USDC - $104.94

Labels

bug
QA (Quality Assurance)

External Links

N-01: Missing zero address checks

Line References:

InceptionVaultsCore.sol#L40-L58

AdminInceptionVault.sol#L35-L49

InceptionVaultsDataProvider.sol#L30-L37

ChainlinkInceptionPriceFeed.sol#L29-L39

Description

For InceptionVaultsCore.sol, the initialize function should check the values of _owner, inceptionCollateral, addressProvider, adminInceptionVault, inceptionVaultsDataProvider and inceptionPriceFeed.

For AdminInceptionVault.sol, the initialize function should check the values of _owner, addressProvider, debtNotifier and inceptionVaultsCore.

For InceptionVaultsDataProvider.sol, the initialize function should check the values of inceptionVaultsCore and addressProvider.

For ChainlinkInceptionPriceFeed.sol, the initialize function should check the values of addresses, inceptionCollateral, assetOracle and eurOracle.

N-02: SafeMath sub function not used

Line References:

ChainlinkInceptionPriceFeed.sol#L76

ChainlinkInceptionPriceFeed.sol#L80

Description

To prevent underflows, it would be safer to use the SafeMath sub function.

N-03: Avoid using an underflow to get the maximum for uint256

Line References:

PARMinerV2.sol#L58

Description

Using the value 2**256-1 or type(uint256).max are better options.

N-04: Check _vaultConfig values in InceptionVaultCore.sol.

Line References:

InceptionVaultsCore.sol#L40-L58

Description

Values such as minCollateralRatio and liquidationRatio should be set and values such as the originationFee, liquidationFee and liquidationBonus should be checked for maximum and minimum values.

The _vaultConfig values should be checked in the initialize function.

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter