Platform: Code4rena
Start Date: 23/02/2024
Pot Size: $36,500 USDC
Total HM: 2
Participants: 39
Period: 7 days
Judge: Dravee
Id: 338
League: ETH
Rank: 25/39
Findings: 1
Award: $80.57
🌟 Selected for report: 0
🚀 Solo Findings: 0
80.5733 USDC - $80.57
https://github.com/code-423n4/2024-02-spectra/blob/383202d0b84985122fe1ba53cfbbb68f18ba3986/src/tokens/PrincipalToken.sol#L806-L808 https://github.com/code-423n4/2024-02-spectra/blob/383202d0b84985122fe1ba53cfbbb68f18ba3986/src/tokens/PrincipalToken.sol#L829-L831 https://github.com/code-423n4/2024-02-spectra/blob/383202d0b84985122fe1ba53cfbbb68f18ba3986/src/tokens/PrincipalToken.sol#L460
PrincipalToken not compliant with EIP-5095. This can render unusable external integrations.
Manual review
_beforeRedeem/Withdraw
and add following lines (adapted from openzeppelin ERC4626):if (msg.sender != owner) { _spendAllowance(owner, caller, shares); }
whenNotPaused
modifier from maxWithdraw
Other
#0 - c4-pre-sort
2024-03-03T09:20:02Z
gzeon-c4 marked the issue as duplicate of #33
#1 - c4-pre-sort
2024-03-03T09:20:05Z
gzeon-c4 marked the issue as sufficient quality report
#2 - c4-judge
2024-03-11T00:33:34Z
JustDravee marked the issue as satisfactory
#3 - c4-judge
2024-03-11T00:33:38Z
JustDravee marked the issue as partial-75