Skip to content

Commit

Permalink
add todos
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Oct 16, 2023
1 parent 229db4d commit 25229a8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions staking/programs/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,9 +543,9 @@ pub mod staking {


pub fn accept_split(ctx: Context<AcceptSplit>) -> Result<()> {
// Split vesting schedule between both accounts
// TODO : Split vesting schedule between both accounts

// Transfer stake positions to the new account
// TODO : Transfer stake positions to the new account if need

// Transfer tokens
{
Expand All @@ -559,11 +559,13 @@ pub mod staking {
split_request.amount,
)?;
}

// Delete current request
{
ctx.accounts.current_stake_account_split_request.amount = 0;
}
Ok(())

// Check both accounts are valid after the transfer
// TODO Check both accounts are valid after the transfer
}
}

0 comments on commit 25229a8

Please sign in to comment.