Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions contracts/contracts/vault/VaultCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down