Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pool creation should not allow duplicate assets. (#666)
* Disallow pool creation with duplicate assets.x This fixes #497 * In create_pool() clone assets vector before sorting to be used for SomeIdenticalAssets check. Also in test for the same fund account and pass correct lenght vector for weights parameter. * Use sorted_assets in Pool struct
- Loading branch information
1 parent
df3c8e0
commit 49ab68a
Showing
2 changed files
with
37 additions
and
5 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