-
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
[Sumtree]: Lazy Static Max/Min Spot #165
Conversation
…on order direction
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 know I was the one who added the TODO, but how confident do we feel in using lazy_static
here from a security standpoint? Based on some other uses of it (e.g. svix/svix-webhooks#1024), it seems it hasn't been maintained in a while and we might have better native options in Rust now
Also generally not sure how this functionality plays with CW contracts so unless we're confident it's safe it might be better to err on the side of caution and not do it
What is the purpose of the change
These changes are to clear an outstanding
TODO
comment, replacingmin_spot_price
andmax_spot_price
with lazy statically evaluated constantsMIN_SPOT_PRICE
andMAX_SPOT_PRICE
.Testing and Verifying
No tests were altered as a result of this