Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

Spelling mistakes in the `Staking.sol` contract

Summary

There are spelling mistakes in the staking.sol contract.

Recommendations

- event Withdrew(address indexed user, uint256 amount);
+ event Withdraw(address indexed user, uint256 amount);

In the withdraw::Staking.sol contract:

- emit Withdrew(msg.sender, amount);
+ emit Withdraw(msg.sender, amount);

In the claimRewards::Staking.sol contract:

- uint256 timeInWeeksSinceLastClaim = ((block.timestamp - lastClaim[msg.sender]) / 1 weeks);
+ uint256 timeInWeeksSinceLastClaim = ((block.timestamp - lastClaim[msg.sender]) / 1 week);
Updates

Lead Judging Commences

0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.