Move `ConversionRate` out of `account::oracle` into a shared module
オープン
standards
- 主要言語
- Rust
- スター
- 132
- フォーク
- 167
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 110
説明
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.
コントリビューションガイド
評価
この issue はまだ評価されていません。