Commit 857c3bf3 authored by Alexander Theißen's avatar Alexander Theißen Committed by GitHub
Browse files

Make automatic storage deposits resistant against changing deposit prices (#12083)



* Require `FixedPointOperand` for Balances

* Delay deposit calculation

* Make refunds pro rata of consumed storage

* Add storage migration

* Fix clippy

* Add liquidity checks

* Fixe delayed deposit limit enforcement

* Defer charges

* Import Vec

* Add try-runtime hooks for migration

* Fix warning

* Adapt to new OnRuntimeUpgrade trait

* Apply suggestions from code review

Co-authored-by: default avatarSasha Gryaznov <[email protected]>

* fmt

* Apply suggestions from code review

Co-authored-by: default avatarSasha Gryaznov <[email protected]>

* More suggestions from code review

Co-authored-by: default avatarSasha Gryaznov <[email protected]>
parent cb82064c
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