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

Update TimeLock.sol #22

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dhairya8luthra
Copy link
Contributor

#3 done


function increaseLockTime(uint256 newLockTime) external {
require(newLockTime > balances[msg.sender].lockTime, "New lock time must be greater");
balances[msg.sender].lockTime = newLockTime;
Copy link
Contributor

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) {
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants