-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return error if asset amount is zero
This is primarily for the sake of symmetry (`pool_join_with_exact_pool_amount` raises `MathApproximation` if the asset amount is zero). Furthermore, calling this extrinsic with zero as parameter is rather non-sensical, but, more importantly, this check ensures that on-one can ever get free pool tokens.
- Loading branch information
1 parent
256281a
commit ef0855b
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters