Inspiration

We thought of a way for people to earn interest with their idle tokens instead of just sitting in their wallets. and also, A way for protocols that implanted ERC1155, can use their ERC721 as a requirement for people that want to stake with their ERC20 tokens.

What it does

Zarel finance is a defi-based protocol that makes use of ERC721 and ERC20 tokens for Staking and Borrowing. The staking use case is when a user is required to have a particular NFT of that protocol before they can stake the protocol tokens. While For Borrowing, users can use their nft as collateral to get a specific amount of tokens based on the requirement set by both parties.

How we built it

The smart contract was written in solidity and deployed to the testnet using Hedera. Hashgraph SDK. The frontend was built with react using the next js framework. Hashconnect was used to communicate with the Hashpack wallet which gave us a provider and signer we use in integrating Hashgraph SDK to the contract execution

Challenges we ran into

We had trouble importing Openzeppelin contracts into our solidity code even after we installed the modules, we also had challenges calling Contract Query on the frontend (using signer won't work).

Accomplishments that we're proud of

Within a short period, we were able to build a defi protocol that we know would be useful for non-techy users on the hedera blockchain.

What we learned

We learned a couple of ways not to deploy a smart contract on the Hedera blockchain. Working with the Hashgraph SDK seems a lot easier in doing things like deploying Fungible and Non-fungible tokens.

What's next for Zarel

Governance we want to build a dao around our protocol that will regulate and manage the day-to-day activities of the protocol.

Built With

Share this project:

Updates