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

emit event for auto saving and implement onUninstall #85

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

YasseinBilal
Copy link
Contributor

No description provided.

Events
//////////////////////////////////////////////////////////////////////////*/

event AutoSaveExecuted(
Copy link
Member

Choose a reason for hiding this comment

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

minor nit is you can just put this under constants below (this is what we do in other modules)

@@ -117,6 +129,8 @@ contract AutoSavingToVault is ERC7579ExecutorBase, SessionKeyBase {

// execute deposit to vault on account
_execute(approveAndDeposit);

emit AutoSaveExecuted(msg.sender, params.token, amountIn);
Copy link
Member

Choose a reason for hiding this comment

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

fyi amountIn is the amount going into the vault (ie amountReceived * percentage) but this works too

@kopy-kat kopy-kat merged commit ea59407 into main Mar 14, 2024
12 of 16 checks passed
@kopy-kat kopy-kat deleted the feature/auto-save-event branch March 14, 2024 10:32
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.

2 participants