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

generate contract bindings for flashloan helper #3217

Open
Tracked by #3213
MartinquaXD opened this issue Jan 7, 2025 · 0 comments
Open
Tracked by #3213

generate contract bindings for flashloan helper #3217

MartinquaXD opened this issue Jan 7, 2025 · 0 comments

Comments

@MartinquaXD
Copy link
Contributor

MartinquaXD commented Jan 7, 2025

Flashloan support will require the driver to encode a transaction calling a new helper contract instead of the settlement contract directly.

In order to use the contract in the rust code base we need to generate bindings for it and add it to the drivers infra::blockchain::Contracts struct.
Although in practice there will only be 1 helper contract deployed and whitelisted in the protocols Authenticator contract the driver still needs to have this address passed in via a configuration parameter.
The reason is that this allows us to work even with contracts which don't have deterministic deployment (which results unstable addresses in our e2e tests).
Additionally we'll likely only get a preliminary contract early on for testing. The final contract may deviate from the original one due to necessary security changes or gas optimizations.

@MartinquaXD MartinquaXD changed the title generate contract bindings for preliminary flashloan helper generate contract bindings for flashloan helper Jan 7, 2025
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