-
Notifications
You must be signed in to change notification settings - Fork 9
Oracle update #215
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
jepidoptera
wants to merge
39
commits into
main
Choose a base branch
from
oracle_update
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
Oracle update #215
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
a414add
test multi block update
jepidoptera 6fc4ca3
implement multi block update
jepidoptera 7fb30f6
add time_step property
jepidoptera 63a8104
allow updates on a per-asset basis
jepidoptera 3e5c713
update oracles only for assets which have changed
jepidoptera 6a75308
track last_updated for each token
jepidoptera 1c51bba
minimum update steps is 1
jepidoptera ddb79ce
fix test_oracle_one_empty_block
jepidoptera 2fb9ddd
fix test_oracle_one_block_with_swaps
jepidoptera bf0486a
Merge branch 'refs/heads/main' into oracle_update
jepidoptera f2b4399
add test_oracle_multi_block
jepidoptera 3ce134a
add flexibility to schedule_swaps
jepidoptera 0aeb5b6
considerable changes
jepidoptera 990c33d
two-part oracle update
jepidoptera 30db8c5
outsource hypothesis strategies
jepidoptera 407b592
move and add tests
jepidoptera 03dafb6
allow len(swaps) < time_steps
jepidoptera acc81ef
add test_dynamic_fee_test_case
jepidoptera d1a0843
rearrange fee or oracle updates
jepidoptera ad22d33
include output values in test_dynamic_fee_test_case
jepidoptera f31a3a7
include oracle values in test_dynamic_fee_test_case
jepidoptera a3d2f37
update oracle values in comment
jepidoptera d16f99f
separate out update_oracles function
jepidoptera 2f4d7d0
fix initial oracle update
jepidoptera 39501a1
fix block copy from self
jepidoptera 7479f8b
replace continuous fee update in test
jepidoptera 08c5da1
add one extra test case
jepidoptera 2ae6e16
update constant_swaps
jepidoptera 4b6307d
fix fee updates (always update oracles first)
jepidoptera f881406
fix test_dynamic_fees_empty_block
jepidoptera 89504b9
don't update oracles on fee calculation
jepidoptera 802eebb
require pytest-xdist (needed for -n auto multi-core testing option)
jepidoptera 9697d8b
fix test_dynamic_fees
jepidoptera 036280e
fix test_dynamic_fees_empty_block
jepidoptera c8f3910
fix test_dynamic_fees_with_trade
jepidoptera cc4c4ef
update oracles when fees are updated
jepidoptera abf9120
fix test_oracle_one_empty_block
jepidoptera 08cd1fb
fuzz timesteps for test_update_every_block
jepidoptera f96993a
add docstring to test_update_every_block
jepidoptera 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
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.
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.
we have sometimes used math.pow() instead of "**", I don't exactly remember if it was for accuracy or what?
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.
I looked it up, and it seems that the difference is that while ** is slightly faster, math.pow will always return a float (regardless of input type, including int or mpf). In this case it seems like ** is best.