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

Token approvals #9

Merged
merged 2 commits into from
Apr 17, 2024
Merged

Token approvals #9

merged 2 commits into from
Apr 17, 2024

Conversation

zanknaf
Copy link
Collaborator

@zanknaf zanknaf commented Apr 17, 2024

#2 This solves part of the problem with token decimals not being correct for token approvals. Needs to be tested and few code improvements to be done (moving web3 provider url to env variable for example).

This PR does not 100% solve token name in approvals as it still takes contract_name for determining name of the token, which does not always match. Will do another PR once this is tested and fix this problem also.

zanknaf added 2 commits April 17, 2024 15:25
Adding a function that does web3 call to get decimals for token approved and applies decimals to amount in call trace data
@chpiatt chpiatt changed the base branch from main to dev April 17, 2024 19:19
@chpiatt chpiatt merged commit 0dee54d into dev Apr 17, 2024
@chpiatt chpiatt deleted the TokenApprovals branch April 17, 2024 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants