From 0715849bae7d09bda2f135c8fd0eb4da0a7a9881 Mon Sep 17 00:00:00 2001 From: Karim El Shenawy <54007257+elshenak@users.noreply.github.com> Date: Fri, 22 Sep 2023 13:40:53 -0400 Subject: [PATCH] ci: check nibid in nibijs tests workflow (#231) * ci: check nibid in nibijs tests workflow * test: forcing a change * test: removing forced change --- .github/workflows/test-nibijs.yaml | 2 ++ packages/nibijs/docs/classes/StableSwap.md | 2 +- scripts/localnet.sh | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-nibijs.yaml b/.github/workflows/test-nibijs.yaml index 486f13cb..b0fd280f 100644 --- a/.github/workflows/test-nibijs.yaml +++ b/.github/workflows/test-nibijs.yaml @@ -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 & diff --git a/packages/nibijs/docs/classes/StableSwap.md b/packages/nibijs/docs/classes/StableSwap.md index be6e02b1..25548134 100644 --- a/packages/nibijs/docs/classes/StableSwap.md +++ b/packages/nibijs/docs/classes/StableSwap.md @@ -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) diff --git a/scripts/localnet.sh b/scripts/localnet.sh index db0b3a64..c0257d3b 100644 --- a/scripts/localnet.sh +++ b/scripts/localnet.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e # Console log text colour @@ -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