Closed sherlock-admin2 closed 7 months ago
maturity
method is implemented in BaseToken
Escalate.
The issue is invalid. The following public maturity
variable will automatically create a public view function when deployed.
File: Tranche.sol
66: /// @inheritdoc IERC5095
67: /// @notice The timestamp of maturity in unix seconds
68: uint256 public immutable override(BaseToken, IERC5095) maturity;
Escalate.
The issue is invalid. The following public
maturity
variable will automatically create a public view function when deployed.File: Tranche.sol 66: /// @inheritdoc IERC5095 67: /// @notice The timestamp of maturity in unix seconds 68: uint256 public immutable override(BaseToken, IERC5095) maturity;
You've created a valid escalation!
To remove the escalation from consideration: Delete your comment.
You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final.
Escalate.
The issue is invalid. The following public
maturity
variable will automatically create a public view function when deployed.File: Tranche.sol 66: /// @inheritdoc IERC5095 67: /// @notice The timestamp of maturity in unix seconds 68: uint256 public immutable override(BaseToken, IERC5095) maturity;
Jeez man, there's no need to escalate it's already judged as invalid
This report is invalid. I don't know why it was escalated to be invalid.
Result: Invalid Unique
AuditorPraise
medium
According to EIP-5095 Tranche.sol should have a view maturity function method but it doesn't
Summary
Tranche.sol doesn't really conform to EIP-5095 standard it doesn't have a view maturity function method
Vulnerability Detail
Standards are strict and must be adhered to for the benefits of everyone.
Other protocols that implement
ERC-5095
or ones that interact withERC-5095
could check and maybe use Tranche.sol's view maturity function method, but since it doesn't really have one they won't be able to.Impact
Tranche.sol doesn't conform to EIP-5095
Code Snippet
https://eips.ethereum.org/EIPS/eip-5095#maturity
https://github.com/sherlock-audit/2024-01-napier/blob/main/napier-v1/src/Tranche.sol#L42
Tool used
Manual Review
Recommendation
add a view maturity function method to tranche.sol.