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

transfer expendable

parent 10f9bfc5
No related merge requests found
......@@ -492,7 +492,8 @@ pub mod pallet {
&pool_account_id,
&staker,
staker_info.rewards,
Preservation::Preserve,
// Could kill the account, but only if the pool was already almost empty.
Preservation::Expendable,
)?;
// Emit event.
......@@ -639,7 +640,8 @@ pub mod pallet {
&Self::pool_account_id(&pool_id)?,
&dest,
amount,
Preservation::Preserve,
// Allow completely draining the account.
Preservation::Expendable,
)?;
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