Ensure economic security on validator sets (#459)

* add price oracle

* tidy up

* add todo

* bug fixes

* fix pr comments

* Use spot price, tweak some formulas

Also cleans nits.

---------

Co-authored-by: Luke Parker <lukeparker5132@gmail.com>
This commit is contained in:
akildemir
2023-12-05 16:52:50 +03:00
committed by GitHub
parent 746bf5c6ad
commit 4ebfae0b63
9 changed files with 211 additions and 6 deletions

1
Cargo.lock generated
View File

@@ -7716,6 +7716,7 @@ dependencies = [
"parity-scale-codec",
"scale-info",
"serai-coins-pallet",
"serai-dex-pallet",
"serai-primitives",
"serai-validator-sets-primitives",
"sp-application-crypto",