Skip to content

Commit

Permalink
Adds next epoch reward estimation in masp integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed Dec 19, 2024
1 parent 42189b4 commit e16fb8c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions crates/tests/src/integration/masp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1688,6 +1688,28 @@ fn masp_incentives() -> Result<()> {
assert!(captured.result.is_ok());
assert!(captured.contains("nam: 0.18887"));

// Assert the rewards estimate are 0 since we haven't shielded any more
// tokens
let captured = CapturedOutput::of(|| {
run(
&node,
Bin::Client,
vec![
"estimate-shielding-rewards",
"--key",
AA_VIEWING_KEY,
"--node",
validator_one_rpc,
],
)
});
assert!(captured.result.is_ok());
assert!(
captured.contains(
"Estimated native token rewards for the next MASP epoch: 0"
)
);

// Assert NAM balance at MASP pool is exclusively the
// rewards from the shielded BTC
let captured = CapturedOutput::of(|| {
Expand Down

0 comments on commit e16fb8c

Please sign in to comment.