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

chore: temp permissions fix #161

Closed
wants to merge 1 commit into from
Closed

chore: temp permissions fix #161

wants to merge 1 commit into from

Conversation

kyranjamie
Copy link
Collaborator

No description provided.

Copy link

vercel bot commented Nov 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
lockstacks ✅ Ready (Inspect) Visit Preview Nov 17, 2023 7:26am

@@ -28,7 +21,7 @@ export function createValidationSchema({
.test({
name: 'test-max-lock-period',
message: "You can't lock for more than 12 cycles.",
test: value => value + stackerInfoDetails.lock_period <= 12,
test: value => value <= 12,
Copy link
Collaborator

@friedger friedger Nov 17, 2023

Choose a reason for hiding this comment

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

The current change unblocks current users.

However, when extending during the locking period the tx might fail because the total is over 12.

I think we need to make a better calculation.
Value should be <= value + stackerInfoDetails.lock_period - current_cycle + stackerInfoDetails.first_cycle

@kyranjamie kyranjamie closed this May 8, 2024
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