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

feat: arbitrary call #7

Open
antoncoding opened this issue Jul 29, 2023 · 0 comments
Open

feat: arbitrary call #7

antoncoding opened this issue Jul 29, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@antoncoding
Copy link
Member

antoncoding commented Jul 29, 2023

Rationale

it would be nice for the engine to support arbitrary call to a interface as one of the actions. So we can do things like mint and fill order in a single transaction without using a wrapper

Concern

This mythology is well-explored with opyn, dydx's code base, but also might introduce an attack factor for things like flashloan to happen. (do arbitrary call -> transfer accounts to another address before margin checks -> skip check). While ensuring this is relatively easy because full collat engine have simple entry point, extra caution must be taken

@antoncoding antoncoding added the enhancement New feature or request label Jul 29, 2023
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

1 participant