Skip to content
/ Trable Public
forked from Web3-Club/Trable

Pokadot Winter Hackathon 2023|Enable pay in travel without trouble|Trable is a DApp application designed for overseas travel products with a focus on cryptocurrency payments.|@Web3-Club

License

Notifications You must be signed in to change notification settings

luvnft/Trable

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trable

25461702219436_ pic

Enable pay in travel without trouble.

25461702219436_ pic

English | 中文

Introduction

With the growing Web3 ecosystem, more and more people are entering the Web3 industry, leading to an increasing number of individuals using cryptocurrencies for payments of products and services. However, the process of completing a purchase has become cumbersome, especially when it involves overseas products, requiring multiple asset conversions. This process is time-consuming and incurs high costs.

Traditional crypto payment process for overseas travel products:

Cryptocurrency - DEX - CEX - Fiat currency - Foreign fiat currency payment

Flowchart Demo

graph TD
  subgraph Multi-chain Token
    A1[main network]
    A2[Layer2 Token]
    A3[other Tokens]
  end

  B[Cross-chain Bridge]

  subgraph DEX/CEX
    C1[DEX1]
    C2[CEX1]
    C3[DEX2]
  end

  subgraph Monetary Conversion
    D[c2c domestic currency deposit and withdrawal]
    D1[Conversion of various legal currencies.]
  end

  E[Credit Card<br>visa/mastercard/China UnionPay/JCB/American Express]
  F[Payment for Overseas Products]

  A1 -->|Asset Replacement| B -->|gas consumption<br>Waiting for the payment to be credited.| C1 -->|Asset Transfer| C2 
  A2 -->|Asset Replacement| B -->|gas consumption<br>Waiting for the payment to be credited.| C2 -->|Asset Transfer| D
  A3 -->|Asset Replacement| B -->|gas consumption<br>Waiting for the payment to be credited.| C3 -->|Asset Transfer| D -->|Rate Discount| D1 --> E
  E --> |Currency Conversion Fee| F
Loading

Drawbacks:

• ❌ DEX conversion friction costs • ❌ CEX transaction fees • ❌ Currency conversion loss during withdrawal • ❌ Currency conversion fees for foreign money payments

Trable's Objective: • ✅ One-step signing, minimal fees

graph TD
  C[The user has explicitly paid for the product.]
  subgraph User Action
    A1[main networdk]
    A2[Layer2 Token]
    A3[Multi-chain Token]
  end
  subgraph  Trable
    B[Signature confirmation]
    F[Stablecoin]
    Z[uniswap V4<br>hook pool]
    D[Payment Successful]
  end

C --> A1 --> B
C --> A2 --> B
C --> A3 --> B 
B --> Z -->F --> D
Loading

To address these challenges, our project proposes a solution that optimizes the asset conversion process and enhances users' Web3 experience. In the post-pandemic era, the travel industry is thriving, and Trable aims to enter this vast market by offering unique value propositions.

Project Introduction

Trable is an overseas travel product Dapp application for cryptocurrency payment.

This application integrates Uniswap V4 and other technologies and relies on the Acala and Moonbean platforms in the Polkadot ecosystem to effectively simplify the process for users to order overseas travel products using cryptocurrency, shorten the time required for consumers and reduce the cost of DEX/CEX currency conversion. .

Users only need to select the required payment password and complete the signature to easily book overseas travel products on this Dapp. We have solved the problems of personal foreign exchange limit limits and insufficient payment tools, and provided necessary legal currency payment support. At the same time, we monitor the flow of funds in real time on the chain to ensure the safety of funds. During the entire process, only one handling fee will be charged, providing comprehensive protection for users’ ordering experience.


Basic technical architecture

Uniswap V4

In Uniswap V3, each liquidity pool is deployed with its own individual contract, resulting in higher costs for creating pools and executing multi-pool exchanges.

Uniswap V4 consolidates all liquidity pools into a single contract, thereby saving significant gas costs. This is because exchanges will no longer require the transfer of tokens between pools in different contracts.

25461702219436_ pic

Solidity

  • The project is built on Uniswap V3 to ensure future support for Uniswap V4. We utilized the Solidity for the project's smart contracts.

Frontend

Project frontend repository:Trable-froutend

Demo

Key Dapp Features

  • Support for fiat currency payments

  • Fast transactions anytime, anywhere

  • Save time and effort, lower loss

  • No need to consider personal foreign exchange restrictions

Testing

The project includes test cases for contract functionality, ensuring the correctness and security of each feature.

Project demo

Video

https://youtu.be/ujFpy4i8USQ

Member

GitHub: @yanboishere @s7iter @Jerry @zijin79

Contect

Twitter Telegram Mail

About

Pokadot Winter Hackathon 2023|Enable pay in travel without trouble|Trable is a DApp application designed for overseas travel products with a focus on cryptocurrency payments.|@Web3-Club

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 63.7%
  • JavaScript 26.7%
  • TypeScript 7.5%
  • Ruby 0.9%
  • Julia 0.4%
  • Shell 0.3%
  • Other 0.5%