Skip to content

Commit

Permalink
Merge pull request #217 from input-output-hk/ledger_pots
Browse files Browse the repository at this point in the history
Expose ledger pots
  • Loading branch information
vincenthz committed Dec 11, 2019
2 parents 721a3ab + b0ba88c commit 1f1b3ac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chain-impl-mockchain/src/ledger/ledger.rs
Original file line number Diff line number Diff line change
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 1f1b3ac

Please sign in to comment.