-
Notifications
You must be signed in to change notification settings - Fork 71
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
Improve Activity - add Uniswap trade transaction #392
Comments
@AW-STJ assuming that the information to display is similar to the screenshot on the right, this requires some TokenScript work. Moving to TokenScript repo. |
I haven't checked how the swap/transfer is done, the |
Unassigning Tomek first. Weiwu and James can assign him back. Would be nice to have system design first before graphical. |
Yes, the following is what I agreed with James on the phone, so can you check if you agree with this too:
† for transactions that have inputs and outputs of course. If a transaction doesn't produce any token or reduce any token, such as a voting transaction, then rule 3 doesn't apply. |
regarding this specific task
|
Makes sense, some thoughts:
If you are saying that without grouping activities via the transaction they are part of: I think [1] it would be good if that's possible, but it might not be. In this case I believe that there is only 1 event emitted and the transaction information we get from Etherscan are: From the "normal" transactions API:
From the ERC20 interactions API:
Event:
Can we get it just by decoding the transaction data? Apparently it's possible since Zerion displays it. I wonder how it deals with slippage.
Do you think we should take a look at failed transactions too (or at least a cursory look to see how/if it fits) #393
What if it's a swap that invokes more than 1 pair? Eg. ETH -> USDT -> UNI? [1] Qualifying it with because I'm not sure :) |
In designing, we will simply assume there is always more than 1 pair at work in each transaction, since new defi project gives you some token rewards (pun intended) in the process. We can always scale down to 1 pair but if we designed for 1 pair we can't scale up. |
Perhaps this is also related: AlphaWallet/alpha-wallet-ios#2179 (comment) The transaction: https://ropsten.etherscan.io/tx/0x2eea5339e788b15b8cbfccb5117956781712afba0eeea4293d9bd89fe573e497 |
I'd say yes. At least that's what we want to be able to achieve with this issue. But would be good to create separate issues for these though:
Those would be separate threads. |
Very keen on implementing this. Feel sorry for not catching up as mired in cofix. luckily they need this too. will be able to share much of the work. |
Done |
Can we add a trade transaction, as displayed by the wallet in the screenshots below:
cc @colourfreak, to guide on the best design for us to represent swaps and trades in activity
Sub issues:
The text was updated successfully, but these errors were encountered: