Circle-Hackathon / Circle-Hackathon-HK-2023

0 stars 0 forks source link

LSD&PERP CCTP Yeild Protocol #4

Open yangyaczz opened 11 months ago

yangyaczz commented 11 months ago

LSD&PERP CCTP Yeild Protocol

Track

CCTP

Product Introduction

现在有很多条pos链,它们都有自己的lsd协议,用户可以质押原生代币获取收益,但是需要承受价格下跌的风险,所以需要做空等量代币,但是这条链不一定有适合的perp交易所做对冲,比如以太坊慢且贵,某些链的perp协议流动性不充足。所以可以通过cctp将两者关联起来,在流动性充足的其他链的协议上比如gmx或dydx上做空代币,在lsd协议上stake等量的代币,这样来使风险敞口中性,同时可以获得stake的收益还有做空的资金费率收益。 本次示例使用goerli的steth和goerli arb的gmx做示例。 cctp

Product Preview Image

user deposit
  1. user deposit usdc to contract
  2. developer wallet divide usdc to 2 piece, one go to perp, another go to cctp
  3. 5steps cctp api to get usdc in goerli, usdc=>eth , eth=> steth
  4. perp open short
    user withdraw
  5. user withdraw
  6. develper wallet calculate how many position need to close
  7. steth=>usdc, goerli usdc => mumbai usdc
  8. close perp short
  9. send usdc to contract
  10. user withdraw usdc from contract
    developer hedge
  11. steth => usdc
  12. goerli usdc => mumbai usdc
  13. repay perp short position

Presentation Slides

slides link, present details about your project, e.g. why do you choose such a topic, how do you implement it, difference between metamask-like wallets and programmable wallets from the experience level and the practice level.

Code URL

smart contract github: ~ ~ ~ frontend github: ~ ~ ~

Video demo/Deployed URL/Mobile application

website.... video....

Team Information

yycz hp