-
Notifications
You must be signed in to change notification settings - Fork 101
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
332/slippage bips rather than amounts on metadata #758
332/slippage bips rather than amounts on metadata #758
Conversation
CLA Assistant Lite All Contributors have signed the CLA. |
|
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.
Approved.
A small nitpick. I notice some delay between submitting the tx and seeing the uploading.
I think this is due to the updater checking only from time to time.
I think the:
- Updater don't need to run so frequently
- We should trigger an action that tries to upload the document right away. This way, the effect is that we attempt the upload right after posting the order, and if it fails is when the updater takes over and re-attempts
e0e13cc
to
1788141
Compare
Yes, this is true. More of a technical reason. I don't want to react to every change as that leads to race conditions since the same state is used to track when something is being updated or not. Maybe what does make sense is to check whether the file exists before trying to pin it 🤔 |
Also changed the fn signature to accomodate different options if needed
6495a4b
to
aada118
Compare
Changes related to Slippage LGTM besides I regression issue I reported for GA analytics event: #639 |
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.
Approving with the issue above
Elena, I don't see a duplication here. |
@alfetopito , I'm sorry, I did not explain it correctly. I meant that the log appears when I'm still typing into the field, so when I want to specify a 2-3 digits slippage value, I will see 2 logs for appdata, and I called it 'duplicating'. |
Ah, got it. |
Summary
Part of #332
Waterfalls onto/supersedes #750
Using the latest version of the appData.
Updating metadata way less often by storing only the slippage instead of sell/buyAmounts and quoteId
To Test
appData
50