squeeth-monorepo
squeeth-monorepo copied to clipboard
Update strategies payoff diagram
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