0xMiden / 0xMiden/protocol

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

Aberta
#3,841 0 comentários 1 reação 0 responsáveis Ver no GitHub
standards
Linguagem predominante
Rust
Estrelas
132
Forks
167
Merge médio
1d 23h
PRs com merge (30d)
110

Descrição

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.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.