---
title: "Comment by Eldar Ahmadov on \"Decentralised Venture Funding\" | Hashnode"
description: "I assume calling arc4.abi_call for VaultFactory.new method implies that the VaultFactory had been deployed prior to the call and minimum balance requirements ar"
url: "https://hashnode.com/posts/decentralised-venture-funding/66309e009471c625d0cbb9c3/comment/66316c12109adfa9218534c0"
---

[Discussion](https://hashnode.com/posts/decentralised-venture-funding/66309e009471c625d0cbb9c3)

Comment [Decentralised Venture Funding](https://hashnode.com/posts/decentralised-venture-funding/66309e009471c625d0cbb9c3)

[Eldar Ahmadov](https://hashnode.com/@EldarAhmadov)

[Apr 30, 2024](https://hashnode.com/posts/decentralised-venture-funding/66309e009471c625d0cbb9c3/comment/66316c12109adfa9218534c0)

I assume calling arc4.abi\_call for VaultFactory.new method implies that the VaultFactory had been deployed prior to the call and minimum balance requirements are satisfied?

[Alexander Codes](https://hashnode.com/@alexandercodes)

[Apr 30, 2024](https://hashnode.com/posts/decentralised-venture-funding/66309e009471c625d0cbb9c3/comment/66316c12109adfa9218534c0#reply-663172029c96bc9e3692c852)

I believe it's creating a new contract on the fly. The 'vault factory' contract is ephemeral in a way... a new contract is deployed whenever the method is called, and then it's deleted in the same transaction group. The contract account remains even after the application is deleted.

I think that's why you have to supply the compiled TEAL approval program and clear state programs. There's no existing application on the chain that gets called... it's creating a new one from scratch each time.

I think the reference to VaultFactory.new probably just provides the the information for the ABI call (the method signature to use for encoding and decoding).

As I understand it, the minimum balance requirement only needs to be satisfied by the end of the transaction group.

The act of creating a vault and rekeying it is all done with inner transactions.

Hope that makes sense...

[Alexander Codes](https://hashnode.com/@alexandercodes)

[Apr 30, 2024](https://hashnode.com/posts/decentralised-venture-funding/66309e009471c625d0cbb9c3/comment/66316c12109adfa9218534c0#reply-6631729c58485a1390f42ef6)

[Alexander Codes](https://hashnode.com/@alexandercodes) So it's kind of like:

Outer:

-   Application Call (`pledge` method)

Inner:

-   Deploy vault factory
-   (inner rekey to sender & return the address)
-   Delete vault factory contract
-   Fund vault account
