Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/howardpen9/lending
lending
https://github.com/howardpen9/lending
Last synced: about 2 months ago
JSON representation
lending
- Host: GitHub
- URL: https://github.com/howardpen9/lending
- Owner: howardpen9
- Created: 2023-07-26T12:37:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-31T02:29:33.000Z (over 1 year ago)
- Last Synced: 2023-07-31T03:29:21.637Z (over 1 year ago)
- Language: TypeScript
- Size: 706 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TAP Lending Protocol V1
```bash
yarn build # To build contract
yarn deploy # To deploy contract
```Remember to go to `depoly.ts` to change the parameters you want!
---
This repo is for [Hack-a-ton](https://www.defi-hackaton.com/) usage. Still in testing and need for auditing if you want to use in production.
# Intro
TAP Lending is a protocol that assists users in lending/borrowing Telegram Anonymous Phone numbers without worrying about over-collateralization. It enhances capital efficiency and enables users with spot exposure to earn interest while holding NFTs.
Unlike fully on-chain methods, we employ a centralized approach to manage the NFTs due to several reasons:
1. It's safer and lowers the risk of smart contract vulnerabilities.
2. It's more efficient for lending & borrowing, and offers a better interest rate.
3. It alleviates concerns about borrowers not returning the NFT if its value continues to increase.# Project Structure
![Example Image](1.png)
_In the following content, we will refer to Telegram Anonymous Phone as TAP._
## For Lender
1. User interacts with the bot at [TAP Lending Bot](https://t.me/tap_lending_bot)
2. The bot then returns the commands and an introductory message detailing the supported commands.
3. (Optional) Once the user inputs the wallet address associated with their TAP, the bot will return the NFTs that the user can transfer to the deposit address.
4. When the user selects the TAP they have in their wallet, the bot will provide an NFT Transfer URL, such as `https://tonkeeper.com/transfer/xxxxxx(nft-item-address)`.
5. Upon receiving the NFT, the bot will display a notification indicating that the TAP Lending team's wallet has received the NFT.> The NFTs that users deposit will be stored in a centralized wallet managed by the TAP Lending team.
![Alt text](image-1.png)
## For Borrower
1. Users who want to borrow TAP should interact with the bot at [TAP Lending Bot](https://t.me/tap_lending_bot).
2. Check the balance of the user's deposit credit. If it equals zero, the bot will provide a deposit address.
3. After the user deposits the funds, we will employ a first-in-first-out (FIFO) method to provide the borrower with a TAP number to lend out.
4. Once the user receives the TAP Phone Number, we will also provide the Log-in Code through the bot at a later time.![Alt text](image-2.png)
## For Project Team (us)
1. We will manage the backend that generates the log-in code, which will be provided to users through our service.
2. Users can review their NFT deposit history via this smart contract.
3. [WIP] Users can request to withdraw their TAP NFT back to their wallet at any time.
4. [WIP] We will approve this process and then execute the transaction.### The backend diagram:
![The backend structure](image-3.png)
# Demo
[WIP]
# Questions?
more question, can ask me on [https://t.me/TAP_Lending](https://t.me/TAP_Lending)