-
Notifications
You must be signed in to change notification settings - Fork 53
Commit 3847aab
authored
feat: FlashMintDex (#181)
* swap data instead of component quotes
* stack still too deep
* refactor issuance functions
* refactor redeem functions
* clean up issue and redeem with eth
* WIP FlashMintDex integration tests
* add test file
* refactor tests wip
* flashmint dex issuance test for 1 component
* univ3 tests pass
* test sushiswap
* wip usdc support
* need to change buycomponents function to use weth only
* return excess input token
* issue from erc20
* internal issue exact set from weth function
* failing redeem for eth test
* redeem for eth test passes
* redeem to usdc test
* issue and redeem from weth
* 1 deploymnent 2 controllers
* update tests for combined params
* cleanup
* finish separating payment info struct
* refactor tests for separate payment struct
* cleanup console logs
* issue legacy set token with eth
* erc20 tests for legacy set token
* tests for redeem legacy set tokens
* add getIssueExactSet functions return input token amounts
* tests for getting eth required
* refactor legacy token tests
* getRedeemExactSetForEth
* use getRedeemExactSet for legacy token test
* test clean up
* getRedeemExactSetForToken wip
* fixes to redeem set token tests
* fix redemption when weth is component
* combine getissueexactset functions
* refactor getIssueExactSet
* refactor getRedeemExactSet
* reorder funcs
add comments
* cleanup
* invalid swap and settoken
* test for revert on invalid issuance
* test for eth received in redemption
* test for min received usdc for redemption
* tests for invalid issuance module and set token
test for revert on eth direct deposit
* test for returning excess input token
* cleanup
* better assignment ordering
* cleanup for pr
* cleanup for pr
* no need to calc exact component prices when issuing/redeeming
* reuse deployed dexadapterv2 library; add natspec to constructor
* refactor getter functions
* add contract-level notice and reference FlashMint SDK
* remove require for overspent eth; enforce no external positions
* Add minimum threshold for returning unused funds when issuing
* add note about not requiring off-chain quotes
* update struct comment1 parent f07f8a5 commit 3847aabCopy full SHA for 3847aab
File tree
Expand file treeCollapse file tree
6 files changed
+1548
-1
lines changedFilter options
- contracts
- exchangeIssuance
- interfaces
- test/integration/ethereum
- utils/deploys
Expand file treeCollapse file tree
6 files changed
+1548
-1
lines changed
0 commit comments