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

[mtg-739] Audit fixes round 3 #40

Merged
merged 3 commits into from
Oct 11, 2024
Merged

Conversation

kstepanovdev
Copy link
Collaborator

@kstepanovdev kstepanovdev commented Oct 10, 2024

NB.
[P1-L-04]
1.1 OK
1.2 The suggestions are incorrect. While it's possible to check if an ATA exists, to be able to both close it and verify its existence, you would need to pass them in remaining_accounts anyway. Also, it's impossible to verify if the user had created any vault without passing that vault in remaining_accounts. Hence, a reliable method of handling different ATA closings in such opaque circumstances I consider extremely hard to implement since we will rely on information provided by remaining_accounts in any case. (sic! original VSR closes only accounts [except for a voter] that have been passed in remaining_accounts, so the situation when the voter is closed and ATAs are not is possible)

5.1 Do we really want PDA double-checking? It's an expensive operation.
5.2 OK

6 It is possible to implement, and it will increase reliability, albeit will make testing utterly inconvenient (E.g. hardcoding will prevent us from having multiple DAO for testing at once)

@kstepanovdev kstepanovdev requested a review from StanChe October 10, 2024 11:24
@kstepanovdev kstepanovdev changed the title Audit fixes round 3 [mtg-739] Audit fixes round 3 Oct 10, 2024
@kstepanovdev kstepanovdev self-assigned this Oct 10, 2024
@kstepanovdev kstepanovdev merged commit eee1382 into audit-fixes Oct 11, 2024
2 checks passed
@kstepanovdev kstepanovdev deleted the audit-fixes-round-3 branch October 11, 2024 17:14
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