-
Notifications
You must be signed in to change notification settings - Fork 22
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
Update TimeLock.sol #22
base: main
Are you sure you want to change the base?
Conversation
|
||
function increaseLockTime(uint256 newLockTime) external { | ||
require(newLockTime > balances[msg.sender].lockTime, "New lock time must be greater"); | ||
balances[msg.sender].lockTime = newLockTime; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Increase lock time instead of setting it directly.
for Example.
if u pass 5 as input
it should lock the deposited amount for 5 min from the time , increaseLockTime() function has been called, if calculated time is more than the last locktime then change else don't.
return balances[msg.sender]; | ||
} | ||
|
||
function getOwnerCount() public view returns (uint256) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getOwnerCount() is not working
Try using an array instead of a map to store owners
#3 done