Skip to content
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

Sb upgrade #1329

Merged
merged 6 commits into from
Nov 15, 2024
Merged

Sb upgrade #1329

merged 6 commits into from
Nov 15, 2024

Conversation

NourAlharithi
Copy link
Member

No description provided.

.iter()
.map(|submission| submission.value)
.sum::<i128>()
/ latest_oracle_submssions.len() as i128;
Copy link
Member

Choose a reason for hiding this comment

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

make sure we dont divide by 0

)?;
let delay = clock_slot
.cast::<i64>()?
.safe_sub(latest_oracle_submssions[0].landed_at.cast()?)?;
Copy link
Member

Choose a reason for hiding this comment

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

what if there 0 items?

@NourAlharithi NourAlharithi merged commit bb0d4ed into master Nov 15, 2024
10 of 11 checks passed
@NourAlharithi NourAlharithi deleted the sb-upgrade branch November 15, 2024 19:08
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