Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
Update frame/gilt/src/lib.rs
Co-authored-by: Kian Paimani <[email protected]>
  • Loading branch information
gavofyork and kianenigma authored Mar 15, 2021
commit e4fecea5e096382f4cc6077d3e8bf840c2c2d1ba
8 changes: 4 additions & 4 deletions frame/gilt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,14 +516,14 @@ pub mod pallet {
let totals = ActiveTotal::<T>::get();

let total_issuance = T::Currency::total_issuance();
let nongilt_issuance = total_issuance.saturating_sub(totals.frozen);
let effective_issuance = totals.proportion.left_from_one()
let non_gilt = total_issuance.saturating_sub(totals.frozen);
let effective = totals.proportion.left_from_one()
.saturating_reciprocal_mul(nongilt_issuance);

IssuanceInfo {
reserved: totals.frozen,
non_gilt: nongilt_issuance,
effective: effective_issuance,
non_gilt,
effective,
}
}

Expand Down