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

Allow specifying native gas token amount #123

Closed
1 task
r0wdy1 opened this issue May 5, 2023 · 2 comments
Closed
1 task

Allow specifying native gas token amount #123

r0wdy1 opened this issue May 5, 2023 · 2 comments
Assignees

Comments

@r0wdy1
Copy link

r0wdy1 commented May 5, 2023

  • Add nativeAmount argument to withdrawMulti. That will allow user to automatically swap specified amount of funds to the native gas token of the current network for further transactions.
    • The amount must be specified in standard minimal units of account for the current Pool token .
    • Check that specified amount is less than withdrawal amount minus relayer fee
  • relayer: corresponding extra field on transactions API, pass the field to contract

Additional info

@EvgenKor
Copy link
Collaborator

EvgenKor commented May 5, 2023

Which logic should be applied inside transaction memo block? I have no questions on native_amount field in the memo block. But should we decrease delta_token value in that case?

@r0wdy1
Copy link
Author

r0wdy1 commented May 5, 2023

may be we shouldn't change the memo? this has nothing to do with the protocol. AFAIK there are no plans to change history view. From the protocol standpoint it's the same ol' withdrawal but with extra automation

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

No branches or pull requests

3 participants