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

CP-9383 #2026

Merged
merged 7 commits into from
Oct 28, 2024
Merged

CP-9383 #2026

merged 7 commits into from
Oct 28, 2024

Conversation

neven-s
Copy link
Collaborator

@neven-s neven-s commented Oct 28, 2024

Description

Ticket: CP-9383

This fixes issue with staking because of DST, where calculations would be wrong when calculating 2 week min amount of staking that is passing over DST date.

Testing

Already tested by @eunjisong

Checklist

Please check all that apply (if applicable)

  • I have performed a self-review of my code
  • I have verified the code works
  • I have added/updated necessary unit tests
  • I have updated the documentation

it('calculates end date in months', () => {
const result = getStakeEndDate({
startDateUnix,
stakeDurationFormat: StakeDurationFormat.Month,
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice tests!

@atn4z7 atn4z7 merged commit 036d819 into main Oct 28, 2024
4 checks passed
@atn4z7 atn4z7 deleted the CP-9383 branch October 28, 2024 16:02
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