From 951687617ce1ec6ff405ab9a54fc809b846a7629 Mon Sep 17 00:00:00 2001 From: Daniel Von Fange Date: Wed, 5 Apr 2023 14:27:43 -0400 Subject: [PATCH] Flipper N-13 Unused functions --- contracts/contracts/vault/VaultCore.sol | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/contracts/contracts/vault/VaultCore.sol b/contracts/contracts/vault/VaultCore.sol index 6943de2966..745c51037b 100644 --- a/contracts/contracts/vault/VaultCore.sol +++ b/contracts/contracts/vault/VaultCore.sol @@ -577,19 +577,6 @@ contract VaultCore is VaultStorage { } } - /** - * @notice Get the balance of all assets held in Vault and all strategies. - * @return balance Balance of all assets (1e18) - */ - function _checkBalance() internal view returns (uint256 balance) { - for (uint256 i = 0; i < allAssets.length; i++) { - uint256 assetDecimals = Helpers.getDecimals(allAssets[i]); - balance = balance.add( - _checkBalance(allAssets[i]).scaleBy(18, assetDecimals) - ); - } - } - /** * @notice Calculate the outputs for a redeem function, i.e. the mix of * coins that will be returned