Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #97

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
33 changes: 0 additions & 33 deletions PROJECT_NAME/README.md

This file was deleted.

204 changes: 204 additions & 0 deletions QUATRE_FINANCE/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@

# ⚡ Hackathon Project Submission ⚡

## Project Name

- Quatrefinance

### Team name

- Quatre Team
#### Hackathon Track

##### Region location

- Africa, Nigeria.

##### Team Members
- Isaac J. Project Coordinator, Solidity/Smart contract developer, frontend.
- Godswill Ejuyietche. Project Admin, Human relation.
- David OluwaSegun. React-Native developer.

#### Project Description
Provide a clear statement of the challenges/issues/problems/gaps your project engages as well as a brief, high-level description of how your project engages the areas you've identified. What is the value of your approach? Who are the intended users?

- Quatre-finance is a platform for decentralized applications. We aim not to completely uninstall the application world but re-emphasizing the need for true decentralization. while building decentralized products tailored to individual needs putting users in complete control of their funds and/or investments, our concepts are not limited to the following:

Our core product and ideology is centered around creating a platform for users to easily access contributed funds/loans via a rotational peer-to-peer system for a short period of time usually 7 to 255 days.

We also allows traders and crypto holders to earn in different ways such as lending out their assets to be used by another while retaining the ownership at the same time earning lender's interest.

Traders looking to borrow on a short-term basis, can join the Q-core pool, move it to exchange to make more profits leveraging on their existing portfolio as collateral. In this pool, they also become a lender.

With Quatrefinance decentralized lending protocol (Q-Lend), fund owners who wish to play safe and retain full ownership and control of their funds can unilaterally set up (from our proxy-based) a public - private inclined exchange for themselves where they can lend platform-compatible assets to others at a profitable interest. The goal is to create a competitive interest atmostphere where lenders give out loan at a rate they are most convenient with.

Our incentivized program (s) allow investors, liquidity provider and participants in the network to make more from their commitments, time and participation.

## Problems
- Barriers to fast adoption posed by centralized blockchain operators such as rigorous KYCs etc.
- Trust issues between parties to trade.
- Inherent security issues with decentralized operators.
- Loss of fund in the event of demise.
- Low adoption due to technical nature of blockchain technology.

## Our Solutions
We are creating a protocol that removes the need for trust.
A truly decentralized platform with no kyc.
Raising standards above the limit of existing decentralized operators.
Better user interface and integration to accomodate average internet users.
Improve wallet service to reduce funds being stolen or locked forver.

## Mission
To build decentralized protocols, using blockchain technologies in a trustless environments that manage both financial and non-financial relationships between parties.

## Highly Decentralized
Even with some decentralized finance platforms, you're still at the mercy of someone. At Quatre-finance, you decide which way to go: if your decision is fairly reasonable enough regarding the rights of your counterparties.

Our products and core value will always consider a four-sided properties thus:

- Own it.
- control it.
- be fair.
- trust less.

1. Own it
Quatre products gives the fulfilment of ownership. Most of our products are (and will be) designed to brings you ownership experience. Accessility to your funds are hashed with your signature and you don't have to be at the mercy of any centralized exchange platform to bring in or take take out your funds. We build it : you own it.

2. Control it
Knowing you're in control is the first assurance of security.

Control is preceded by ownership. In fact they go hand in hand. The Quatre protocol brings you a high level of control over your assets/funds. If you engage in any of the Quatre-finance's p2p products, control is mutual while you also retain a good amount of ownership.

3. Be fair
We believe in fair dealings. While control and ownership belongs to the user, we on the fair side ensures that counterparties in any transaction are fairly treated without jeopardizing your need for control.

4. Trust less
This is an inherently-interesting blockchain feature that Quatre-finance builds upon. With this, Alice does not need to know or have Bob's trust in order to transact with him. Quatre protocol gives you rest of mind even while the identity of the other party is preserved.

## Technology.
The Quatrefinance's protocols will be built on EVM compatible networks (we may extend to more technologies in the future as our mission statement requires that we consistently build on the same Quatrefinance platform). From our research, we are looking to extend to one or more technologies:

Every EVM compatible technologies have one or more uniqueness (es). Some factors we consider:

Should be Ethereum virtual machines compatible. That is, capability of executing smart contracts instructions which we deem suitable for implemeting our backend written in solidity language.

With considerably low transaction fees.

Should encourage Borderless decentralized finance (DeFi) that allows anyone around the globe with an internet service to access our services.

Among others, its performance should be suitable for mass adoption.

We are leveraging on the use cases of blockchain technology such as the distributive, permissionless and immutability features via smart contract architecture, we established Quatre-finance protocol that inherits the modern blockchain attributes with customised rules.

We see Celo platform as on best to help us achieve our dream.

#### Summary
As of now, Quatre Digesu provides users with features as follows:

## Create basic and interactive account
On Digesu, each user is required to create a Non EOA ie we simply launch an interactive contract that is mapped and attached to the user.
- Why this account?
We need to make things easier for our users, part of which CELO has made available for us. We planned to make Quatre digesu and subsequent application (s) esily accessible for an average person who really can't afford the time and constraints of using decentralized applications. An interactive account will play a semi-custodial role for interacting with the Dapps. User will be abe to deposit, make transfer requests, pay for collaterals, reward, give and withdraw permission to it.

Our aim of leveraging this model is to bring the users closer as much as possible giving then the best experince they could ever get in the web3 space.

## Create or Launch a new band.
Users can create a band meant purposely for peer or external contribution using the interactive account. This could be a priate or public pool.
- A private pool is closed to peers only. Only the preregistered peer addresses can participate in such contribition.
- On the other hand, public band is general and open to the public or anyone to participate. This is one of the interesting solutions we provide which is not available traditionally.

