https://ethglobal.com/showcase/pepetuals-kyyw9
![image](https://private-user-images.githubusercontent.com/72362902/293518321-da1f8288-6a7b-4b89-98f1-6e168b252374.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4NzI3NDAsIm5iZiI6MTcyMzg3MjQ0MCwicGF0aCI6Ii83MjM2MjkwMi8yOTM1MTgzMjEtZGExZjgyODgtNmE3Yi00Yjg5LTk4ZjEtNmUxNjhiMjUyMzc0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDA1MjcyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI1Y2E4OTFmNDExM2VhMTcwNDFjNjQzNjMyYzI4YjdiZmNhOTRkZmVlMDY0MzFmODI3MzY0ZjZjYjQ4ZjRmYjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.uLJ0DDkhRIrAvGWM6mY83dKE0QK5Wl_aNfaq5CnrnRQ)
This project is a new approach to perpetual onchain futures. There have been quite a few approaches in the past, but we believe that none of them match our idea, especially in terms of stability.
The presentation can be found here: https://docs.google.com/presentation/d/1SnWZmQYaW7W_3zFY-c6oZT-BYV2DgJLPcIJjkJs1Hws/edit#slide=id.g282cbbbe77c_0_107
Deploys long short pairs for a given asset. Manages the uniswap pools.
Deposit futures into the pool. They will automatically be converted into new shares towards the end of each period and can be withdrawn at any point. Bots have to call startRollover as well as rollDeposit / rollWithdraw. As an incentive bonus tokens are given out.
Wrapper for the uniswap pool for more easy usage.
Mainly used as a wrapper for easy usability from the frontend.
The frontend is built in multiple frameworks. The main underlying framework is React. The main components are build with Near and deployed on their testnet (LSC Component,LSP Compoennt). These two components use the bootstrap framework for styling. For renderening of these components a gateway in Next.js was created. This gateway uses tailwind navigation components and for the basic website styling, but uses bootstrap for the Near components. With this concept anyone who would like to implement our service can add our Near Widget wo their gateway/website. The two main components are structured in the following way:
- The LSC (Long/Short Converter) component to swap your USDC funds to a future/perpetular future.
- The LSP (Long/Short Positions) component to show all of your current positions youre holding.
To test it yourself some solidity versions in the uniswap contracts have to be changed from =0.7.6 to >=0.7.6 NoDelegateCall.sol UniswapV3Factory.sol UniswapV3PoolDeployer.sol lib/uniswapv3-periphery/contracts/base/LiquidityManagement.sol (=0.7.6) lib/uniswapv3-periphery/contracts/libraries/CallbackValidation.sol (=0.7.6) lib/uniswapv3-periphery/contracts/interfaces/external/IWETH9.sol (=0.7.6)
Some tests aren't fully implemented and are expected to fail.