Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianElvis committed Sep 5, 2024
1 parent 3d5dad8 commit 9a99084
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contracts/btc-staking/src/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ pub fn handle_new_fp(
new_fp.validate()?;
// get DB object
let fp = FinalityProvider::from(new_fp);

// TODO: Verify proof of possession

// save to DB
FPS.save(storage, &fp.btc_pk_hex, &fp)?;
// Set its voting power to zero
Expand Down Expand Up @@ -227,6 +230,8 @@ fn verify_active_delegation(

// TODO: Check staker signature against slashing path of the unbonding tx

// TODO: Verify covenant signatures over unbonding slashing tx

// TODO: Check unbonding tx fees against staking tx
// - Fee is greater than 0.
// - Unbonding output value is at least `MinUnbondingValue` percentage of staking output value.
Expand Down

0 comments on commit 9a99084

Please sign in to comment.