Skip to content

Commit

Permalink
fix(fix type): fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
cgilbe27 committed Aug 28, 2023
1 parent b569944 commit ac556ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions packages/indexer-nibi/src/query/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ import {
} from "../gql/generated"

export type QueryStatsArgs = {
fees: StatsFeesArgs
perpOpenInterest: StatsPerpOpenInterestArgs
perpPnl: StatsPerpPnlArgs
totals: StatsTotalsArgs
tvl: StatsTvlArgs
users: StatsUsersArgs
volume: StatsVolumeArgs
fees?: StatsFeesArgs
perpOpenInterest?: StatsPerpOpenInterestArgs
perpPnl?: StatsPerpPnlArgs
totals?: StatsTotalsArgs
tvl?: StatsTvlArgs
users?: StatsUsersArgs
volume?: StatsVolumeArgs
}

export const defaultStatsFeesObject: StatsFees = {
Expand Down
2 changes: 1 addition & 1 deletion packages/nibijs/docs/classes/StableSwap.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ y()
Calculate x[j] if one makes x[i] = x

Done by solving quadratic equation iteratively.
x*1**2 + x1 * (sum' - (A*n**n - 1) * D / (A _ n**n)) = D ** (n+1)/(n \*\* (2 _ n) \_ prod' \* A)
x*1\*\*2 + x1 * (sum' - (A*n\*\*n - 1) * D / (A _ n**n)) = D ** (n+1)/(n \*\* (2 _ n) \_ prod' \* A)
x_1\*\*2 + b\*x_1 = c

x_1 = (x_1\**2 + c) / (2*x_1 + b)
Expand Down

0 comments on commit ac556ed

Please sign in to comment.