Inspiration

I was inspired by the possibilities of cross-chain communications and in particular the ability to transfer data and run a function from one network to another using CCIP. Also, after watching training videos during the hackathon (special thanks to the team for this), I thought it would be great to integrate artificial intelligence, CCIP and Functions into one product. Unfortunately, there was not enough time to fully implement the idea. The initial idea: link

What it does

The app must be on Avalanche.

  1. Buy stocks using Alpaca and Chainlink Functions. (works)
  2. Transfers USDC tokens from the wallet on Avalanche to Sepolia. (works)
  3. Swaps USDC to chosen token on Sepolia using Uniswap V2 router. (transaction fails, needs debugging).

How we built it

Since I am alone in the team and I just started learning blockchain development, I didn’t have enough resources to implement all the planned features. I started developing a frontend with Viem and Wagmi, but I didn’t have enough time to connect them with smart contracts. Debugging a non-working swap during CCIP took a very long time and it still doesn't work properly.

Challenges we ran into

I am the frontend dev and the blockchain development is a completely new area for me. But all the materials was very helpful and I really enjoyed it!

Accomplishments that we're proud of

I'm really proud of myself. It's great that there are technologies that allow you to connect chains and I have almost mastered them =)

What we learned

A lot: smart contracts, integration with wallets, frontend integration, Chainlink tech

What's next for Automatic hyfi investment strategies enhanced by AI

  • To find and the bug in CCIP token swapper
  • To integrate AI prompts that will allow to create investment strategies with predicted % of returns based on historical data
  • To implement NFT minting with all the info regarding bought tokens/stocks/RWAs to display it on the frontend
  • To connect it with nice frontend

Chainlink usage

CCIP https://github.com/filipploss/chainlink-investment-strategy/blob/70f50cbf8d6970656eb1a075b585261f7040e1f8/Sender_Avalanche.sol#L191 https://github.com/filipploss/chainlink-investment-strategy/blob/70f50cbf8d6970656eb1a075b585261f7040e1f8/Receiver_Sepolia.sol#L163

Functions https://github.com/filipploss/chainlink-investment-strategy/blob/70f50cbf8d6970656eb1a075b585261f7040e1f8/Alpaca_Avalanche.sol#L41

Built With

Share this project:

Updates