Skip to content

Conversation

@RoeeGross
Copy link
Collaborator

@RoeeGross RoeeGross commented Sep 16, 2025

This change is Reviewable

cursor[bot]

This comment was marked as outdated.

@RoeeGross RoeeGross force-pushed the RoeeGross/check-entry branch from 4ca5261 to 3031721 Compare September 16, 2025 11:15
cursor[bot]

This comment was marked as outdated.

@RoeeGross RoeeGross force-pushed the RoeeGross/check-entry branch 3 times, most recently from 65907d5 to 1019993 Compare September 21, 2025 13:36
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@RoeeGross RoeeGross force-pushed the RoeeGross/check-entry branch from 91ce8c1 to 96fb022 Compare September 25, 2025 08:04
cursor[bot]

This comment was marked as outdated.

)
.unwrap_syscall();
let x: i64 = funding_index.try_into().unwrap();
x.into()
Copy link

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.

Fix in Cursor Fix in Web

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