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

TGE Contracts #85

Merged
merged 10 commits into from
May 27, 2024
Merged

TGE Contracts #85

merged 10 commits into from
May 27, 2024

Conversation

francisco-leal
Copy link
Member

@francisco-leal francisco-leal commented May 21, 2024

Copy link

}

// Burn the equivalent amount of tokens for the missed weeks
uint256 amountToBurn = Math.min(WEEKLY_CLAIM_AMOUNT * weeksMissed, user.amountOwed);
Copy link
Collaborator

Choose a reason for hiding this comment

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

weeksMissed here can be higher than MAX_CLAIM_WEEKS. Is it supposed to or should it be ceiled to 96?

Copy link
Member Author

Choose a reason for hiding this comment

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

the logic is correct, if the user claims after MAX_CLAIM_WEEKS + 10, then more tokens should be burned than if it was claimed at the MAX_CLAIM_WEEKS

@francisco-leal francisco-leal merged commit 9fd41d7 into master May 27, 2024
1 check passed
@francisco-leal francisco-leal deleted the add-TGE-contracts branch May 27, 2024 08:45
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.

None yet

3 participants