-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Liquid Deploy and Load script to load data around cut-off times
- Loading branch information
Showing
7 changed files
with
74 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
packages/contracts/test/test/script/DeployAndLoadLiquidMultiTokenVaultTest.t.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.20; | ||
|
||
import { LiquidContinuousMultiTokenVault } from "@credbull/yield/LiquidContinuousMultiTokenVault.sol"; | ||
import { LiquidContinuousMultiTokenVaultTestBase } from "@test/test/yield/LiquidContinuousMultiTokenVaultTestBase.t.sol"; | ||
import { DeployAndLoadLiquidMultiTokenVault } from "./DeployAndLoadLiquidMultiTokenVault.s.sol"; | ||
|
||
contract DeployAndLoadLiquidMultiTokenVaultTest is LiquidContinuousMultiTokenVaultTestBase { | ||
DeployAndLoadLiquidMultiTokenVault internal _deployVault; | ||
|
||
function setUp() public override { | ||
_deployVault = new DeployAndLoadLiquidMultiTokenVault(); | ||
|
||
uint256 vaultStartTimestamp = _deployVault.startTimestamp(); | ||
vm.warp(vaultStartTimestamp); // warp to a "real time" time rather than block.timestamp=1 | ||
|
||
_liquidVault = _deployVault.run(); | ||
} | ||
|
||
/// @dev - this SHOULD work, but will have knock-off effects to yield/returns and pending requests | ||
function test__DeployAndLoadLiquidMultiTokenVaultTest__VerifyCutoffs() public { | ||
LiquidContinuousMultiTokenVault.VaultAuth memory vaultAuth = _deployVault.auth(); | ||
|
||
_setPeriod(vaultAuth.operator, _liquidVault, 0); | ||
_setPeriod(vaultAuth.operator, _liquidVault, 30); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters