opynfinance / squeeth-monorepo Goto Github PK
View Code? Open in Web Editor NEWSqueeth is a new financial primitive in DeFi that gives traders exposure to ETH²
Home Page: https://squeeth.com/
Squeeth is a new financial primitive in DeFi that gives traders exposure to ETH²
Home Page: https://squeeth.com/
Describe the bug
User had an existing short position and was trying to mint and sell more, but the interface kept switching them between long and short
Expected behavior
If a user is on the short side, keep them on the short side and vice versa for longs.
Screenshots
Please describe the problem you're having.
Some users aren't aware of the "manage vaults" interface / functionality. Make it clearer to users how to get there
Additional context
Please describe the problem you're having.
Right now if a user fully closes out a vault, and then tries to put on a new position, we a create a new vault. This means they need to re-approve the operator for their new vault, which is an extra gas txn
Describe the bug
to many calls made to fetch latest block
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Do not make too many calls as that means the service provider will give us a 429 error sooner than later
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Please describe the problem you're having.
Folks were confused about if their mint/burn/add/remove transactions were confirmed because there's currently no confirmation state. We can add a confirmation state just like the Trade page has
User expected to be able to buy back, burn, and remove from the vault manager and didn't realize they could do that from short/close
Expected behavior
Have a button or link on the vault manager that takes users to short/close to fully buy back, burn, and remove in one step
Please describe the problem you're having.
During hedge auctions, deposits and withdraws are likely to fail because the composition of the vault is changing. During the time period of the auction, display a warning and disable the deposit and withdraw buttons.
Some ideas for warning messages:
Please describe the problem you're having.
User's often ask about what the current funding rate is and how they can see past funding rates
Screenshots
Applications like dydx show graphs for historical funding
Additional context
Could add this graph as a tab on the trade page next to the payoff, risks etc. sections
Please describe the problem you're having.
Users want to see how funding impacts their PnL
Please describe the problem you're having.
move position hooks to context like useTrade did to improve performance
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context or screenshots about the feature request here.
Short Squeeth position can not be seen due to "Division by zero".
Already tried to hard refresh, new browser and so on.
Describe the bug
Right now "full close" on short/close lets you input an amount to close, effectively letting you partially close. This causes issues because users have inputted partial values there but then have been left with a position at min collat ratio of 150%, because to fully close you need 150%
To Reproduce
Expected behavior
Please describe the problem you're having.
Right now our ethPriceData gives us 5min prices within 1 day, 1 hr prices within 90 days, and daily prices after 90 days. However ETH price can change dramatically within both an hour and a day, so user's PnL could be considerably off. We need to find a price source that gives us as precise historical price data as possible and move to that
Please describe the problem you're having.
Make it obvious to users as soon as they enter the trade page what their liquidation price / status is, so they are immediately aware about if they need to take action
Additional context
Please describe the problem you're having.
Additional context
Similar to how we have a "final squeeth amount" check for a user's max short squeeth amount for closing shorts, we should have a similar check for vault manager actions
The trade page check:
Describe the bug
Fix short backtest pnl chart and make it workable for crab strategy
To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Short PnL is currently calculated as (amt of ETH earned from selling oSQTH) - (amt of ETH to pay to buy oSQTH back) * ETH price
, not taking ETH as collateral into account
We should update it to ((amt of ETH earned from selling oSQTH) - (amt of ETH to pay to buy oSQTH back) * ETH price) + (ethDeposited * (ethPriceAtDeposit - ethPriceNow))
Please describe the problem you're having.
Right Short/Open defaults to 150% which is the liquidation ratio, instead we should default to the safe threshold
Describe the bug
Expected behavior
Screenshots
Please describe the problem you're having.
Change to subscription instead of using useInterval to improve performance and dont require user to refresh to get latest data
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
https://opyn.slack.com/archives/C029R55SY5P/p1642086495087200
Please describe the problem you're having.
Users don't have a place to see how crab performs once live, this would add a graph to see live performance (how much funding does the strategy earn vs. rebalancing costs)
Describe the bug
The positions card and short input are now showing the right value for positions, but it takes those about three reloads to show the right value. The positions tab and vault manager don't reload, so positions doesn't show up at all and vault manager gets stuck showing the wrong value. This is potentially because the LP loading is not taken into account?
To Reproduce
Expected behavior
Describe the bug
Right now the swaps query on the short side doesn't consider the Uniswap router, when it should because users manually mint and then sell on Uniswap, or manually buy back on Uniswap to burn
To Reproduce
Manually mint and sell on Uniswap
Expected behavior
Swaps router takes into account txns on Uniswap and properly classifies them as short if mint + sell directly on Uniswap
Describe the bug
User deposited and sold some oSQTH, then refreshed the page to sell some more and clicked "deposit and sell" before the page had loaded their vault ID to know that they already had an open vault
This meant they ended up having 2 vaults which is a problem since our interface doesn't support two vaults
To Reproduce
Expected behavior
Disable the "deposit and sell" button until the vaultId has loaded so we know for sure that the page is using the user's existing vault if they have one
Actions, connect to contracts:
Show:
Please describe the problem you're having.
Get 24hr mark and index twap from the subgraph to show historical daily funding
Please describe the problem you're having.
Users are not clear about how to see how much funding they have paid or received
Additional context
Could add as a field on the positions tab
Describe the bug
Folks are being 429ed by Coingecko and Messari. When the error is not caught, the whole app errors out
To Reproduce
Note, this isn't happening to everyone, so might not happen to you, but we need to add some error handling
Expected behavior
Describe the bug
#47 updated the formula for PnL, but uses the wrong data for calculating the ETH collateral portion
To Reproduce
Expected behavior
Unrealized Formula: ((amt of ETH earned from selling oSQTH) - (amt of ETH to pay to buy oSQTH back) * ETH price) + ((initialEthDeposited - any collateral removed)* (ethPriceNow - ethPriceAtDeposit))
As EJ called out below, need to update realized as well
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
After a partial close, unrealized PnL should only be based on the remaining amount
On the strategies page, show a global history for all crab vault actions:
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Please describe the problem you're having.
Especially with high gas, people want to be able to adjust collateral and debt at the same time in one txn paying one gas fee
Please describe the problem you're having.
Right now we show PnL for longs and shorts in eth terms using (ethToClose - ethPaid) * ethPriceNow
. Instead we should show PnL in dollar terms using (ethToClose * ethPriceNow) - (ethPaid * ethPriceWhenOpened)
. We would need to take into account ETH prices for partial closes as well to show that in USD terms
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.