diff --git a/test/foundry/ForkTest.t.sol b/test/foundry/ForkTest.t.sol index 92c2e26..8b5040a 100644 --- a/test/foundry/ForkTest.t.sol +++ b/test/foundry/ForkTest.t.sol @@ -107,14 +107,13 @@ contract ForkTest is ForkFixture { uint256 vaultDebt = status.minted; bytes memory ethUSDsSwapPath = abi.encodePacked(WETH_ADDRESS, UNISWAP_FEE, USDC_ADDRESS, RAMSES_FEE, USDS_ADDRESS); - + vm.prank(VAULT_MANAGER_OWNER); smartVaultManager.setAutoRedemption(address(this)); - + uint256 _ethRedeemAmount = ethCollateral / 10; - uint256 _USDsRedeemed = smartVaultManager.vaultAutoRedemption( - address(legacyVault), address(0), ethUSDsSwapPath, _ethRedeemAmount - ); + uint256 _USDsRedeemed = + smartVaultManager.vaultAutoRedemption(address(legacyVault), address(0), ethUSDsSwapPath, _ethRedeemAmount); status = legacyVault.status(); console.log(status.minted); diff --git a/test/foundry/fixtures/ForkFixture.sol b/test/foundry/fixtures/ForkFixture.sol index 2038914..5118de7 100644 --- a/test/foundry/fixtures/ForkFixture.sol +++ b/test/foundry/fixtures/ForkFixture.sol @@ -217,8 +217,7 @@ contract ForkFixture is Test { function _deployVaultManager() internal { // deploy SmartVaultManager smartVaultManager = new SmartVaultManagerV6(); - priceCalculator = - new PriceCalculator(NATIVE, CL_USDC_USD_ADDRESS, CL_L2_SEQUENCER_UPTIME_FEED_ADDRESS); + priceCalculator = new PriceCalculator(NATIVE, CL_USDC_USD_ADDRESS, CL_L2_SEQUENCER_UPTIME_FEED_ADDRESS); SmartVaultDeployerV4 smartVaultDeployer = new SmartVaultDeployerV4(NATIVE, address(priceCalculator)); SmartVaultIndex smartVaultIndex = new SmartVaultIndex(); MockNFTMetadataGenerator nftMetadataGenerator = new MockNFTMetadataGenerator();