Giter VIP home page Giter VIP logo

honey-frontend-evm's Introduction

Honey Labs - Building liquidity solutions for NFTs

This is a Next.JS project bootstrapped with create-react-app

General overview

Hello and welcome ๐Ÿ‘‹๐Ÿผ, we are happy to see that you arrived at Honey Labs - The Liquidity Solution builder for NFTs. This repo contains a Front-end interface built with NextJS and makes use of the following tools:

  • Honey-SDK: for permissionless lending pools that use NFTs as collateral (๐Ÿ›  WIP)

  • Rainbowkit for connecting to EVM wallets

  • Moralis: for fetching NFT and calling contract (read functions)

  • wagmi for calling write functions on contract

  • Degen-UI: for styling accompanied by Vanilla-Extract for custom CSS classes

Getting Started

The Honey Finance Ecosystem consists of several components this repo represents the Front-end.

In order to run this project you need to create a

.env #you can use the .env.example file as silver lining

You need both NEXT_PUBLIC_SERVER_URL and NEXT_PUBLIC_APP_ID to run this application. Please go to https://moralis.io/ to sign up an account. Currently contract is deployed to Polygon test net( Mumbai) only. Please set up your server in Moralis using Mumbai.

yarn install #installs all required packages
yarn dev #spins up the server at localhost:3000

In order to test the production server run:

yarn build



Learn more

To learn more about Honey Finance and the software it uses, take a look at the following resources:
Developer-docs - Coming soon... Your feedback and contributions are welcome! Feel free to reach out through Discord and take a look at the current Issues.

Deploy on Vercel

The easiest way to deploy your Next.JS app is by using the Vercel Platform from the creators of Next.JS. Check out the Next.JS Deployment Documentation for more details. Learn Next.JS - an interactive Next.JS tutorial.

This build is for testing purposes only...

Build Subgraph Client

These are the commands to generate the graphql client

yarn install
yarn add -D @graphprotocol/client-cli
yarn graphclient build

You need to update .graphclientrc.yaml if there are configurations changes such as new chain or new subgraph deployed. You need to update graphql under graphql folder if you are adding/modifying existed queries

honey-frontend-evm's People

Contributors

bowtiedfirefox avatar oshioked avatar bowtiedheron avatar tomjpandolfi avatar bowtiedpyro avatar

Stargazers

 avatar

Watchers

Kostas Georgiou avatar

honey-frontend-evm's Issues

Borrow Page: Execute Borrow

When a user has an open position, and the allowance is > 0 the user should be able to call upon the borrow function.

Update header links

image
documentation link needs to be updated and we should also add the link to the solana dapp in the drop down menu

Improve EVM UI

Improvements from Solana frontend to EVM frontend

  • Display weekly APRs

#81

Fix native UI glitches

  • Grey dotted line between market title and positions doesn't extend full width
  • Orange contour when selecting collateral not aligned with gray dots -> Fill in color instead of contour
  • Add currency logo as secondary icon in market title. Inspired from https://www.sushi.com/earn
  • IMPORTANT: Page jittery when scrolling to bottom
  • Show "Change network โš ๏ธ" on connect button to change to selected blockchain in metamask

Upgrade to Moralis v2

Remove need for signing upon login (from v1)

  • Replace moralis walletconnect with Rainbow walletkit
  • Refactor frontend for Moralis v2

Borrow Page: Claim NFT

If the user has an open position, and there is no outstanding debt, user should be able to claim the NFT

Borrow Page: Fetch supplied

For our markets we should be able to fetch the supplied value.
State of wallet: connected and not-connected

Borrow Page: Execute repay

If user has outstanding debt on a position, user should be able to execute repay function on position.

Create Dune Analytics HW

Help wanted to create a dune analytics for Honey Finance EVM.

Items required:

  • Outstanding debt (per market)
  • Utilisation rate (per market)
  • TVL (all markets) (graph)
  • Total liquidation bids vs Outstanding debt (per market)
  • Number of markets

Optional items:

Default rate (per market)

  • # Active loans (all markets)

Issue added to Frontend repo for visibility

Wallet connect: Fix list of issues with wallet connect

when you load a vercel deployed page for the first time it takes 2 times to sign in, or it needs a refresh

we decided to settle on connect wallet until user interacts with their position, then user needs to sign, for now

when the page is refreshed the user is logged out. I know we did this as a temp fix to remove user data when they disconnect, but UX is really bad so now is the time to fix it.
unless someone connects with a different wallet or specifically signs out, refreshing should not log user out

check off tasks when its done

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.