Skip to content

Commit

Permalink
refactor: adding correct msg partial close parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
CalicoNino committed Sep 18, 2023
1 parent b2c42de commit 3ca59b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/nibijs/docs/classes/StableSwap.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ 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 + b\*x_1 = c
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
2 changes: 1 addition & 1 deletion packages/nibijs/src/msg/perp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const isMsgDonateToEcosystemFundEncodeObject = (

export interface MsgPartialCloseEncodeObject extends EncodeObject {
readonly typeUrl: string
readonly value: Partial<MsgDonateToEcosystemFund>
readonly value: Partial<MsgPartialClose>
}

export const isMsgPartialCloseEncodeObject = (encodeObject: EncodeObject) =>
Expand Down

0 comments on commit 3ca59b8

Please sign in to comment.