-
Notifications
You must be signed in to change notification settings - Fork 6
check #53
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
base: dev
Are you sure you want to change the base?
check #53
Conversation
4ca5261 to
3031721
Compare
65907d5 to
1019993
Compare
91ce8c1 to
96fb022
Compare
| ) | ||
| .unwrap_syscall(); | ||
| let x: i64 = funding_index.try_into().unwrap(); | ||
| x.into() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Incorrect Storage Offset and Mutable Access Violation
The get_funding_index function reads the funding_index field using a hardcoded storage offset of 4. The SyntheticTimelyData struct layout suggests offset 3 is correct, potentially returning wrong data. Also, get_synthetic_risk_factor uses .update() for a read operation on asset_risk_factor_tiers, where .at() is typically for immutable access.
This change is