Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* persistent user data with prisma * fix lint * ignore regular .env too * remove unnecessary async * address comments * rename hooks and provider to userMetadata... * add trade table and extend providers executeTrade with callback * fix npm command * update schema.prisma * isminting passed in * better schema without unnecessary stuff * include view from materializedview * remove comment * remove totalFeesUSD * fix linting * merge master update prisma schema * update prisma * no need toBigInt anymore * quoteType mapping, and indexcoop refid * add placeholders for mint and redeem fees * update prisma schema * move to apiv2 * add eslint disable to generated files * ts-nocheck for generated as well * allow .ts imports in tsconfig * fix linting and imports * use api.indexcoop as baseurl * handle ep errors and send messages back * exclude admin endpoints from kubb generator * comment fixes * change url to cloudflare redirect * fix kubb conf api baseUrl * remove /api/v2 from the url for the redirect * change api url back to render one for now * remove url replace * add fees to trade * add working history and open positions * underlyingAsset symbol & denominator * use USD as default denominator * lint fix * move history sorting to backend too * reinstall dependencies * linting issues on gha * linting again * Fix lint * fix gasestimatoor * fix typeerrors in tests * fix viem / wagmi versions * lint with no cache * update eslint * full on transfer data * adjust netBalance with transferAmount * dont need to adjust netbalance * fix unrealised pnl adjustment with tx * scrollable history and positions * move back to old your tokens for the ui * add refId submission * handle optional refid on app side * simpify new history route * remove shadow blur * remove unnecessary address cast * recreate lock * chore: lint peristent user data (#1730) * update github workflow to include generate * update docs * add sentry cli again * swap to new open positions * fix formattings and some calculation logic * fix lint * fix entry vs current price and pnl * reset hardcoded addresses * realign spacings in open positions as well * remove denominator on frontend as well * remove transfer amount for now * revert transferamount adjustment, data integrity issue not code * use latest preview endpoint * seems to be working version * move back to prod api * update lock * merge fix * remove sentry cli * test if it works on deployed version * add ration token support for entryprices * calculate average entryprice * add todo regarding average entry price * weighted average entryprice * show only leverage tokens on leverage your tokens * refetch history after trade * short colors and markets * send proper underlying asset on shorts at trade * column responsivity * entry price calculated from buys only * add lgn custom breakpoint for table * hide only on lg * remove infinity for now if there is no cost * fix infinity% * take current price if ratio price is not found * current price correct mappign * display narrow symbol * change empty message * indexes as underlyingAssetSymbol-underlyinAssetUnitPriceDenominator * remove console.log * remove unused val * wrap flex items if necessary un unrealisedpnl * reset netbalance width to original * break realised pnl too if has to * reduce increase/decrease width * add margins to price columns * iETH and iBTC * refetch prices too to fix netbalance, and add a little delay to make sure we have fresh data * change mobile history column display * fix increase/decrease action * hide percentage, show time on mobile * add the volatility decay tooltip thingy * refetch prices on user address change too * fix linting * add text for not connected wallet * add new faq sections and tooltip links * adjust route try catch to catch individual failures of stats * useQuery in useBalances to fetch balances * try waiting for transactions before refetching * add client as dependency in saveTrade * no need for memoized balances * align empty columns right * use rawContract.address instead of metrics as its lying sometimes * refetch and it works * dont break if stats fails * make sure that zero netbalance gets filtered * remove unnecessary comments * remove stats log * calculate cost from balance and avgcost * refine tx categorization * more accurate transfers tracking when no db entry * reset api url * make sure if there is no response we still default to empty array on open * temporarily add preview api link * reset to prod api url --------- Co-authored-by: 0xonramp <[email protected]> Co-authored-by: JD <[email protected]>
- Loading branch information