-
Notifications
You must be signed in to change notification settings - Fork 47
test: mint and burn #791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
test: mint and burn #791
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
5398ea3
fix: set collateral denomination and sufficiency in mock
rflechtner 5613fd0
test: first mint test
rflechtner 5ae7769
test: more mint_into tests
rflechtner 0e2053c
test: burn_into tests
rflechtner 96d8a87
test: rounding via repeated mints/burns
rflechtner 725c15e
chore: fmt
rflechtner c1026bd
test: make sure you can't mint more than we can represent in the fixed
rflechtner a0af6fe
Merge branch 'pallet_bonded_coins' into rf-test-mint-and-burn
rflechtner 9809cf9
test: fix most fixable tests
rflechtner 2e1f495
refactor: use assert_eq_error_rate! instead of custom functions
rflechtner 0472d52
fix: tests that can be fixed
rflechtner 2b0745c
tests: allow configurable deviation from expected prices
rflechtner 5ad4e15
test: edge case where we burn account's full balance when frozen
rflechtner 8435ab5
test: minting and burning to from/to other accounts
rflechtner 2bcc31d
chore: misc review suggestions
rflechtner 976c253
test: mint where cost is 0
rflechtner 1529674
fix error test case
Ad96el ba88a0c
Revert "fix error test case"
Ad96el 77ac2a4
chore: use constant for collateral id in handles_asset_overflow
rflechtner 38054de
chore: call fungibles trait methods on assets pallet directly
rflechtner 41c70f5
chore: rename collateral_at_supply mocks function
rflechtner 21b5333
fixup! chore: call fungibles trait methods on assets pallet directly
rflechtner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.