Skip to content

Commit

Permalink
code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aalavandhan committed Mar 29, 2023
1 parent d002822 commit 04c3640
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spot-contracts/contracts/vaults/RolloverVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { IERC20Upgradeable, IPerpetualTranche, IBondIssuer, IBondController, ITr

// TODO: create a IVault interface
// TODO: add mint cap
// TODO: limit size of vault assets

/// @notice Expected asset to be a valid vault asset.
/// @param token Address of the token.
Expand Down Expand Up @@ -453,8 +454,8 @@ contract RolloverVault is
// NOTE: We traverse the deployed set in the reverse order
// as deletions involve swapping the deleted element to the
// end of the set and removing the last element.
for (uint256 i = _deployed.length(); i > 0; i--) {
_syncDeployedAsset(IERC20Upgradeable(_deployed.at(i - i)));
for (uint256 i = _deployed.length() - 1; i >= 0; i--) {
_syncDeployedAsset(IERC20Upgradeable(_deployed.at(i)));
}
_syncAsset(underlying);
}
Expand Down

0 comments on commit 04c3640

Please sign in to comment.