---
title: "Discussion on \"Decentralised Venture Funding\" | Hashnode"
description: "Discussion on \"Decentralised Venture Funding\". How to write a venture funding smart contract on the Algorand blockchain."
url: "https://hashnode.com/posts/decentralised-venture-funding/66309e009471c625d0cbb9c3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Decentralised Venture Funding](https://alexandercodes.hashnode.dev/decentralised-venture-funding?utm_source=hashnode&utm_medium=feed)

How to write a venture funding smart contract on the Algorand blockchain.

Apr 30, 2024 · 15 min read · alexandercodes.hashnode.dev  
Read the article

-   [#blockchain](https://hashnode.com/tag/blockchain)
-   [#algorand](https://hashnode.com/tag/algorand)
-   [#python](https://hashnode.com/tag/python)
-   [#python3](https://hashnode.com/tag/python3)
-   [#smart-contracts](https://hashnode.com/tag/smart-contracts)
-   [#funding](https://hashnode.com/tag/funding)

## Written by

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

@alexandercodes

  
[View profile](https://hashnode.com/@alexandercodes)

Data Engineer

## Responses 2

Markdown supported · ⌘↵ to post

[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

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

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

Thank you for this, Alex. Top quality as usual! Special thanks for Python idiosyncrasies explanation (e.g. falsey in `find_vault` method)

Set up your NFD wallet asap )

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

[Apr 30, 2024](https://hashnode.com/posts/decentralised-venture-funding/66309e009471c625d0cbb9c3/comment/6631622b5c4ae7c64c9f905a#reply-6631706a02d95ffb69c65e90)

I've just set it up, it's alexandercodes.algo :)
