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

Subgraph handleExecute mapping should use amount-after-fees for debiting router #1424

Merged
merged 3 commits into from
Jun 16, 2022

Conversation

jakekidd
Copy link
Contributor

Description

Type of change

  • Docs change / dependency upgrade
  • Configuration / tooling changes
  • Refactoring
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires changes in customer code

High-level change(s) description - from the user's perspective

Related Issue(s)

Fixes

Related pull request(s)

Copy link
Collaborator

@wanglonghong wanglonghong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jakekidd jakekidd changed the title Subgraph handleExecute mapping should use transacting amount for debit [DNM] Subgraph handleExecute mapping should use transacting amount for debit Jun 16, 2022
@jakekidd
Copy link
Contributor Author

jakekidd commented Jun 16, 2022

Marked as DNM - using transactingAmount doesn't actually work since it's not the amount debited from the router, but the amount after both fee-taking and (potentially) the swap to adopted asset

@jakekidd jakekidd changed the title [DNM] Subgraph handleExecute mapping should use transacting amount for debit Subgraph handleExecute mapping should use amount-after-fees for debiting router Jun 16, 2022
@jakekidd
Copy link
Contributor Author

Marked as DNM - using transactingAmount doesn't actually work since it's not the amount debited from the router, but the amount after both fee-taking and (potentially) the swap to adopted asset

Hardcoded the fee calc in subg for now

@jakekidd jakekidd merged commit c82f594 into main Jun 16, 2022
@jakekidd jakekidd deleted the subg-executed-event-amounts branch June 16, 2022 21:18
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.

None yet

3 participants