Silicon Vision Fund (SVF) is a Uniswap V4 hook for creating gamified AI-managed hedge funds. Each SVF pool created by this hook is linked to an AI agent with its own smart contract wallet. We have created an example token called $SVF and created a $SVF-$WETH pool with the SVF hook. 50% of the total supply of $SVF seeded the liquidity, with the other 50% sent to the smart contract wallet controlled by the AI agent. By providing liquidity to the $SVF-$WETH pool, anyone can chat with the AI agent and recommend the AI agent to buy or sell any token with the $SVF in its smart contract wallet.
Short answer: it's a reference to the $100 billion Softbank Vision Fund. Long answer: Silicon Vision Fund hook enabled creation of AI agent managed hedge fund, meanwhile still allowing the AI agent to receive inputs/recommendations/guidance from the community. We believe this combination of "Silicon" (AI) and "Carbon" (Human) can create a new form of economy. Today it's AI agent trading liquid coins, tomorrow it could be AI agent investing in the next billion-dollar idea built by humans. SVF is the first step in building out full automatic capitalism.
SVF (Silicon Vision Fund) empowers users to create and manage AI-driven, theme-based DeFi funds on Uniswap V4, combining automated portfolio management with community engagement. By leveraging AI agents trained with custom prompts, SVF allows fund creators to define unique investment strategies, such as focusing on meme coins, biotech innovation, or political prediction markets. Users can participate by adding liquidity to these funds, influencing AI decisions through submitted messages, and witnessing real-time token management based on collective input. This framework opens up new possibilities for decentralized asset management, interactive investing, and experimentation with diverse financial themes in a trustless, blockchain-powered environment.
-
Install Foundry
-
Create a
.env
filecp .env.example .env
forge build
make test
# Deploy on sepolia
## Deploy hook contract
make deployHook
## Deploy factory contract and create a vision fund
make deployFactory hook=<DEPLOYED_HOOK_ADDRESS>
The mock script watches prompt sending onchain and triggers Action.performAction()
frunction
- go to
scripts
foldercd scripts
- create an
.env
filecp .env.example .env
- run script
pnpm start
We implemented a afterAddLiquidity
hook that verifies whether a user is eligible to send a message to the AI agent.
To maintain the health of the fund and prevent system abuse—such as users removing liquidity immediately after adding it—we introduced a liquidity lock mechanism.
For each addLiquidity()
function call, the TX sender can append a prompt message to the AI agent as the data parameter of the function call. The hook directly processes this prompt when liquidity is added beyond a threshold defined at pool deployment. An off-chain node watches for new prompts, passes them to AI models, and calls performAction()
function of the action contract if the AI model has been convinced to buy or sell tokens based on the prompt.
-
Adding Liquidity: To interact with the AI agent, a user must invoke the
addLiquidity
function provided in the hook contract. -
Minting NFT Proof:
Upon adding liquidity, the hook contract mints a 1:1 NFT liquidity proof for the user. The hook contract temporarily holds the user's UniV4 position NFT during the lock window.
-
Redeeming Liquidity:
After the liquidity lock window expires, the user can redeem their UniV4 liquidity NFT with their NFT liquidity proof.
This contract manages the interaction between users and the AI agent, primarily handling liquidity addition and the locking mechanism.
We implemented the afterAddLiquidity
Hook and the addLiquidity
function.
- Checks that the user provides at least
X
ETH worth of liquidity tokens. - Ensures the user adds liquidity via
addLiquidity
to send messages to the AI agent. - Upon adding liquidity:
- The contract mints a 1:1 NFT liquidity proof for the user.
- Temporarily holds the user's UniV4 position NFT. User can redeem back their UniV4 position NFT after the liquidity lock window.
The Action Contract serves as the treasury contract, managed by the AI agent. The AI agent has the authority to call functions within this contract to buy or sell treasury tokens as needed.
The Factory Contract allows users to deploy their own Silicon Vision Fund.
- Pool Creation: Deploys a new pool with the integrated hook contract. Instantiates a new Action Contract.
- Token Issuance: Creates a new token with a total supply of 1,000 × 10¹⁸. Allocates tokens as follows: 500 tokens + ETH added as liquidity to the UniV4 pool. 500 tokens sent to the treasury, controlled by the AI agent
hook: https://sepolia.etherscan.io/address/0x5cab76e6cb8b80f2f6ecc7db6d81042ec57e2400
factory: https://sepolia.etherscan.io/address/0x38C369190A1736B8Bf7E6DD3eE5108651227a22b