Skip to content

Fix/staking extend staking duration#477

Merged
jameshowlett977 merged 12 commits intorefactoring/staking-contract-eip170from
fix/staking_extendStakingDuration
Jan 25, 2023
Merged

Fix/staking extend staking duration#477
jameshowlett977 merged 12 commits intorefactoring/staking-contract-eip170from
fix/staking_extendStakingDuration

Conversation

@jameshowlett977
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread tests/staking/StakingTest.js Outdated
});

describe("extendStakingDuration", () => {
// it("should fail if second stake in the same block", async () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but are we good to remove this test case?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, haven't pushed last commit with uncommented test.

whenNotPaused
whenNotFrozen
{
previousLock = _timestampToLockDate(previousLock);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function will revert if user input 0 value for the previousLock?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it will fail, added test to check.

@jameshowlett977 jameshowlett977 merged commit f79b440 into refactoring/staking-contract-eip170 Jan 25, 2023
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.

3 participants