-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nick M
authored
Feb 9, 2021
1 parent
1f378c2
commit d6b13f9
Showing
1 changed file
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,47 @@ | ||
## Creator Payment App (name pending) | ||
## Lump.Finance | ||
|
||
This is a project for [EthGlobal Market Make Hackathon](https://marketmake.ethglobal.co/). | ||
|
||
The basic idea is to take advantage of [AAVE's Lending Protocol](https://app.aave.com/) to enable content creators (or anyone with a large following) to get paid for the work they do through accrued interest. Fans will be able to support their creators by staking money in return for interest which will be paid to the creator. Because the initial funds are staked in a smart contract fans will be able to regain their stake at any point (minus transaction fees). This opens up a new world of possibilities for getting paid as a content creator, online personality, freelancer, etc. where fans and followers can support your work financially without having to actually spend their money. As of 1/21/21 AAVE offers stablecoin pools with up to 17% APY. This number can vary from day to day and I've seen it go as high as 22% on certain stablecoins. The amount of interest accrued is determined by the amount of money staked in the pool, so over time the accrued interest has the ability to compound fairly quickly. | ||
Lump.Finance is a platform that lets content creators receive financial support from their fans by collecting the accrued interest generated by a pool of money that holds deposits from fans. This introduces a unique and decentralized way for creators of any kind to receive funding from their fans while significantly reducing the financial burden for the fans. The simplified process is as follows: | ||
|
||
1. Content creators visit Lump.Finance to create a new pool that fans can ~lump~ their money into. | ||
|
||
2. When a fan wants to support their content creator they visit Lump.Finance to view the creator's page. From their they can deposit Ethereum into the pool. Their deposited Ethereum is swapped to DAI and deposited into Aave's DAI lending pool. | ||
|
||
3. Over time the deposited DAI in the creator's pool will generate interest and begin to compound. | ||
|
||
4. At any point the creator of the pool can withdraw the accrued interest but has no access to the deposits from the fans. | ||
|
||
5. When a fan decides to take out their money they will receive nearly 100% of their depos | ||
|
||
|
||
|
||
## How It's Made | ||
The detailed process: | ||
|
||
1. Content creators visit Lump.Finance to create a new pool. This triggers PoolFactory.sol to deploy a new Pool.sol contract which will serve as a pool that fans can deposit Ethereum into. From this point on, all interactions between creators and fans will be done through the new Pool.sol contract. | ||
|
||
2. When a fan wants to support their content creator they visit Lump.Finance to view the creator's page. From their they can deposit Ethereum into the pool. This triggers the creator's Pool.sol to swap the Ethereum to DAI using Uniswap then deposit it into Aave's DAI lending pool. In return the pool receives newly minted aDAI at a 1:1 ratio to the deposited DAI. | ||
|
||
3. Over time the aDAI in the creator's Pool.sol contract will generate interest based on the amount of aDAI currently in the pool and will begin to compound. Aave's DAI lending pool. As of this writing (Feb. 6, 2021) Aave's DAI lending pool has had an average APY% of 9.49% over the last 30 days. The USDT pool has an average 30 day APY% of 11.51% and sUSD has an average of 16.35%. Right now the contract only swaps the Ethereum to DAI but I have plans on changing this to dynamically swap and deposit into the pool with the highest APY. | ||
|
||
4. At any point the creator of the pool can withdraw the accrued interest but cannot touch the aDAI deposited by fans. Currently when the creator can only withdraw in DAI but I plan on adding the feature to choose what token to be paid in. | ||
|
||
5. When a fan decides to take out their money they will receive nearly 100% of their deposit back as some is lost to gas fees. Swapping to and from DAI and depositing/withdrawing into the Aave's pools will take from the initial deposit but the overall idea is to offer creators and their fans a way to give support while significantly reducing the financial burden. | ||
|
||
|
||
## Technology Used: | ||
- React : frontend | ||
- Typescript : cleaner code | ||
- Firebase : user profiles | ||
- Hardhat : solidity contracts | ||
|
||
|
||
## What's Next: | ||
- Improve contract efficiency to reduce on gas fees | ||
- Uniswap is used for swaps instead of 1inch | ||
- Dynamically deposit Aave pool that has the highest APY | ||
- Popup dialogues for showing the progress of transactions | ||
- Allow creators/fans to deposit and withdraw in any ERC20 token | ||
- Profile pictures | ||
- Visual representation of current APY based on how much is deposited in the pool |