Move `ConversionRate` out of `account::oracle` into a shared module
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
Research direction
Locate ConversionRate in crates/miden-standards/src/account/oracle/types.rs. Identify a shared module (e.g., a new common or types module) where it can be moved. Update imports in both the oracle and fee standard modules (fee::convert_amount likely uses it). Run tests to ensure no regressions.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Rust
- Stars
- 133
- Forks
- 168
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 93
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 0xMiden/protocol
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
objects
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
All issues in 0xMiden/protocol
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100