Skip to content

Commit

Permalink
remove test logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ewansheldon committed Oct 21, 2024
1 parent c270dda commit f96bb8e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions contracts/SmartVaultV4.sol
Original file line number Diff line number Diff line change
Expand Up @@ -358,13 +358,11 @@ contract SmartVaultV4 is ISmartVault {
if (_balance == 0) revert InvalidToken();
IERC20(_token).safeIncreaseAllowance(ISmartVaultManagerV3(manager).yieldManager(), _balance);
uint256 _preDepositCollateral = usdCollateral();
console.log(_preDepositCollateral);
(address _hypervisor1, address _hypervisor2) =
ISmartVaultYieldManager(ISmartVaultManagerV3(manager).yieldManager()).deposit(_token, _stablePercentage);
addUniqueHypervisor(_hypervisor1);
if (_hypervisor2 != address(0)) addUniqueHypervisor(_hypervisor2);
uint256 _postDepositCollateral = usdCollateral();
console.log(_postDepositCollateral);
if (
_undercollateralised(_postDepositCollateral)
|| significantCollateralDrop(_preDepositCollateral, _postDepositCollateral, _minCollateralPercentage)
Expand Down

0 comments on commit f96bb8e

Please sign in to comment.