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 605cdbb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
11 changes: 4 additions & 7 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 @@ -17,10 +19,5 @@ jobs:
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
3 changes: 1 addition & 2 deletions scripts/irm-fixed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ rate=$(bc -l <<< "
timestamp = ${input[9]}
if (ufixed == 0) rate = base
else {
sqalpha = maxpools / fixedunat
else { sqalpha = maxpools / fixedunat
alpha = sqrt(sqalpha)
sqx = maxpools * ufixed / (uglobal * fixedunat)
x = sqrt(sqx)
Expand Down
3 changes: 1 addition & 2 deletions scripts/irm-floating.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +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)))))
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
}
Expand Down

0 comments on commit 605cdbb

Please sign in to comment.