Skip to content

Commit

Permalink
Merge pull request #3936 from anoma/grarco/masp-comment
Browse files Browse the repository at this point in the history
Adds comment for masp assets' epoch
  • Loading branch information
mergify[bot] authored Oct 22, 2024
2 parents 03e986c + 9207b60 commit 1d7aa25
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion crates/shielded_token/src/vp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,18 @@ fn validate_transparent_input<A: Authorization>(
tracing::debug!("{error}");
return Err(error);
} else {
// Otherwise note the contribution to this transparent input
// Otherwise note the contribution to this transparent input.
// This branch represents the case of an asset not being part
// of the conversion tree: the asset can carry no epoch at all
// or any epoch (even a future one). Given the way we construct
// conversions it's not an issue if we later add it to the
// conversion tree: if the epoch preceeds the one at which we
// start computing rewards or is missing, then this asset will
// not be entitled. If it had instead been constructed with a
// future epoch that matches or follows the one at which we
// start giving out rewards, then it will be entitled (and
// there's no issue with that since it was clearly in the pool
// even before that time)
let amount =
token::Amount::from_masp_denominated(vin.value, *digit);
*bal_ref = bal_ref
Expand Down

0 comments on commit 1d7aa25

Please sign in to comment.