## Join a band
Digesu gives ample benefits to users as they control and choose that which they want.
Theu could either create a fresh pool or participate in an existing pool.

## GetFinance
When the required number of participants in a pool is achieved, the balance in such pool is available to the next on the queue (treated as first come first served) to getFinance.

## Payback
when an user gh i.e getFinance from a band, they must pay back, usually without interest but with a minimum taker fee.

## Liquidate
Since the model of Digesu relies on other peoples' fund, then digesu treats them as an important factor in the success of the platform hence if a GFer defaults in payment, they can be liquidated. more information on this is provided in the documentation.

## Complete a round
Each pool has a cycle, and we regard it as a round. if there are 4 people in a pool preset with 3 days duration, then a round is 12 days in total.

## Other functionalities we hope to add sooner

We want to make Digesu as friendly as possible plus helping users maximize the user of borrowed funds. We plan to integrate with yield protocols so users can simply connect, trade, exchange and perform other activities such as staking with a click.

## Join
Describe the basic functionality of your project. What are the features you were able to implement? What features would you like to implement?

#### URLs
List any URLs relevant to demonstrating your prototype
1. **[Current stage of our mobile application before the frontend guy went on a sick bed.](https://www.loom.com/share/999a7f28ca914a7aacb8c01f5da4d08c)**

2. **[Web and Mobile app prototype/designs](https://www.figma.com/file/eAK52TVb7n0HTwlNvtb4gv/Quatre?node-id=0%3A1)**



#### Presentation
List any links to your presentation or any related visuals you want to share.

**[Pitch deck](https://docs.google.com/presentation/d/1pqtgvdZOI6QSfb0HbJ93gapQhlJ9uoTa/edit#slide=id.p1)**

#### Next Steps
We are indeed committed to this project owing to a lot of work we have input. With out plans and roadmap, if we get supports in the way we should, we plan to lauch in Q4, 2022 to max of Q2, 2023. We look forward to build on Celo.

## About the Dapp
We have so far:
- Written the smart contracts for our token,
- Written a few tests,
- Build the frontend both desktop and mobile.

## DApp
From the directory : `quatre-digesu-on-celo-hackathon`

`cd quatre/backend/hardhat-ts` `: as the smart contract directory`
`cd quatre` : `for mobile development.`
`cd quatre/webversion/quatreweb` : `desktop application.`

## KeyNote
Although the project is not complete up our expection due to lack of manpower. The frontend developer had since been on sick bed for weeks. I had to only work on both sides. Due to limited time, I spinned up the web app but couldn't complete it.

A vote of thanks to the Celo team and the developers for making the journey smooth.


We look forward to continue building this dApp to a success.

#### License
This repository includes an [unlicensed](http://unlicense.org/) statement though you may want to [choose a different license](https://choosealicense.com/).

-------------------------------------------------------


# DEPLOYMENTS

## Network : Alfajores
```
PS C:\Users\FVO_MMILLLER\Desktop\celo\quatre-digesu-on-celo-hackathon\quatre\backend\hardhat-ts> npx hardhat deploy --network alfajores
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
Nothing to compile
Creating Typechain artifacts in directory C:\Users\FVO_MMILLLER\Desktop\celo\quatre-digesu-on-celo-hackathon\quatre\backend\hardhat-ts\frontend\src\hardhat\typechain for target ethers-v5
Successfully generated Typechain artifacts!
deploying "AccountManager" (tx: 0x89f9e10beb04f3d7c8b00b48964595924b5ef2913ad3379f25e7e04ce7c3eafe)...: deployed at 0xA01341CD702260E619c20aAd873290b811b7e462 with 2892321 gas
deploying "DigesuLib" (tx: 0xbdbe2a6885bc64fdfbd798a1f14d823e89fa54a0f48f4c7c5a8f825e1c32b372)...: deployed at 0xbD90FA4010207197E67cAa242F2C9494872ecB84 with 254621 gas
deploying "QuatreToken" (tx: 0x8b101616a1133da25f6bafc71f14c4e984c6385a5e991bc882ff4bf061bbc04b)...: deployed at 0x4c2dCBEadA1d1620Cf7d877916B3C008E691Fe9e with 2340731 gas
deploying "Digesu" (tx: 0xe9cc9a54f2f23d4c36b1ce54071d569e0fb42a385ce9cca298e4b8e18a519b3a)...: deployed at 0xf82E9Ab73E686CE40A1143521248f8cad1812666 with 4133175 gas
Creating Typechain artifacts in directory C:\Users\FVO_MMILLLER\Desktop\celo\quatre-digesu-on-celo-hackathon\quatre\backend\hardhat-ts\frontend\src\hardhat\typechain for target ethers-v5
Successfully generated Typechain artifacts!
Successfully generated React context!
```



On the frontend, we have used React library to build thee web app, React-Native with Expo-cli for the Mobile version.




![celo4](https://user-images.githubusercontent.com/35783747/201605163-38613f4e-54a6-4459-927d-5e7d453a25f2.PNG)
![celo3](https://user-images.githubusercontent.com/35783747/201605172-9c001c39-0faa-4978-80a7-ff291765a5e6.PNG)
![celo2](https://user-images.githubusercontent.com/35783747/201605175-317f3dd2-1924-4689-a15a-9667afe43cc9.PNG)
![celo1](https://user-images.githubusercontent.com/35783747/201605239-aae51d66-ee7f-4c96-96d8-317b32dc5c17.PNG)
14 changes: 14 additions & 0 deletions quatre/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
node_modules/
.expo/
dist/
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/

# macOS
.DS_Store
Loading