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

refactor(blue): use single oracle #202

Merged
merged 9 commits into from
Aug 9, 2023
Merged

refactor(blue): use single oracle #202

merged 9 commits into from
Aug 9, 2023

Conversation

Rubilmax
Copy link
Collaborator

@Rubilmax Rubilmax self-assigned this Jul 31, 2023
@Rubilmax Rubilmax marked this pull request as ready for review July 31, 2023 12:07
src/Blue.sol Outdated Show resolved Hide resolved
@Rubilmax Rubilmax requested a review from Jean-Grimal July 31, 2023 12:25
src/Blue.sol Outdated Show resolved Hide resolved
src/Blue.sol Outdated Show resolved Hide resolved
@Rubilmax Rubilmax requested a review from MerlinEgalite August 1, 2023 07:32
MerlinEgalite
MerlinEgalite previously approved these changes Aug 1, 2023
Jean-Grimal
Jean-Grimal previously approved these changes Aug 1, 2023
test/forge/Blue.t.sol Show resolved Hide resolved
test/forge/Blue.t.sol Show resolved Hide resolved
src/interfaces/IOracle.sol Outdated Show resolved Hide resolved
makcandrov
makcandrov previously approved these changes Aug 1, 2023
pakim249CAL
pakim249CAL previously approved these changes Aug 1, 2023
Jean-Grimal
Jean-Grimal previously approved these changes Aug 2, 2023
MerlinEgalite
MerlinEgalite previously approved these changes Aug 3, 2023
@MerlinEgalite
Copy link
Contributor

@Rubilmax to update

QGarchery
QGarchery previously approved these changes Aug 8, 2023
src/interfaces/IOracle.sol Outdated Show resolved Hide resolved
src/interfaces/IOracle.sol Show resolved Hide resolved
julien-devatom
julien-devatom previously approved these changes Aug 8, 2023
@MathisGD
Copy link
Contributor

MathisGD commented Aug 9, 2023

I think that we should not expect the scale as an output of the oracle and rather should choose a coherent fixed scale. Yes, there can always be a well chosen asset pair that are unusable given a fixed scale. But it's still not worth the added complexity in Blue and oracles to me.

To verify but 10e36 feels largely enough (the decimal difference is below 18 99% of the time, and if the price ratio is above 10e-14 you still have 0.01% precision).

Edit:

the added complexity in Blue and oracles to me

actually it does not really complexifies the code, but more the framework and the work required to do an oracle

Copy link
Contributor

@MathisGD MathisGD left a comment

Choose a reason for hiding this comment

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

It seems that we agree on this ⬆️

@MathisGD
Copy link
Contributor

MathisGD commented Aug 9, 2023

Let's postpone this choice

MathisGD
MathisGD previously approved these changes Aug 9, 2023
Signed-off-by: Romain Milon <[email protected]>
@MerlinEgalite MerlinEgalite merged commit a5272b4 into main Aug 9, 2023
@MerlinEgalite MerlinEgalite deleted the feat/single-oracle branch August 9, 2023 13:58
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.

Use only one oracle
8 participants