Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
brentstone committed Aug 10, 2023
1 parent 03c54fe commit 927b2df
Show file tree
Hide file tree
Showing 2 changed files with 464 additions and 69 deletions.
9 changes: 2 additions & 7 deletions proof_of_stake/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2297,13 +2297,6 @@ where
}
}

// NEW REDELEGATED UNBONDS
// NOTE: I think we only need to update the redelegated unbonds if this is
// NOT a redelegation
// We should do this regardless - the `is_redelegation` is to determine if
// the current call is from redelegation, but there might be redelegation
// already that's being unbonded or re-redelegated which is being updated
// here.
// `newRedelegatedUnbonds`
println!("\nDEBUGGING REDELEGATED UNBONDS\n");
dbg!(
Expand Down Expand Up @@ -2683,6 +2676,8 @@ struct ModifiedRedelegation {
new_amount: Option<token::Change>,
}

/// Used in `fn unbond_tokens` to compute the modified state of a redelegation
/// if redelegated tokens are being unbonded.
fn compute_modified_redelegation<S>(
storage: &S,
redelegated_bonds: &RedelegatedBonds,
Expand Down
Loading

0 comments on commit 927b2df

Please sign in to comment.