This repository has been archived by the owner on May 26, 2023. It is now read-only.
obront - HardVault never deposits assets to Compound #147
Labels
Has Duplicates
A valid issue with 1+ other issues describing the same vulnerability
Medium
A valid Medium severity issue
Reward
A payout will be made for this issue
Sponsor Confirmed
The sponsor acknowledged this issue is valid
Will Fix
The sponsor confirmed this issue will be fixed
obront
medium
HardVault never deposits assets to Compound
Summary
While the protocol states that all underlying assets are deposited to their Compound fork to earn interest, it appears this action never happens in
HardVault.sol
.Vulnerability Detail
The documentation and comments seem to make clear that all assets deposited to
HardVault.sol
should be deposited to Compound to earn yield:However, if we examine the code in these functions, there is no movement of the assets to Compound. Instead, they sit in the Hard Vault and doesn't earn any yield.
Impact
Users who may expect to be earning yield on their underlying tokens will not be.
Code Snippet
https://github.com/sherlock-audit/2023-02-blueberry/blob/main/contracts/vault/HardVault.sol#L68-L116
Tool used
Manual Review
Recommendation
Either add the functionality to the Hard Vault to have the assets pulled from the ERC1155 and deposited to the Compound fork, or change the comments and docs to be clear that such underlying assets will not be receiving any yield.
The text was updated successfully, but these errors were encountered: