Skip to content

chore: Use Paxos API for Pending Withdrawals#3535

Open
dijanin-brat wants to merge 3 commits into
masterfrom
dijanin-brat/usePaxosApiForPendingWithdrawals
Open

chore: Use Paxos API for Pending Withdrawals#3535
dijanin-brat wants to merge 3 commits into
masterfrom
dijanin-brat/usePaxosApiForPendingWithdrawals

Conversation

@dijanin-brat

Copy link
Copy Markdown
Contributor

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 746f4e30c2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

assert(l2Token.toNative() === this.l2TokenAddress, `Unsupported L2 token ${l2Token.toNative()}`);

try {
const orders = await listOutstandingPaxosTransitOrders(this.client, fromAddress.toNative());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Respect the withdrawal lookback when using Paxos orders

For Robinhood/Paxos withdrawals, this API path ignores the l2EventConfig block range that AdapterManager.getL2PendingWithdrawalAmountWithLookbackPeriod builds from the configured withdrawExcessPeriod. If an order remains PENDING_BRIDGE/PROCESSING after that period, it will still be counted against InventoryClient's "last N seconds" withdrawal-volume cap, whereas the previous transfer-event query only counted initiations inside the lookback window; that can keep excess withdrawals blocked long after the configured period has elapsed.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

i would say that we want that so we can see if there are withdrawals that are stuck

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.

1 participant