0xMiden / 0xMiden/protocol

Move `ConversionRate` out of `account::oracle` into a shared module

Offen
#3,841 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
standards
Vorherrschende Sprache
Rust
Sterne
132
Forks
167
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
110

Beschreibung

As discussed in this comment: https://github.com/0xMiden/protocol/pull/3561#discussion_r3834672363

`ConversionRate` is in `crates/miden-standards/src/account/oracle/types.rs`, inside the price oracle component's module. However, it is not oracle-specific, a rate is a general-purpose value type, and the fee standard already applies the same concept through `fee::convert_amount`.

So, we should Move `ConversionRate` out of `account::oracle` into a module that both the "oracle" and the "fee standard" can depend on.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.