You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -393,6 +395,13 @@ contract RolloverVaultTest is BaseTest {
393
395
vm.stopPrank();
394
396
}
395
397
398
+
// Check that redeemable assets are set correctly
399
+
{
400
+
assertEq(rolloverVault.redeemableAssets().length, 2, "RolloverVault should have 2 redeemable assets");
401
+
assertEq(rolloverVault.redeemableAssets()[0], address(usdx), "RolloverVault should have usdx as the first redeemable asset");
402
+
assertEq(rolloverVault.redeemableAssets()[1], address(consol), "RolloverVault should have consol as the second redeemable asset");
403
+
}
404
+
396
405
// Keeper pauses the rolloverVault and deposits the entire usdx balance into the origination pool
397
406
{
398
407
vm.startPrank(keeper);
@@ -401,6 +410,14 @@ contract RolloverVaultTest is BaseTest {
401
410
vm.stopPrank();
402
411
}
403
412
413
+
// Check that redeemable assets have been updated correctly
414
+
{
415
+
assertEq(rolloverVault.redeemableAssets().length, 3, "RolloverVault should have 3 redeemable assets");
416
+
assertEq(rolloverVault.redeemableAssets()[0], address(usdx), "RolloverVault should have usdx as the first redeemable asset");
417
+
assertEq(rolloverVault.redeemableAssets()[1], address(consol), "RolloverVault should have consol as the second redeemable asset");
418
+
assertEq(rolloverVault.redeemableAssets()[2], address(originationPool), "RolloverVault should have the origination pool as the third redeemable asset");
419
+
}
420
+
404
421
// Skip time ahead to the origination pool's redemption period
// Validate that the user has the expected redemption amounts
530
+
assertApproxEqAbs(usdx.balanceOf(user), expectedUsdxRedemption, 1, "User should get expectedUsdxRedemption usdx out of the rolloverVault");
531
+
assertApproxEqAbs(originationPool.balanceOf(user), expectedOgpRedemption, 1, "User should get expectedOgpRedemption origination pool out of the rolloverVault");
532
+
533
+
// Skip ahead to the origination pool's redemption period
0 commit comments