Skip to content

Commit 607277b

Browse files
authored
feat: FlashMintLeveragedZeroEx (#205)
* feat: Add script to cache 0x response data * feat: First version of FlashMintLeveragedZeroEx contract code * fix: Remove unnecessary equity position check * test: Test harness for FlashMintZeroEx integration tests * fix: Sync leverage token when getting debtTokenAmount * Extend function to only query 0xApi if current value is not in cache * test: Fetch or use cached 0x data in flashmint tests * test: First issuance transaction passing * test: Redemption test * Sell full collateral token amount for debt token * fix: Simplify usage of swapData * Remove circleci config * Add github ci config * rename test step * Add output amount check * fix issue with eth output * Add methods to adjust swapTarget whitelist and withdraw stuck tokens * Implement aave leverage support * Docstrings for owner only methods * Remove duplicated build step from ci
1 parent e46e2bc commit 607277b

File tree

8 files changed

+3303
-251
lines changed

8 files changed

+3303
-251
lines changed

.circleci/config.yml

Lines changed: 0 additions & 246 deletions
This file was deleted.

.github/workflows/publish.yaml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ on:
66
pull_request:
77
branches: [master]
88

9+
env:
10+
BASE_RPC_URL: ${{ secrets.BASE_RPC_URL }}
11+
ZERO_EX_API_KEY: ${{ secrets.ZERO_EX_API_KEY }}
12+
913
jobs:
1014

11-
build-and-test:
15+
build:
1216
runs-on: ubuntu-latest
1317
steps:
1418
- uses: actions/checkout@v3
@@ -22,10 +26,27 @@ jobs:
2226
- name: build
2327
run: yarn build
2428

29+
test-integration-base:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v3
33+
- uses: actions/setup-node@v3
34+
with:
35+
node-version: 20
36+
- name: copy env
37+
run: cp .env.default .env
38+
- name: install
39+
run: yarn
40+
- name: chain
41+
run: yarn chain:fork:base &
42+
- name: test
43+
run: yarn test:integration:base
44+
45+
2546
publish:
2647
runs-on: ubuntu-latest
2748
if: ${{ github.ref == 'refs/heads/master' }}
28-
needs: [build-and-test]
49+
needs: [build]
2950
steps:
3051
- uses: actions/checkout@v2
3152
- uses: actions/setup-node@v3

0 commit comments

Comments
 (0)