Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement recommendations from 5.0 audit Phase 1B #4502

Merged
merged 26 commits into from
Aug 4, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix L-09
  • Loading branch information
ernestognw committed Aug 2, 2023
commit 9afa6c9e50d6d63f6fa4e97262d9c38a7ce692b5
2 changes: 1 addition & 1 deletion contracts/finance/VestingWallet.sol
ernestognw marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ contract VestingWallet is Context {
function _vestingSchedule(uint256 totalAllocation, uint64 timestamp) internal view virtual returns (uint256) {
if (timestamp < start()) {
return 0;
} else if (timestamp > end()) {
} else if (timestamp >= end()) {
frangio marked this conversation as resolved.
Show resolved Hide resolved
return totalAllocation;
} else {
return (totalAllocation * (timestamp - start())) / duration();
Expand Down