Skip to content

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