Inspiration

Ever since I delved into the world of blockchain and cryptocurrencies, I've been fascinated by the idea of automatic portfolio management. The volatility of the crypto market, while exciting, can be daunting for investors. I wanted to create a tool that could help manage and rebalance cryptocurrency portfolios.

What I Learned

The process of building the Portfolio Balancer was highly educational. I learned to use Solidity to write smart contracts on the Ethereum blockchain. I also learned about Chainlink, a decentralized oracle network that allows smart contracts to interact with off-chain data, and how to use it to get the latest price of cryptocurrencies.

Building the Project

The project was built using Solidity for the smart contract and Chainlink for fetching the latest prices of Ethereum and LINK. I used OpenZeppelin's contracts library, which is a robust and secure framework for building contracts in Solidity.

The core of the project is the checkAndRebalance function, which checks the current values of Ethereum and LINK in the portfolio, calculates their proportions, and then decides if a rebalance is necessary based on a predefined threshold.

Challenges

More on how to integrate everything and find what I need.

Built With

Share this project:

Updates