White-Whale-Defi-Platform/white-whale-core

Move owner validation from individual functions to the execute entry point on the vault factory

Closed this issue · 0 comments

Every message on the vault factory can only be triggered by the owner. As of now we have the owner validation inside of each function triggered by the different ExecuteMsgs. We could move that validation before the match in the execute entry point to optimize the code and don't repeat ourselves.