-
Notifications
You must be signed in to change notification settings - Fork 2
Multi position per user scenarios testing #172
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
Open
mts1715
wants to merge
17
commits into
main
Choose a base branch
from
taras/147-multi-position-per-user-scenarios-testing
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
9036283
Add mainnet fork test for multiple positions per user and batch liqui…
mts1715 4c2bf16
Add testMassUnhealthyLiquidations — a system-wide stress test that cr…
mts1715 bf31254
Merge remote-tracking branch 'origin/main' into taras/147-multi-posit…
mts1715 441c58e
fixes after merge
mts1715 86086fa
code style fix
mts1715 526704a
constant naming fix
mts1715 13c50e5
moved helper methods to test_helpers.cdc
mts1715 e7216bd
Update cadence/tests/fork_multiple_positions_per_user.cdc
mts1715 d064bc7
fix naming *_test.cdc, move not production script to test dir
mts1715 887ae21
flow.json: fix block height
mts1715 0df9e00
fix block height in flow.json, add actions/cache for ./imports keyed …
mts1715 c9cc894
add more description comments to test
mts1715 0e5577c
move scripts only for test to "cadence/test/transactions"
mts1715 5bc3cf1
remove useless transaction from test
mts1715 8fd216c
Merge branch 'main' into taras/147-multi-position-per-user-scenarios-…
mts1715 e5e5824
Merge branch 'main' into taras/147-multi-position-per-user-scenarios-…
mts1715 d7cefa5
Merge branch 'main' into taras/147-multi-position-per-user-scenarios-…
Kay-Zee 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| import "MockOracle" | ||
|
|
||
| access(all) fun main(tokenIdentifier: String): UFix64? { | ||
| let tokenType = CompositeType(tokenIdentifier) | ||
| ?? panic("Invalid token identifier: ".concat(tokenIdentifier)) | ||
|
|
||
| let oracle = MockOracle.PriceOracle() | ||
| return oracle.price(ofToken: tokenType) | ||
| } | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we name this something else? or move into a scripts folder in the tests section, since this only grabs from the MockOracle.