@@ -6,7 +6,7 @@ import { IERC20Upgradeable, IPerpetualTranche, IBondIssuer, IBondController, ITr
66import { IVault } from "./_interfaces/IVault.sol " ;
77import { IRolloverVault } from "./_interfaces/IRolloverVault.sol " ;
88import { IERC20Burnable } from "./_interfaces/IERC20Burnable.sol " ;
9- import { TokenAmount, RolloverData, SubscriptionParams } from "./_interfaces/ReturnData .sol " ;
9+ import { TokenAmount, RolloverData, SubscriptionParams } from "./_interfaces/CommonTypes .sol " ;
1010import { UnauthorizedCall, UnauthorizedTransferOut, UnacceptableReference, UnexpectedDecimals, UnexpectedAsset, UnacceptableDeposit, UnacceptableRedemption, OutOfBounds, TVLDecreased, UnacceptableSwap, InsufficientDeployment, DeployedCountOverLimit } from "./_interfaces/ProtocolErrors.sol " ;
1111
1212import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol " ;
@@ -408,10 +408,8 @@ contract RolloverVault is
408408 return redeem (notes);
409409 }
410410
411- /// @notice Allows users to swap their underlying tokens for perps held by the vault.
411+ /// @inheritdoc IRolloverVault
412412 /// @dev Callers should call `recover` before executing `swapUnderlyingForPerps` to maximize vault liquidity.
413- /// @param underlyingAmtIn The amount of underlying tokens swapped in.
414- /// @return The amount of perp tokens swapped out.
415413 function swapUnderlyingForPerps (uint256 underlyingAmtIn ) external nonReentrant whenNotPaused returns (uint256 ) {
416414 // Calculates the fee adjusted perp amount to transfer to the user.
417415 // NOTE: This operation should precede any token transfers.
@@ -453,9 +451,7 @@ contract RolloverVault is
453451 return perpAmtOut;
454452 }
455453
456- /// @notice Allows users to swap their perp tokens for underlying tokens held by the vault.
457- /// @param perpAmtIn The amount of perp tokens swapped in.
458- /// @return The amount of underlying tokens swapped out.
454+ /// @inheritdoc IRolloverVault
459455 function swapPerpsForUnderlying (uint256 perpAmtIn ) external nonReentrant whenNotPaused returns (uint256 ) {
460456 // Calculates the fee adjusted underlying amount to transfer to the user.
461457 IPerpetualTranche perp_ = perp;
@@ -498,11 +494,7 @@ contract RolloverVault is
498494 //--------------------------------------------------------------------------
499495 // External & Public methods
500496
501- /// @notice Computes the amount of perp tokens that are returned when user swaps a given number of underlying tokens.
502- /// @param underlyingAmtIn The number of underlying tokens the user swaps in.
503- /// @return perpAmtOut The number of perp tokens returned to the user.
504- /// @return perpFeeAmtToBurn The amount of perp tokens to be paid to the perp contract as mint fees.
505- /// @return s The pre-swap perp and vault subscription state.
497+ /// @inheritdoc IRolloverVault
506498 function computeUnderlyingToPerpSwapAmt (uint256 underlyingAmtIn )
507499 public
508500 returns (
@@ -533,11 +525,7 @@ contract RolloverVault is
533525 return (perpAmtOut, perpFeeAmtToBurn, s);
534526 }
535527
536- /// @notice Computes the amount of underlying tokens that are returned when user swaps a given number of perp tokens.
537- /// @param perpAmtIn The number of perp tokens the user swaps in.
538- /// @return underlyingAmtOut The number of underlying tokens returned to the user.
539- /// @return perpFeeAmtToBurn The amount of perp tokens to be paid to the perp contract as burn fees.
540- /// @return s The pre-swap perp and vault subscription state.
528+ /// @inheritdoc IRolloverVault
541529 function computePerpToUnderlyingSwapAmt (uint256 perpAmtIn )
542530 public
543531 returns (
0 commit comments