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

Optimize computeYT flow so that it's solvable on chain #19

Open
kinrezC opened this issue May 23, 2024 · 0 comments
Open

Optimize computeYT flow so that it's solvable on chain #19

kinrezC opened this issue May 23, 2024 · 0 comments
Assignees

Comments

@kinrezC
Copy link
Contributor

kinrezC commented May 23, 2024

Currently we're solving for the amount of SY to flash swap off chain and passing that as calldata to maximize the YT out in a swap. This is not operable because the block timestamp when the transaction will be processed in a block is unknown. We need to be able to submit an approximated amount of SY to flash swap, then if that approximated amount is within some epsilon_i wei of the root, we can go ahead and solve for the optimal SY up to some epsilon_j. If abs(epsilon_i) is too large the transaction should revert early because the root finding would be too expensive.

@kinrezC kinrezC self-assigned this May 23, 2024
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

1 participant