This repository has been archived by the owner on May 26, 2023. It is now read-only.
rvierdiiev - Vault_Velo will stop working with collateral if oracle in DepositReceipt_USDC or DepositReceipt_ETH will stop working #59
Labels
rvierdiiev
medium
Vault_Velo will stop working with collateral if oracle in DepositReceipt_USDC or DepositReceipt_ETH will stop working
Summary
Vault_Velo will stop working with collateral if oracle in DepositReceipt_USDC or DepositReceipt_ETH will stop working
Vulnerability Detail
DepositReceipt_USDC and DepositReceipt_ETH contracts depend on oracle to get their deposited amount prices.
They use chain link oracles which are provided during contract creation.
In case if smth will happen with any oracle and it will nor be working anymore then DepositReceipt_USDC and DepositReceipt_ETH contracts do not have ability to set new oracle.
And as a result Vault_Velo will stop working with that collateral and no one will be able to close their loan, because Vault_Velo will be reverting when it tries to calculate deposited nft amount, because DepositReceipt_Base.getOraclePrice will be always reverting.
Impact
No one will be able to close their loan and will lose collateral.
Code Snippet
https://github.com/sherlock-audit/2022-11-isomorph/blob/main/contracts/Isomorph/contracts/Vault_Velo.sol#L555
https://github.com/sherlock-audit/2022-11-isomorph/blob/main/contracts/Isomorph/contracts/Vault_Velo.sol#L209-L212
https://github.com/sherlock-audit/2022-11-isomorph/blob/main/contracts/Velo-Deposit-Tokens/contracts/DepositReceipt_USDC.sol#L60
https://github.com/sherlock-audit/2022-11-isomorph/blob/main/contracts/Velo-Deposit-Tokens/contracts/DepositReceipt_USDC.sol#L90
https://github.com/sherlock-audit/2022-11-isomorph/blob/main/contracts/Velo-Deposit-Tokens/contracts/DepositReceipt_Base.sol#L164-L181
Tool used
Manual Review
Recommendation
Add ability to change oracle address for both contracts.
The text was updated successfully, but these errors were encountered: