Skip to content

fix(pulse): update balance before parse call #2694

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

Merged
merged 1 commit into from
May 19, 2025

Conversation

tejasbadadare
Copy link
Contributor

Summary

Apply the checks-effects-interactions pattern -- update the balance before the Pyth parse call, even though there is a low chance of a reentrancy attack since we control the Pyth contract.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

Copy link

vercel bot commented May 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2025 9:45pm
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2025 9:45pm
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2025 9:45pm
entropy-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2025 9:45pm
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2025 9:45pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2025 9:45pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2025 9:45pm

@ali-behjati ali-behjati merged commit cfc7a1d into main May 19, 2025
11 checks passed
@ali-behjati ali-behjati deleted the tb/pulse/update-bal-before-parse-call branch May 19, 2025 11:30
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.

2 participants