diff --git a/src/index/entry.rs b/src/index/entry.rs index 7b001cb6a0..330c2541cf 100644 --- a/src/index/entry.rs +++ b/src/index/entry.rs @@ -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)