Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #2780

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions runtime/integration-tests/src/honzon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ fn test_cdp_engine_module() {
});
}

// Honzon's surplus can be transfered and DebitExchangeRate updates accordingly
// Honzon's surplus can be transferred and DebitExchangeRate updates accordingly
#[test]
fn cdp_treasury_handles_honzon_surplus_correctly() {
ExtBuilder::default()
Expand Down Expand Up @@ -612,10 +612,10 @@ fn cdp_treasury_handles_honzon_surplus_correctly() {
assert_eq!(CdpTreasury::get_debit_pool(), 0);
run_to_block(2);

// Empty treasury recieves stablecoins into surplus pool from loan
// Empty treasury receives stablecoins into surplus pool from loan
assert_eq!(CdpTreasury::get_surplus_pool(), 270716741782);
assert_eq!(CdpTreasury::get_debit_pool(), 0);
// Honzon generated cdp treasury surplus can be transfered
// Honzon generated cdp treasury surplus can be transferred
assert_eq!(Currencies::free_balance(USD_CURRENCY, &AccountId::from(BOB)), 0);
assert_eq!(
CdpEngine::debit_exchange_rate(RELAY_CHAIN_CURRENCY),
Expand Down
4 changes: 2 additions & 2 deletions runtime/mandala/src/authority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,14 @@ impl orml_authority::AsOriginId<RuntimeOrigin, OriginCaller> for AuthoritysOrigi
}
}

/// Compares privilages
/// Compares privileges
fn cmp_privilege(left: &OriginCaller, right: &OriginCaller) -> Option<Ordering> {
if left == right {
return Some(Ordering::Equal);
}

match (left, right) {
// Root always has privilage
// Root always has privilege
(OriginCaller::system(frame_system::RawOrigin::Root), _) => Some(Ordering::Greater),

// Checks which one has more yes votes.
Expand Down
4 changes: 2 additions & 2 deletions runtime/mandala/src/benchmarking/authority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runtime_benchmarks! {
let ensure_root_call = RuntimeCall::System(frame_system::Call::remark { remark: vec![] });
}: _(RawOrigin::Root, AuthoritysOriginId::Root, Box::new(ensure_root_call.clone()))

// schdule a dispatchable to be dispatched at later block.
// schedule a dispatchable to be dispatched at later block.
schedule_dispatch_without_delay {
let ensure_root_call = RuntimeCall::System(frame_system::Call::remark { remark: vec![] });
let call = RuntimeCall::Authority(orml_authority::Call::dispatch_as {
Expand All @@ -45,7 +45,7 @@ runtime_benchmarks! {
});
}: schedule_dispatch(RawOrigin::Root, DispatchTime::At(2), 0, false, Box::new(call.clone()))

// schdule a dispatchable to be dispatched at later block.
// schedule a dispatchable to be dispatched at later block.
// ensure that the delay is reached when scheduling
schedule_dispatch_with_delay {
let ensure_root_call = RuntimeCall::System(frame_system::Call::remark { remark: vec![] });
Expand Down