Skip to content
Snippets Groups Projects
Unverified Commit a307dc5a authored by Liam Aharon's avatar Liam Aharon
Browse files

transfer expendable

parent 10f9bfc5
Branches
No related merge requests found
...@@ -492,7 +492,8 @@ pub mod pallet { ...@@ -492,7 +492,8 @@ pub mod pallet {
&pool_account_id, &pool_account_id,
&staker, &staker,
staker_info.rewards, staker_info.rewards,
Preservation::Preserve, // Could kill the account, but only if the pool was already almost empty.
Preservation::Expendable,
)?; )?;
// Emit event. // Emit event.
...@@ -639,7 +640,8 @@ pub mod pallet { ...@@ -639,7 +640,8 @@ pub mod pallet {
&Self::pool_account_id(&pool_id)?, &Self::pool_account_id(&pool_id)?,
&dest, &dest,
amount, amount,
Preservation::Preserve, // Allow completely draining the account.
Preservation::Expendable,
)?; )?;
Ok(()) Ok(())
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment