Skip to content

Commit

Permalink
ci: check nibid in nibijs tests workflow (#231)
Browse files Browse the repository at this point in the history
* ci: check nibid in nibijs tests workflow

* test: forcing a change

* test: removing forced change
  • Loading branch information
CalicoNino authored Sep 22, 2023
1 parent b2a6738 commit 0715849
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-nibijs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
- name: Install nibid
run: curl -s https://get.nibiru.fi/@v0.21.9! | bash
# Use https://get.nibiru.fi/ to get the most recent release.
- name: Check nibid version
run: nibid version
- name: Run localnet.sh in the background
run: |
sh scripts/localnet.sh &
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
4 changes: 2 additions & 2 deletions scripts/localnet.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -e

# Console log text colour
Expand Down Expand Up @@ -194,7 +194,7 @@ add_genesis_perp_markets_with_coingecko_prices() {
else
echo_error "Command \"$*\" failed."
exit 1
fi
fi
}

nibid genesis add-genesis-perp-market --pair=ubtc:unusd --sqrt-depth=$reserve_amt --price-multiplier=$price_btc
Expand Down

0 comments on commit 0715849

Please sign in to comment.