Skip to content

Add Reentrancy Guard to Core Consumer Functions#356

Open
AugistineCreates wants to merge 2 commits into
StellarFlow-Network:mainfrom
AugistineCreates:reentrancy-guard
Open

Add Reentrancy Guard to Core Consumer Functions#356
AugistineCreates wants to merge 2 commits into
StellarFlow-Network:mainfrom
AugistineCreates:reentrancy-guard

Conversation

@AugistineCreates
Copy link
Copy Markdown

This pr closes #257

Implemented a transient boolean lock (DataKey::IsLocked) and added a strict check at the entry point of every core consumer routing function. Calls now panic with Error::ReentrancyDetected when the lock is active, preventing re‑entrant execution during oracle calculations. Updated documentation comments accordingly. The new reentrancy-guard branch is pushed and ready for a pull request.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 29, 2026

@AugistineCreates Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

🔒 Contracts | Reentrancy Guard Implementation via Status Lock

1 participant