Commit 51fb6052 authored by Éloïs's avatar Éloïs
Browse files

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

parent e9b62cbb
......@@ -233,7 +233,7 @@ pub mod pallet {
members_count: BalanceOf<T>,
count_uds_beetween_two_reevals: BalanceOf<T>, // =(dt/udFrequency)
) -> 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)
}
fn write_ud_history(n: T::BlockNumber, account_id: T::AccountId, ud_amount: BalanceOf<T>) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment