Inspiration
The current AMM DEX lacks a pending order function, which is not friendly enough for many users who are used to order book trading, so I would like to develop this decentralized order book trading product to meet the needs of users
What it does
1:The user can select a pair in this order book and place a pending order, which is very similar to the operation in CEX;
2:During the process of pending orders, the system will take the user's u token for liquidity mining, so that the user can also get additional income during the process of pending orders;
3:The user's order is designed as an NFT, if the order is pending, the user can deposit the order to lend other tokens; if the order is dealed, the order can be used for trading mining or to mint other NFTs.
How we built it
We implemented order thin smart contracts using OpenZepplin, other AMM products and mining products.
Challenges we ran into
1:Users need to integrate external liquidity as well as internal liquidity of the order book in the process of taking and making orders.
2:Each pending order has the possibility of a full or partial transaction, and the algorithm here is complicated
Accomplishments that we're proud of
1:The design of the order as NFT is the most innovative aspect of the whole project.
2:The combination of external liquidity and income allows this product to be differentiated from other order thin products.
What we learned
1:Since the contract has a size limit, learned how to keep the code optimally structured to not hit that limit
2:Learned how to integrate with other products in the chain
3:Learned how to combine DeFi with NFT
What's next for BoboSwap for order book trading
1:Development of collateralized lending products that allow orders NFT for collateralized lending
2:Make derivatives through order NFT
Built With
- defi
- nft
- solidity
- trisolaris
- vue
Log in or sign up for Devpost to join the conversation.