← Back to home

Job3

We’ve built a perpetual positions protocol where you can long or short eBTC using USDC as collateral. For added security and seamless transaction signing, we’ve integrated Ledger.

Screenshots

Job3 screenshot 1
Job3 screenshot 2
Job3 screenshot 3

Problem Statement

We’ve built a perpetual positions protocol that lets you trade eBTC by opening long or short positions with USDC as collateral. It’s designed to make trading simple, secure, and decentralized. To keep things safe and transparent, we’ve integrated Ledger for clear and secure transaction signing. This way, you can trade confidently while enjoying the flexibility of perpetual trading and the reliability of USDC.

Solution

We built this project using Solidity smart contracts to handle the main logic for opening and managing perpetual positions, managing USDC collateral, and handling liquidations. eBTC is the trading asset, while USDC keeps things stable as collateral, making it easier to use. For security, we integrated Ledger, using their APIs to ensure users can sign transactions clearly and confidently. On the frontend, we used React.js with ethers.js to create a simple and clean interface where users can easily trade. We also set up a Node.js backend to handle off-chain tasks like updating funding rates and fetching data in real time. To make things efficient, we worked on optimizing gas usage with batch transactions and built a custom funding rate mechanism to keep the long and short positions balanced.

Hackathon

ETHGlobal Bangkok

2024

Contributors