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

Oracles: Protect from configuring with duplicated feeders #1661

Merged
merged 2 commits into from Dec 30, 2023

Conversation

lemunozm
Copy link
Contributor

Description

We should avoid configuring the feeders with a vector to prevent the caller from adding duplicated feeders. Instead of checking duplications in runtime, we can ensure this behavior in the type system using a set.

@lemunozm lemunozm added I3-annoyance The code behaves as expected, but "expected" is an issue. Q3-medium Can be done with good experience in the language, but little knowledge of the codebase. P7-asap Issue should be addressed in the next days. labels Dec 27, 2023
@lemunozm lemunozm self-assigned this Dec 27, 2023
cdamian
cdamian previously approved these changes Dec 27, 2023
Copy link
Contributor

@cdamian cdamian left a comment

Choose a reason for hiding this comment

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

LGTM

NunoAlexandre
NunoAlexandre previously approved these changes Dec 27, 2023
Copy link
Contributor

@NunoAlexandre NunoAlexandre left a comment

Choose a reason for hiding this comment

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

Way to go 👌

mustermeiszer
mustermeiszer previously approved these changes Dec 27, 2023
Copy link
Collaborator

@mustermeiszer mustermeiszer left a comment

Choose a reason for hiding this comment

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

LGTM!

@lemunozm
Copy link
Contributor Author

Thanks! Waiting to #1658 first

Base automatically changed from loans/oracle-v2 to main December 29, 2023 22:30
@lemunozm lemunozm dismissed stale reviews from mustermeiszer, NunoAlexandre, and cdamian December 29, 2023 22:31

The base branch was changed.

@lemunozm lemunozm enabled auto-merge (squash) December 30, 2023 06:22
@lemunozm lemunozm merged commit 902f16e into main Dec 30, 2023
9 checks passed
@lemunozm lemunozm deleted the oracle/feeders-as-set branch December 30, 2023 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I3-annoyance The code behaves as expected, but "expected" is an issue. P7-asap Issue should be addressed in the next days. Q3-medium Can be done with good experience in the language, but little knowledge of the codebase.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants