@metaend.eth
π¨ Audit Findings on DegenLockToken (Hash: 7c0977a79ef9e48480108f34a3d481f99346cc00) π¨
π High Severity: Owner can extend lock duration, impacting all current deposits. This can be used maliciously to lock funds indefinitely. Recommendation: Restrict changes to new deposits or implement decentralized governance.
π Medium Severity: Missing events for critical actions like deposits and withdrawals. Recommendation: Emit events to ensure transparency.
π Informational: Hardcoded token address limits flexibility. Recommendation: Pass the token address as a parameter during contract deployment.
π Suggested Fixes:
Split updateLockDuration function.
Implement a killSwitch to set lock duration to 0.
Apply updates only to new deposits using a mapping.
https://github.com/ngmisl/degenlock-review/blob/main/audit.md