fungible::Unbalanced::decrease_balance: Handle precision properly (#2823)

This commit is contained in:
Bastian Köcher
2024-01-05 19:55:32 +01:00
committed by GitHub
parent 19de1c9660
commit 1c95310a66
3 changed files with 46 additions and 3 deletions
+11
View File
@@ -0,0 +1,11 @@
title: "`fungible::Unbalanced::decrease_balance`: Handle `precision` properly"
doc:
- audience: Runtime Dev
description: |
`fungible::Unbalanced::decrease_balance` will now handle `precision` properly. This means when
passing `Exact`, it will ensure that the available balance is bigger or equal to the `amount`
that should be deducted.
crates:
- name: "frame-support"