Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add flashmint nav #90

Merged
merged 71 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
06c2333
feat: add flash mint nav
janndriessen Oct 22, 2024
9ea52ee
feat: add flash mint nav contract abi and utils
janndriessen Oct 22, 2024
618cc84
add flash mint nav tx builder
janndriessen Oct 22, 2024
b050b0c
refactor flash mint nav builder to use input/output token amount
janndriessen Oct 23, 2024
ef578a4
add flash mint nav quote provider
janndriessen Oct 23, 2024
80ca67a
add util function to get reserve asset input amount
janndriessen Oct 23, 2024
077ee85
get reserve asset amount when redeeming
janndriessen Oct 23, 2024
7c8b693
remove todo
janndriessen Oct 23, 2024
867768a
update block number in hardhat config
janndriessen Oct 23, 2024
db2bc92
fix index token address for get redeem amount
janndriessen Oct 23, 2024
dc3948a
update sources for swap quotes
janndriessen Oct 23, 2024
81664dd
rename estimated output amount
janndriessen Oct 24, 2024
20c5154
remove obsolete todos
janndriessen Oct 24, 2024
df6723a
remove obsolete logs
janndriessen Oct 24, 2024
54b719a
update tests to test for reserve asset swap data
janndriessen Oct 24, 2024
f738b5c
Merge branch 'main' into feat/add-flashmint-nav
janndriessen Oct 25, 2024
f47ae0a
update block number (merge conflict)
janndriessen Oct 25, 2024
ba49400
feat: add custom icusd router
janndriessen Oct 25, 2024
bcd6c9c
fix slippage adjustment for nav
janndriessen Oct 25, 2024
e598272
tmp skip icusd tests
janndriessen Oct 25, 2024
4cc5c99
ci: remove ic21
janndriessen Oct 25, 2024
ddc8458
add flash mint nav builder export
janndriessen Oct 25, 2024
60b2bb4
add redeem routing and flash mint wrapped
janndriessen Oct 25, 2024
4eac15c
add threshold check for redemptions
janndriessen Oct 26, 2024
cb8b5af
refactor: get expected reserve redeem quantity
janndriessen Oct 26, 2024
0bec0de
use get expected reserve redeem quantity to determine threshold
janndriessen Oct 26, 2024
c3ac606
add balanceOf util function
janndriessen Oct 26, 2024
26f2095
add test for fm wrapped redeeming
janndriessen Oct 26, 2024
a732b55
update input amounts on test for minting icUSD
janndriessen Oct 26, 2024
edf4c5f
temporary skip test
janndriessen Oct 26, 2024
ee0b91c
fix quote provider test for redeeming icUSD
janndriessen Oct 26, 2024
5056ed8
update tokenlists to v3
janndriessen Oct 26, 2024
4e58126
use addresses from tokenlist
janndriessen Oct 27, 2024
1308a9d
fix name for balance of util function
janndriessen Oct 27, 2024
5f1d946
feat: add flash mint wrapped contract for base
janndriessen Nov 12, 2024
04bffa1
update contract utils
janndriessen Nov 12, 2024
9abb6e1
update icusd router to use flash mint wrapped only (for now)
janndriessen Nov 12, 2024
5dd6012
update tokenlists
janndriessen Nov 12, 2024
c605873
fix builders test
janndriessen Nov 12, 2024
e4eeb77
update base address
janndriessen Nov 12, 2024
4151b3c
update component swap data to use chainId
janndriessen Nov 12, 2024
38f6eae
add base to client convenience function
janndriessen Nov 12, 2024
04da744
update wrap data
janndriessen Nov 12, 2024
bec5ad3
update icusd tests to base
janndriessen Nov 12, 2024
328f43e
fix wrap data test
janndriessen Nov 12, 2024
583c5d1
fix wrapped builder tests
janndriessen Nov 13, 2024
4051836
update wrapped provider test to base
janndriessen Nov 13, 2024
e5bcac1
remove old todo
janndriessen Nov 13, 2024
5b4c4a3
fix component swap data abi use and update tests to base
janndriessen Nov 13, 2024
6ed866e
update quote provider tests
janndriessen Nov 13, 2024
779e943
fix nav provider tests
janndriessen Nov 13, 2024
6f6cf44
update import sort order
janndriessen Nov 13, 2024
0b43b70
update flashmint nav provider to use chainId
janndriessen Nov 13, 2024
5ea07f3
readd flashmint wrapped test
janndriessen Nov 13, 2024
01d3bf7
add preview and slippage. add weth tests
janndriessen Nov 13, 2024
79f9faf
fix component swap data tests
janndriessen Nov 13, 2024
663c0ba
refactor provider use
janndriessen Nov 14, 2024
87719b2
refactor test factories
janndriessen Nov 14, 2024
5f99377
refactor utils
janndriessen Nov 14, 2024
0cfe129
remove obsolete test util
janndriessen Nov 14, 2024
8cb6fcd
remove zeroex swap quote provider mainnet in favor of convenience util
janndriessen Nov 14, 2024
893b0ba
use preview mint and redeem for erc4626
janndriessen Nov 14, 2024
8dd1ca3
update slippage
janndriessen Nov 14, 2024
90b3a8d
add test for minting with DAI
janndriessen Nov 14, 2024
c54cb70
remove logs
janndriessen Nov 14, 2024
6f349b2
feat: update composition
janndriessen Nov 15, 2024
23b439c
fix wrap data test
janndriessen Nov 15, 2024
0535c1c
update component swap data test
janndriessen Nov 15, 2024
4a1c81d
update wrapped provider tests
janndriessen Nov 15, 2024
2c13b64
Merge pull request #94 from IndexCoop/feat/update-icusd-composition
janndriessen Nov 15, 2024
9a5da57
Merge pull request #93 from IndexCoop/feat/add-icusd-router
janndriessen Nov 15, 2024
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
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
- run: npm run test:builders
- run: npm run test:quotes
- run: npm run test:base
- run: npm run test:ic21
- run: npm run test:icusd
- run: npm run test:hyeth
# - run: npm run test:btc2x
Expand Down
7 changes: 7 additions & 0 deletions docs/icusd/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# icUSD

## Composition Updates

1. Update wrap data according to the new composition watching integration names [here](src/utils/wrap-data.ts)
2. Update wrap data tests accordingly
3. Make sure nothing changes about how to generate the (issuance) amounts for the different components in the [component swap data](src/utils/component-swap-data.ts)
Loading