Skip to content

Commit

Permalink
refactor: update getSuperVaultData() implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
TamaraRingas committed Nov 4, 2024
1 parent 45e05d5 commit 692c1e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/SuperVault.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,10 @@ contract SuperVaultTest is ProtocolActions {
(address superFormSuperVault,,) = SUPER_VAULT_ID1.getSuperform();
address superVaultAddress = IBaseForm(superFormSuperVault).getVaultAddress();
uint256[] memory svDataWeights = new uint256[](underlyingSuperformIds.length);
svDataWeights = SuperVault(superVaultAddress).weights();
SuperVault vault = SuperVault(superVaultAddress);
for (uint256 i; i < underlyingSuperformIds.length; i++) {
svDataWeights[i] = vault.weights(i);
}
uint256[] memory underlyingIndexes = _calculateUnderlyingIndexes();
uint256[] memory calculatedWeights = _calculateRealWeights(superVaultAddress, underlyingIndexes);

Expand Down

0 comments on commit 692c1e7

Please sign in to comment.