We currently have a rejected_proposal_return_value lambda to decide what happens to tokens after a proposal is rejected.
However, the names suggest that the returned value of the function is the amount of tokens to keep, whereas it's actually the amount to slash, so probably rejected_proposal_slash_value would be more appropriate.
Acceptance criteria
consider renaming rejected_proposal_return_value to reflect the slashing
the documentation correctly reflects how the value returned by that lambda is used
Clarification and motivation
We currently have a
rejected_proposal_return_value
lambda to decide what happens to tokens after a proposal is rejected.However, the names suggest that the returned value of the function is the amount of tokens to keep, whereas it's actually the amount to slash, so probably
rejected_proposal_slash_value
would be more appropriate.Acceptance criteria
rejected_proposal_return_value
to reflect the slashing