Skip to content

Sui Rate Limit Fixes#917

Open
mdulin2 wants to merge 3 commits into
wormhole-foundation:mainfrom
mdulin2:sui-ntt-rate-limiter-fix
Open

Sui Rate Limit Fixes#917
mdulin2 wants to merge 3 commits into
wormhole-foundation:mainfrom
mdulin2:sui-ntt-rate-limiter-fix

Conversation

@mdulin2

@mdulin2 mdulin2 commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

There were two bugs in the rate limit code:

  • Missing timestamp update on refill.
  • Wrong scaling on outbound refill.

This PR fixes those bugs, and adds tests for the rate limiter.

@mdulin2
mdulin2 force-pushed the sui-ntt-rate-limiter-fix branch from 465f092 to ce2872a Compare June 26, 2026 17:47
@mdulin2
mdulin2 requested review from djb15 and kcsongor June 26, 2026 17:48
kcsongor
kcsongor previously approved these changes Jun 30, 2026

@djb15 djb15 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The source changes look like we discussed and it's nice to see all the new tests. Just one question about whether we can make the test a bit more precise

Comment thread sui/packages/ntt/tests/ntt_tests.move Outdated
@mdulin2
mdulin2 requested a review from kcsongor July 9, 2026 15:11
@mdulin2
mdulin2 force-pushed the sui-ntt-rate-limiter-fix branch from 49bfe80 to a87eaf4 Compare July 16, 2026 21:13
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