Skip to content

Commit

Permalink
Add treasury getters to ledger
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeSandwich committed Dec 10, 2019
1 parent 721a3ab commit b0ba88c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chain-impl-mockchain/src/ledger/ledger.rs
Expand Up @@ -1170,6 +1170,14 @@ impl Ledger {
}
}
}

pub fn remaining_rewards(&self) -> Value {
self.pots.rewards
}

pub fn treasury_value(&self) -> Value {
self.pots.treasury.value()
}
}

fn apply_old_declaration(
Expand Down

0 comments on commit b0ba88c

Please sign in to comment.