TimeFlow
A pre-market trading protocol based on the RWA stablecoin DUST
Videos
Descripción
Demo link:
https://timeflow.vinefinance.net/payment
Test account: 0x71e87C493a0c70221B55bc35C4fe91e52bCb988a
Private key: f326643f450cae75f5ba680b59250a4a6f648d89da5839833e2ccc8b7f3e7a46
Introduction
TimeFlow is a pre-market trading market based on the RWA stablecoin DUST.
What problems does TimeFlow solve?
TimeFlow offers a pre-market trading market or futures trading of an already issued Token to users who want to trade the tokens of an upcoming project in advance. At the same time, anyone can mint DUST using the stablecoin issued based on RWA. DUST brings users super payment:
Ordinary transfer;
Secure transfer using DUST's Flow method;
Flow payment using DUST's Flow method.
TimeFlow fee design
TimeFlow charges fees to both buyers and sellers respectively:
Suppose the transaction volume of the collateral is x and the Decimals is y.
1. 10*10**y <= x < 1000*10**y, the cost is 1% x;
2. 1000*10**y <= x < 10000*10**y, the cost is 0.8%x;
3. When x >= 10000*10**y, the cost is 0.5%
When the trading market is not over and the user cancels the order, 0.5% x will be charged
How does the TimeFlow Pre Market operate?
Suppose there is a pre market for trading PTT tokens of the Pharos project, with an id of 0. Alice knows that she is at the end point of the T1 market and can obtain 10,000 PTT. Bob is a buyer with a strong interest in PTT:
Alice used TimeFlowCore's putTrade to choose to sell the PTT she was going to obtain in advance.
Alice's sale status:
1. orderId = 0, price = 1 DUST, amount = 2000 PTT, state = selling, Alice Collateral = 2000 DUST;
2. orderId = 2, price = 2 DUST, amount = 2000 PTT, state = selling, Alice Collateral = 4000 DUST;
3. orderId = 4, price = 2 DUST, amount = 2000 PTT, state = Traded but unstaked PTT, Alice Collateral = 4000 DUST Bob Collateral = 4000 DUST ;
4. orderId = 5, price = 3 DUST, amount = 2000 PTT, state = Traded staked PTT Alice Collateral = 6000DUST && Alice Collateral = 2000 PTT, Bob Collateral = 6000 DUST ;
Purchase status of Bob:
1. orderId = 1, price = 0.9 DUST, amount = 2000 PTT, state = buying, Bob Collateral = 1800 DUST;
2. orderId = 3, price = 1 DUST, amount = 2000 PTT, state = PTT that has been traded and stawn, BobCollateral = 2000 DUST Alice Collateral = 2000 DUST && Alice Collateral = 2000 PTT;
If the current time is T2:
1. When T2 < T1-12 h, Alice can revoke orderId = 0, orderId = 2, and Bob can revoke orderId = 1.
2. When T2 < T1 and orderId = 5, Alice staked amount = 2000 PTT, and orderId = 3, Alice staked amount = 2000 PTT
3. If T2 >= T1, and orderId = 0, orderId = 1, or orderId = 2 without canceling the order, a refund can be executed. When orderId = 4 occurs and a breach occurs, Alice loses its liquidated damages, and Bob obtains Collateral = 8000 - fee DUST with orderId = 4. orderId = 3. Alice obtained 4000 - fee DUST and Bob obtained 2000 PTT. orderId = 5. Alice obtained 12,000 - fee DUST and Bob obtained 2,000 PTT

Architecture design

Team
0xlive is the founder of VineLabs, responsible for the development of EVM and SVM smart contracts, and has rich experience and knowledge in Web3 development.
Levi is one of the co-founders of VineLabs, responsible for the back-end development of Node.js, and has rich back-end experience.
Louis is one of the co-founders of VineLabs, responsible for the development of web3 front-end work, and has rich experience in front-end development.
Contract Address
{
"50002": {
"USDT": "0xFA8B026CaA2d1d73CE8A9f19613364FCa9440411",
"PTT": "0xa5281122370d997c005B2313373Fa3CAf6A48Ae0",
"DustCore": "0x9096DC35B9A851134cb2f82eD6c7cFEE08D1f024",
"Governance": "0x55114d8eF1C57dc96481008D70883Ce2A8153C03",
"TimeFlowFactory": "0x0b8A25A649d28C6711B3C9d81d58be3e6cb8047E",
"TimeFlowHelper": "0x7Bc0B773e4E3c3f3d5fA39897dbFeb4c27D4d6b7",
"market0": "0xa6beF12cB127c36F7e37C5127034654012487b38",
"market1": "0x7e82D25437a6d6fC74c8E2a18b77dA2e2E64FC40",
"updateTime": "2025-04-29T14:23:17.479Z"
}
}
Progreso del hackathon
Launch Pharos' Devnet, along with the official website and documentation, to complete the entire project testing. The test function results are as follows: The casting function of the faucet is normal. The casting of DUST using USDT as collateral is normal. The ordinary transfer, secure transfer and flow Payment using payment (the time stamp of the network has an impact when receiving) are normal. The creation of buy and sell orders for the TimeFlow Pre-Market is normal. The matching orders are normal. The cancellation orders are normal. The pledged target Token is normal, the refund function is normal, the default withdrawal function is normal, and the withdrawal function is normal.
Pila tecnológica
Estado de recaudación de fondos
null