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: FlashMintDex #181

Merged
merged 61 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
263d307
swap data instead of component quotes
edkim Jul 24, 2024
6aaaa31
stack still too deep
edkim Jul 24, 2024
34583af
refactor issuance functions
edkim Jul 24, 2024
63295ff
refactor redeem functions
edkim Jul 24, 2024
8c8f6b1
clean up issue and redeem with eth
edkim Jul 24, 2024
a1c7f3e
WIP FlashMintDex integration tests
edkim Jul 25, 2024
c111735
add test file
edkim Jul 26, 2024
aa2f5ad
refactor tests wip
edkim Jul 26, 2024
70a8915
flashmint dex issuance test for 1 component
edkim Jul 26, 2024
06beea4
univ3 tests pass
edkim Jul 26, 2024
71af8c0
test sushiswap
edkim Jul 29, 2024
b038f67
wip usdc support
edkim Jul 29, 2024
a8783e7
need to change buycomponents function to use weth only
edkim Jul 29, 2024
e35ba96
return excess input token
edkim Jul 29, 2024
5d7af6c
issue from erc20
edkim Jul 30, 2024
4735018
internal issue exact set from weth function
edkim Jul 30, 2024
8836faa
failing redeem for eth test
edkim Jul 30, 2024
8d2ce4c
redeem for eth test passes
edkim Jul 30, 2024
7b889e2
redeem to usdc test
edkim Jul 31, 2024
59d4412
issue and redeem from weth
edkim Jul 31, 2024
e5f0e74
1 deploymnent 2 controllers
edkim Aug 2, 2024
dd16c56
update tests for combined params
edkim Aug 2, 2024
bd749d2
cleanup
edkim Aug 2, 2024
ce837f9
finish separating payment info struct
edkim Aug 2, 2024
6e2a27a
refactor tests for separate payment struct
edkim Aug 2, 2024
c646fca
cleanup console logs
edkim Aug 2, 2024
fb38aeb
issue legacy set token with eth
edkim Aug 5, 2024
65d5ab3
erc20 tests for legacy set token
edkim Aug 6, 2024
79b5fe7
tests for redeem legacy set tokens
edkim Aug 6, 2024
a307e11
add getIssueExactSet functions return input token amounts
edkim Aug 6, 2024
59ee2a2
tests for getting eth required
edkim Aug 7, 2024
b1bc297
refactor legacy token tests
edkim Aug 7, 2024
f6d0845
getRedeemExactSetForEth
edkim Aug 7, 2024
55b58c7
use getRedeemExactSet for legacy token test
edkim Aug 8, 2024
ad2e466
test clean up
edkim Aug 8, 2024
b0d5d88
getRedeemExactSetForToken wip
edkim Aug 8, 2024
71f661a
fixes to redeem set token tests
edkim Aug 8, 2024
cafd234
fix redemption when weth is component
edkim Aug 8, 2024
8302f27
combine getissueexactset functions
edkim Aug 8, 2024
2aea7f8
refactor getIssueExactSet
edkim Aug 9, 2024
72bfb6e
refactor getRedeemExactSet
edkim Aug 10, 2024
79dd921
reorder funcs
edkim Aug 10, 2024
ed4ff09
cleanup
edkim Aug 12, 2024
a161fbb
invalid swap and settoken
edkim Aug 12, 2024
2a50c86
test for revert on invalid issuance
edkim Aug 12, 2024
63102de
test for eth received in redemption
edkim Aug 12, 2024
fb1b5d7
test for min received usdc for redemption
edkim Aug 12, 2024
266aed9
tests for invalid issuance module and set token
edkim Aug 13, 2024
8416908
test for returning excess input token
edkim Aug 13, 2024
294842b
cleanup
edkim Aug 13, 2024
dec07ea
better assignment ordering
edkim Aug 13, 2024
4b38df6
cleanup for pr
edkim Aug 13, 2024
c90f6ea
cleanup for pr
edkim Aug 13, 2024
8963206
no need to calc exact component prices when issuing/redeeming
edkim Aug 15, 2024
a40e46a
reuse deployed dexadapterv2 library; add natspec to constructor
edkim Aug 19, 2024
9b1708b
refactor getter functions
edkim Aug 19, 2024
562f2d6
add contract-level notice and reference FlashMint SDK
edkim Aug 19, 2024
dc7a943
remove require for overspent eth; enforce no external positions
edkim Aug 19, 2024
7b4605b
Add minimum threshold for returning unused funds when issuing
edkim Aug 20, 2024
0440755
add note about not requiring off-chain quotes
edkim Aug 21, 2024
de26022
update struct comment
edkim Aug 21, 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
Loading
Loading