Skip to content
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

Build a simple native & ERC20 token balances page with transfer function #452

Open
jfschwarz opened this issue Jan 3, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@jfschwarz
Copy link
Collaborator

jfschwarz commented Jan 3, 2025

As a Pilot user I want to be able to easily make token (native and ERC20) transfers from the impersonated account. Usually this basic function is provided directly by the wallet app, for example in Safe it looks like this: https://app.safe.global/balances?safe=eth:0x849D52316331967b6fF1198e5E32A0eB168D039d

We can build it based on the Moralis Wallet API, which is already reachable through airlock.

The page should show the native token balance first, followed by all ERC20 tokens balances. For each token balance we should display the following information:

  • token name
  • token balance (formatted correctly according to the token's decimals) + symbol
  • USD balance

If possible ERC20 balances should be ordered by USD value descending.

If possible it should filter out spam tokens and only show them at the bottom, marked as spam and with lower opacity. Maybe even only show them after explicitly setting a toggle.


The balances should also reflect transfers made in the recorded batch. The Moralis API obviously does not account for these. One option for implementing this is fetching all ERC20 transfers from the Tenderly fork and patching the Moralis response accordingly.


There should be a wallet icon button somewhere in the Pilot panel to open a fresh tab showing this new token balances page.


For each item in the token balance list, there should be a Send button that opens a simple sending modal. The user should be able to enter the amount, or click a button to send the entire balance. Upon submitting the send, the transfer call should be added to the current Pilot batch.

@jfschwarz jfschwarz added the enhancement New feature or request label Jan 3, 2025
@jfschwarz jfschwarz changed the title Build a simple native & ERC20 token balances page with transfer Build a simple native & ERC20 token balances page with transfer function Jan 3, 2025
@jfschwarz
Copy link
Collaborator Author

cc @nledo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants
@jfschwarz and others