Skip to content
Snippets Groups Projects

ref(pallet-ud): remove params UdFirstReeval & UdReevalPeriodInBlocks

Merged Éloïs requested to merge elois-ref-ud into master
Files
2
@@ -72,7 +72,7 @@ async fn who_have(world: &mut DuniterWorld, who: String, amount: u64, unit: Stri
@@ -72,7 +72,7 @@ async fn who_have(world: &mut DuniterWorld, who: String, amount: u64, unit: Stri
.api
.api
.storage()
.storage()
.universal_dividend()
.universal_dividend()
.current_ud_storage(None)
.current_ud(None)
.await?;
.await?;
amount = (amount * current_ud_amount) / 1_000;
amount = (amount * current_ud_amount) / 1_000;
}
}
@@ -144,7 +144,7 @@ async fn current_ud_amount_should_be(
@@ -144,7 +144,7 @@ async fn current_ud_amount_should_be(
.api
.api
.storage()
.storage()
.universal_dividend()
.universal_dividend()
.current_ud_storage(None)
.current_ud(None)
.await?;
.await?;
assert_eq!(actual, expected);
assert_eq!(actual, expected);
Ok(())
Ok(())
@@ -157,7 +157,7 @@ async fn monetary_mass_should_be(world: &mut DuniterWorld, amount: u64, cents: u
@@ -157,7 +157,7 @@ async fn monetary_mass_should_be(world: &mut DuniterWorld, amount: u64, cents: u
.api
.api
.storage()
.storage()
.universal_dividend()
.universal_dividend()
.monetary_mass_storage(None)
.monetary_mass(None)
.await?;
.await?;
assert_eq!(actual, expected);
assert_eq!(actual, expected);
Ok(())
Ok(())
Loading