Skip to content
Snippets Groups Projects
Commit 51fb6052 authored by Éloïs's avatar Éloïs
Browse files

doc(pallet-ud): update doc of reeval ud formula

parent e9b62cbb
No related branches found
No related tags found
No related merge requests found
...@@ -233,7 +233,7 @@ pub mod pallet { ...@@ -233,7 +233,7 @@ pub mod pallet {
members_count: BalanceOf<T>, members_count: BalanceOf<T>,
count_uds_beetween_two_reevals: BalanceOf<T>, // =(dt/udFrequency) count_uds_beetween_two_reevals: BalanceOf<T>, // =(dt/udFrequency)
) -> BalanceOf<T> { ) -> BalanceOf<T> {
// UD(t+1) = UD(t) + c² (M(t) / N(t)) / (dt/udFrequency) // UD(t+1) = UD(t) + c² (M(t+1) / N(t+1)) / (dt/udFrequency)
ud_t + c_square * monetary_mass / (members_count * count_uds_beetween_two_reevals) ud_t + c_square * monetary_mass / (members_count * count_uds_beetween_two_reevals)
} }
fn write_ud_history(n: T::BlockNumber, account_id: T::AccountId, ud_amount: BalanceOf<T>) { fn write_ud_history(n: T::BlockNumber, account_id: T::AccountId, ud_amount: BalanceOf<T>) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment