-
Notifications
You must be signed in to change notification settings - Fork 4
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
Audit revisions #8
Merged
hawthorne-abendsen
merged 13 commits into
reflector-network:master
from
hawthorne-abendsen:audit-revisions
Feb 6, 2024
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3716f44
timestamp validation added on set price
hawthorne-abendsen 484a777
has_asset replaced with get_asset_index
hawthorne-abendsen b7855da
config.admin auth check
hawthorne-abendsen a6379b1
return None as last price, if price update delayed; prices fn refacto…
hawthorne-abendsen 0de60ab
updates length validation added
hawthorne-abendsen c41cc13
get_last_timestamp renamed to obtain_record_timestamp
hawthorne-abendsen 17e94ab
cleanup, refactoring
hawthorne-abendsen 0207362
__add_assets fn refactoring
hawthorne-abendsen 23f0e48
get_twap fn refactoring
hawthorne-abendsen 141e7e9
zero prices handling fix
hawthorne-abendsen 3eb7774
Comments added to I128Extensions
hawthorne-abendsen ce74567
replaced doc comments with regular ones to reduce wasm size
hawthorne-abendsen bf6fa94
div_floor panics on non-positive dividend or divisor
hawthorne-abendsen 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 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
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
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.
Passing-by comment/recommendation from a Soroban dev: in order to avoid such errors and make a contract a tiny bit cheaper you could just remove
admin
from the function arguments and callconfig.admin.require_auth()
instead. The same applies to all the similar functions that use admin - instead of passing it externally you could just retrieveadmin
from storage and callrequire_auth
for it directly.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.
Thanks! We've incorporated these changes in pull request #9. Appreciate your advice!