Skip to content

Commit

Permalink
Amend
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph committed May 24, 2024
1 parent 58054d1 commit 869b45f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ impl RuneEntry {
}

pub fn max_supply(&self) -> u128 {
let cap = self.terms.map_or(0, |terms| terms.cap.unwrap_or_default());
self.premine
+ cap
+ self.terms.and_then(|terms| terms.cap).unwrap_or_default()
* self
.terms
.and_then(|terms| terms.amount)
Expand Down

0 comments on commit 869b45f

Please sign in to comment.