-
-
1. Create POD by contract owner
-
2. You can see Pod is created and Chainlink Alarm clock is triggered and timer is running
-
3. One of the participant is joining the pod with DAI token
-
4. You can see in pod, Total contract balance, your investment balance, joining amount and live interest from aave lending protocol
-
6. New pod is created & that old pod comes right side with winning and prize details. Cntract owner can disburse amount to all participant.
-
5. After Chainlink alarm clock recognized that timer is finish, then chainlink VRF declared winner
-
8. You can check winner total prize in right side top - "YOUR TOTAL WINNING"
-
7. Disburse amount by contract owner
Inspiration
Decentralized finance and Blockchain is a vast space to Explore
What it does
Alarm-POD is a no-loss and crypto saving platform to win interest using trustless blockchain technology. Using chainlink alarm clock, chainlink VRF function and AAVE protocol
How I built it
Alarm-POD is a no-loss and crypto saving platform to win interest using trustless blockchain technology. Using chainlink alarm clock, chainlink VRF function and AAVE protocol
When Contract owner will create POD, it triggers the chainlink alarm clock to wait until to finish time-period.
During this time period, it accrues interest on the deposited crypto token which is deposited by participants(staker). And during this time period, anyone can see live interest generate on the dashboard.
Once Time-period completes the chainlink-alarm-clock recognize it. and then using the callback function of chainlink-alarm-clock, it triggers the chainlink VRF function to get the winner among participant using randomness functionality of VRF.
once Chainlink VRF decide the winner, the admin needs to disburse all the original tokens to all users and "original token + interest" to the winner
Challenges I ran into
The alarm clock is difficult to part for the blockchain space. like, how blockchain transaction can wait for predefined time for POD. Then I introduce the chainlink alarm clock which will wait for the winner announcement until the time is finish.
Accomplishments that I'm proud of
I have set up the whole system to create a pod for a predefined time by the manager. And even set up a lending system to earn interest on deposited crypto tokens by the participant. And Setup the chainlink VRF decentralized trustless randomness system. Even I have tried to make good user-experience where user can see live interest generate on crypto tokens.
What I learned
Like how should be the decentralized infrastructure, like smart contracts integration with frontend, Decentralized components like lending platform, decentralized alarm clock, Chainlink-VRF.
What's next for Alarm-POD
In Phase-2, We want to make an innovative podding system where staker or participant can earn double interest. Where participant will deposit crypto tokens in a pod and internally platform will deposit into AAVE protocol to accrue interest.
AAVE protocol will give Aave interest-bearing tokens(like for DAI to aDAI). So, a platform that aave interest-bearing tokens will deposit into Balancer protocol to earn trading fees onto deposited tokens.
In Summarize, It is AaveBalancerAggregator. We are making a platform where the participant can earn double interest using AAVE interest-bearing tokens and Balancer Trading fees.
This feature is not fully implemented with UI. We have implemented a demo(not fully) smart contract for aave and balancer for this use case.
Built With
- aave
- aave-lending-protocol
- chainlink
- chainlink-alarm-clock
- chainlink-vrf
- decentralized
- material-ui
- next.js
- oracles
Log in or sign up for Devpost to join the conversation.