-
Notifications
You must be signed in to change notification settings - Fork 177
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
chore: remove manual memo calcs #5094
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
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.
amazing, you legend
src/lib/swapper/swappers/ThorchainSwapper/getThorTradeQuote/getTradeQuote.ts
Show resolved
Hide resolved
ff5533f
to
c328f23
Compare
This one could do with some good ol' fashioned @gomesalexandre scrutiny. |
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.
First pass, looking very good to me according to the updated test cases - functional pass to follow before making this purple
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.
Tested against prod with RUNE <-> ATOM and RUNE -> DOGE:
RUNE <-> ATOM
- "You Get" amount is showing no regressions against prod
- Memo is looking good against prod
And limit is slightly higher too 🎉
- Trade is going through
RUNE -> DOGE
- "You Get" amount is showing no regressions against prod
Note how we get slightly more here 🎉
- Memo is looking good against prod
- Trade is going through
Notice how the receive amount is now higher, as a result of the higher limit 🎉
Description
Use the
memo
value given to us bythorchain/swap/quote
- there is no need to calculate it ourselves so long as we are providing the correct input data when fetching the quote.Things still to check:
GET
requestPull Request Type
Issue (if applicable)
Assists with the Swapper SDK work by simplifying the input data needed to fetch a quote.
Risk
High - a bug with a THORSwap
memo
can lead to a total loss of trade funds. Test accordingly.Testing
Check:
Engineering
Check:
thorchain/swap/quote
endpoint matches what we expect (compare with that on prod if necessary with some inline debugging)Operations
Check:
Screenshots (if applicable)
N/A