Streamfi
Your one-stop token streaming application - unleash the power of streaming tokens and investing.
Created on 31st March 2023
•
Streamfi
Your one-stop token streaming application - unleash the power of streaming tokens and investing.
The problem Streamfi solves
The project has the following objectives:
- 
Creating/Managing Streams: The primary goal is to allow the users to create 
 token streams for various applications like Salaries, Subscriptions. etc. and also
 create a receiving party dashboard for the same.
- 
Dollar Cost Averaging: DCA, in simpler terms is reducing user risk by 
 swapping/buying tokens along the curve at regular intervals rather than doing
 so in a chunk. This essentially buys the token at an “average cost”. As an added
 benefit, diverging your orders reduces slippage for traders, which becomes a
 huge problems for DEX pools with limited liquidity.
Problems Solved:
- 
Bringing traditional finance applications like multiple accounts with “saving” 
 opportunities to Defi.
- 
Providing a platform to users to unleash the functionality of creating streams for 
 salaries, memberships, and anything they wish to create with those streams.
- 
Providing Novice users a “safer” gateway into Defi with DCA so that they do not 
 have to worry about fluctuation in prices and slippages.
- 
To promote the use of streams in the ecosystem. Using streams instead of 
 chunks helps reduce volatility of assets, inducing more trust in the ecosystem as
 a whole.
Challenges I ran into
There were several bugs and issues that I ran into while developing streamfi, mainly caused because of the unconventional nature of token streaming.
- 
Since tokens are "streamed" every second, maintaining balances and records becomes a little tricky. Figuring out how to pull relevant data with minimum latency was required. 
- 
Integrating DCA with streaming first required maintaining records of the data, in an effective way for each user - the number of tokens streamed till now, tokens swapped and other metrics. 
- 
Adding a slippage check and setting up periodic smart contract calls required some optimisations to be made. 
Technologies used
Cheer Project
Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.
