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

fixed tests and added withdraw limit #183

Merged
merged 2 commits into from
Jun 25, 2024
Merged

fixed tests and added withdraw limit #183

merged 2 commits into from
Jun 25, 2024

Conversation

themandalore
Copy link
Contributor

No description provided.

@themandalore themandalore marked this pull request as ready for review June 20, 2024 15:09
@@ -87,13 +86,15 @@ contract TokenBridge is LayerTransition{
else{
require(token.transfer(_recipient, _amountConverted), "TokenBridge: transfer failed");
}
depositLimitRecord -= _amountConverted;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

wouldn't this be wrong? If you refreshDepositLimit() it would be some rate that you transfer it out right?

Copy link
Contributor

Choose a reason for hiding this comment

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

refreshDepositLimit is really just determining whether the 12 hour clock needs to be reset.

@akremstudy akremstudy merged commit 61f0bc8 into dev Jun 25, 2024
1 check passed
@akremstudy akremstudy deleted the withdrawLimit branch June 25, 2024 14:22
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