Skip to content
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
9036283
Add mainnet fork test for multiple positions per user and batch liqui…
mts1715 Feb 18, 2026
4c2bf16
Add testMassUnhealthyLiquidations — a system-wide stress test that cr…
mts1715 Feb 19, 2026
bf31254
Merge remote-tracking branch 'origin/main' into taras/147-multi-posit…
mts1715 Feb 19, 2026
441c58e
fixes after merge
mts1715 Feb 19, 2026
86086fa
code style fix
mts1715 Feb 19, 2026
526704a
constant naming fix
mts1715 Feb 20, 2026
13c50e5
moved helper methods to test_helpers.cdc
mts1715 Feb 24, 2026
e7216bd
Update cadence/tests/fork_multiple_positions_per_user.cdc
mts1715 Feb 25, 2026
d064bc7
fix naming *_test.cdc, move not production script to test dir
mts1715 Feb 25, 2026
887ae21
flow.json: fix block height
mts1715 Feb 25, 2026
0df9e00
fix block height in flow.json, add actions/cache for ./imports keyed …
mts1715 Feb 25, 2026
c9cc894
add more description comments to test
mts1715 Feb 26, 2026
0e5577c
move scripts only for test to "cadence/test/transactions"
mts1715 Feb 26, 2026
5bc3cf1
remove useless transaction from test
mts1715 Feb 26, 2026
8fd216c
Merge branch 'main' into taras/147-multi-position-per-user-scenarios-…
mts1715 Mar 2, 2026
e5e5824
Merge branch 'main' into taras/147-multi-position-per-user-scenarios-…
mts1715 Mar 3, 2026
d7cefa5
Merge branch 'main' into taras/147-multi-position-per-user-scenarios-…
Kay-Zee Mar 6, 2026
d98a0aa
fix borrow asset to MOET instead of FLOW, fix liqudate transactions t…
mts1715 Mar 10, 2026
828600a
use constants instead of magic numbers in fork_multiple_positions_per…
mts1715 Mar 10, 2026
6e9d39c
Merge remote-tracking branch 'origin/main' into taras/147-multi-posit…
mts1715 Mar 10, 2026
d1ff732
Merge branch 'main' into taras/147-multi-position-per-user-scenarios-…
mts1715 Mar 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/cadence_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/cache@v4
with:
path: ./imports
key: flow-deps-${{ hashFiles('flow.json') }}
- name: Install Flow CLI
env:
FLOW_CLI_VERSION: v2.7.2
Expand Down
9 changes: 9 additions & 0 deletions cadence/scripts/flow-alp/get_oracle_price.cdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import "MockOracle"

access(all) fun main(tokenIdentifier: String): UFix64? {
let tokenType = CompositeType(tokenIdentifier)
?? panic("Invalid token identifier: ".concat(tokenIdentifier))

let oracle = MockOracle.PriceOracle()
return oracle.price(ofToken: tokenType)
}
Loading
Loading