Skip to content

ShahSujal/Unreal

Repository files navigation

UnReal Finance Assessment

Problem Statement

The task for assessment is to create a new stablecoin called nUSD.

The stablecoin will be backed by ETH (similar to DAI). The primary goals of this project are to allow users to deposit ETH and receive 50% of its value in nUSD. Additionally, there will be a redeem function to convert nUSD back into either ETH.

Applicants can create a very basic UI with one text field, and two buttons (deposit and redeem), and have one text box showing the total supply of nUSD.

Key Functions:

  1. Develop a function that enables users to deposit ETH and receive 50% of its value in nUSD. For instance, if a user deposits 1 ETH at 2000, they should receive 1000 nUSD. Applicants can use Testnet Ether and Testnet Chainlink Oracle for this task.

  2. Design a redeem function that allows users to convert their nUSD back into either ETH at the current exchange. Ensure that the amount of nUSD required to convert to ETH is double the value, that is, to convert nUSD to 1ETH at 2000, 4000 nUSD would be required.

  3. Ensure that the total supply of nUSD is updated based on the actions

Tech Stack

FrontEnd: NextJs,

Backend: HardHat, Solidity, Ether.js

Run Locally

Clone the project

  git clone https://github.com/ShahSujal/Unreal.git

Go to the project directory

  cd Unreal

Install dependencies

  npm install

Start the server

  npm run dev

๐Ÿ”— Links

linkedin

About

A stable nUSD CryptoCurrency

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published