squeeth-monorepo icon indicating copy to clipboard operation
squeeth-monorepo copied to clipboard

Update strategies payoff diagram

Open alexisgauba opened this issue 3 years ago • 0 comments

Please describe the problem you're having. Right now the strategies payoff diagram is a bit confusing, as it assumes ETH price stays constant over a period of time (eg. 14 days, 28 days) and then that respective curve shows what would happen if ETH falls at that point. To make things clearer, instead of the current payoff diagram, we should instead show the payoff curve for 1 day.

Additional context The code for this already exists (pricer.ts and shortSqueethPayoff.tsx are already updated). You can get this graph by adding the following prop to shortSqueethPayoff in StrategyInfo.tsx: vaultType = Vaults.CrabVault

The only work left is to zoom in on the graph so it's clearer what the payoff is and clear when it goes positive Screen Shot 2022-01-26 at 2 37 49 PM

alexisgauba avatar Jan 27 '22 04:01 alexisgauba