From 6c7e06fa887e44bf274938470bf64b23f7f10f4c Mon Sep 17 00:00:00 2001 From: danilo neves cruz Date: Tue, 19 Dec 2023 13:50:45 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9A=97=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 12 ++++-------- scripts/irm-floating.sh | 5 +---- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ae3f7418..09e819c10 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,8 @@ on: pull_request: workflow_dispatch: + push: + branches: [debug] jobs: test: @@ -16,11 +18,5 @@ jobs: node-version: 20 cache: yarn - uses: foundry-rs/foundry-toolchain@v1 - - run: yarn - - run: yarn lint - - run: forge build - - run: yarn coverage - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: lcov.info,coverage/lcov.info + - run: bc --version + - run: forge test diff --git a/scripts/irm-floating.sh b/scripts/irm-floating.sh index 5e1c109b8..e46c25a92 100755 --- a/scripts/irm-floating.sh +++ b/scripts/irm-floating.sh @@ -19,10 +19,7 @@ rate=$(bc -l <<< " if (uglobal == 1) rate = 0 else if (uglobal == 0) rate = r - else if (uglobal >= ufloating) { - sig = 1 / (1 + e(-sspeed * (l(uglobal / (1 - uglobal)) - l(unat / (1 - unat))))) - rate = e(-gspeed * l(1 - sig * uglobal)) * r - } + else if (uglobal >= ufloating) rate = r scale = 0 print rate * wad / 1