Skip to content

Commit

Permalink
chore: Minor LiquidStone 90 day test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasia committed Nov 26, 2024
1 parent 3a3851f commit 5cd9f52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 44 deletions.
24 changes: 0 additions & 24 deletions packages/contracts/src/timelock/ITimelockOpenEnded.sol

This file was deleted.

24 changes: 4 additions & 20 deletions packages/contracts/test/src/LiquidStoneTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ contract DeployLiquidStone is DeployLiquidMultiTokenVault {
LiquidContinuousMultiTokenVault.VaultParams memory vaultParams =
super._createVaultParams(vaultAuth, asset, yieldStrategy, redeemOptimizer);

uint256 scale = 10 ** asset.decimals();
vaultParams.contextParams.tenor = 90;
vaultParams.redeemNoticePeriod = 0;

// reduced rate as 0
vaultParams.contextParams.initialReducedRate.interestRate = 0;
vaultParams.contextParams.fullRateScaled = 10 * scale;
vaultParams.contextParams.initialReducedRate.interestRate = 0; // zero for less than tenor

return vaultParams;
}
Expand All @@ -55,23 +55,7 @@ contract LiquidStoneTest is LiquidContinuousMultiTokenVaultTestBase {
assertEq(90, _liquidVault.TENOR(), "tenor incorrect");
}

function test__LiquidStoneTest__SimpleDepositAndRedeem() public {
(TestParamSet.TestUsers memory depositUsers, TestParamSet.TestUsers memory redeemUsers) =
_createTestUsers(alice);
TestParamSet.TestParam[] memory testParams = new TestParamSet.TestParam[](1);
testParams[0] = TestParamSet.TestParam({ principal: 100 * _scale, depositPeriod: 0, redeemPeriod: 5 });

uint256[] memory sharesAtPeriods = _testDepositOnly(depositUsers, _liquidVault, testParams);
_testRedeemOnly(redeemUsers, _liquidVault, testParams, sharesAtPeriods);
}

function test__LiquidStoneTest__RedeemAtTenor() public {
testVaultAtOffsets(
alice,
_liquidVault,
TestParamSet.TestParam({ principal: 25 * _scale, depositPeriod: 0, redeemPeriod: _liquidVault.TENOR() })
);
}
// TODO - need to implement and test for RetainedAssetsReceive1APY

function test__LiquidStoneTest__RedeemFullTenor() public {
uint256 depositPeriod = 5;
Expand Down

0 comments on commit 5cd9f52

Please sign in to comment.