Skip to content

Commit

Permalink
Fix linting - add typed error
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasia committed Aug 28, 2024
1 parent 79139ba commit f49ccc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/contracts/test/src/multi/IProduct.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
pragma solidity ^0.8.20;

interface IProduct {
error RedeemTimePeriodNotSupported(uint256 currentPeriod, uint256 redeemPeriod);

// =============== Vault / Vault-like Behavior ===============

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/contracts/test/src/multi/SimpleInterestVault.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ contract SimpleInterestVault is IERC4626Interest, SimpleInterest, ERC4626, IProd
return ERC4626.redeem(shares, receiver, owner);
}

// TODO - not fully implemented. need to unlock the specific shares specific to this period.
function redeemAtPeriod(uint256 shares, address receiver, address owner, uint256 redeemTimePeriod)
external
returns (uint256 assets)
{
// TODO - not sure this method is required...
if (currentTimePeriodsElapsed != redeemTimePeriod) {
revert();
revert RedeemTimePeriodNotSupported(currentTimePeriodsElapsed, redeemTimePeriod);
}

return redeem(shares, receiver, owner);
Expand Down

0 comments on commit f49ccc1

Please sign in to comment.