Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ewansheldon committed Dec 2, 2024
1 parent ef09531 commit 624bfa0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 4 additions & 5 deletions test/foundry/ForkTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions test/foundry/fixtures/ForkFixture.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 624bfa0

Please sign in to comment.