Skip to content

Commit

Permalink
⚗️
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed Dec 19, 2023
1 parent 5ee1aea commit 6c7e06f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
on:
pull_request:
workflow_dispatch:
push:
branches: [debug]

jobs:
test:
Expand All @@ -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
5 changes: 1 addition & 4 deletions scripts/irm-floating.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c7e06f

Please sign in to comment.