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

Develop Functionality to Supply Collateral and Borrow w/ CompoundV2 #167

Closed
wants to merge 41 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
f8f4b51
Feat/curve position support (#156)
crispymangoes Nov 22, 2023
2672a11
Design, Develop, and Test Convex Adaptors (#155)
0xEinCodes Nov 28, 2023
79cfe21
Add lpt transferrance w/ withdraw()
0xEinCodes Nov 29, 2023
c3cb507
Remove unnecessary LoCs in withdraw()
0xEinCodes Nov 29, 2023
54e839e
Feat/withdraw queue (#158)
crispymangoes Dec 1, 2023
1bdb2d7
Resolve minor fixes from Macro Audit w/ ConvexCurveAdaptor
0xEinCodes Dec 5, 2023
35af89b
Fix/macro audit 14 (#157)
crispymangoes Dec 6, 2023
8b6db19
Make a small simplification refactor
crispymangoes Dec 7, 2023
4b8bc14
Move variable declaration up so all values sit in the same slot
crispymangoes Dec 7, 2023
1524e6c
Add evm version to toml, and remove console import from ConvexCurveAd…
crispymangoes Dec 10, 2023
540dd50
Feat/simple slippage router (#161)
0xEinCodes Dec 12, 2023
79ede3e
Fix/bounding curve pricing (#165)
crispymangoes Dec 12, 2023
d2ef659
Feat/illiquid erc20 (#164)
crispymangoes Dec 12, 2023
ee97878
Add initiator value to finishSolve and greatly simplify SimpleSolver …
crispymangoes Dec 12, 2023
f09f7b1
Add some initial thoughts about compoundV2 adaptor
crispymangoes Dec 13, 2023
a4027ec
Add logic to toggle collateral provision
0xEinCodes Dec 14, 2023
9c154b3
Write drafts of basic & strategist functions
0xEinCodes Dec 15, 2023
5245453
Simplify CToken & Compound interfaces to single files
0xEinCodes Dec 15, 2023
14fe3f2
Write rough HF helper logic
0xEinCodes Dec 15, 2023
89d9f76
reformat & remove some TODOs
0xEinCodes Dec 15, 2023
ea22bf5
Reformat Compound.t.sol to include debtAdaptor
0xEinCodes Dec 16, 2023
3a68771
Write rough testHF logic w/ stubbed console.logs
0xEinCodes Dec 16, 2023
83982f8
Troubleshoot HF tests & setup
0xEinCodes Dec 18, 2023
332bb5d
Prep Option A&B for HF calcs to finish later
0xEinCodes Dec 20, 2023
0ee446e
Feat/multi asset deposit (#178)
crispymangoes Jan 15, 2024
59e723a
Design, Develop, and Test Morpho Blue Adaptors (#154)
0xEinCodes Jan 17, 2024
7754e2c
Feat/separate deposit and multi asset deposit (#179)
crispymangoes Jan 18, 2024
b7004cd
Feat/share ccip bridge (#180)
crispymangoes Jan 23, 2024
9dc82e1
Merge branch 'dev/macro-audit-16' of https://github.com/PeggyJV/cella…
crispymangoes Jan 23, 2024
2c33454
Begin writing unit tests w/ new compv2 feats
0xEinCodes Jan 30, 2024
f21899e
Continue writing compV2 debt tests
0xEinCodes Jan 31, 2024
24a16b6
Resolve most of non-HF & native-asset-related tests
0xEinCodes Feb 1, 2024
032b8e3
Debug HF bugs, compare options A/B in gas & accuracy
0xEinCodes Feb 6, 2024
b962d8b
Double check gas consumptions w/ option B in CTokenAdaptor
0xEinCodes Feb 6, 2024
c277124
Delete CompoundV2HelperLogicVersionB.sol
0xEinCodes Feb 6, 2024
74165c2
Continue resolving unit tests aside
0xEinCodes Feb 7, 2024
4a076b5
Add in liquidSupply check & isLiquid
0xEinCodes Feb 8, 2024
fdfede7
Add isLiquid & reformat tests
0xEinCodes Feb 12, 2024
a26f63d
Resolve non-HF tests
0xEinCodes Feb 13, 2024
8e7e4d6
Temp resolve testBorrowInSameCollateralMarket & testStrategistWithdra…
0xEinCodes Feb 16, 2024
cedfc56
Continue troubleshooting HF tests
0xEinCodes Feb 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
cache/
out/
broadcast/
gnosisTxs/

# Environment variables!
.env
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@
[submodule "lib/pendle-core-v2-public"]
path = lib/pendle-core-v2-public
url = https://github.com/pendle-finance/pendle-core-v2-public
[submodule "lib/ccip"]
path = lib/ccip
url = https://github.com/smartcontractkit/ccip
10 changes: 10 additions & 0 deletions hfCalcMethods_Comparison_OptionA
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CompoundV2AdditionalTests:testAlreadyInMarket(uint256) (runs: 256, μ: 682581, ~: 682706)
CompoundV2AdditionalTests:testDefaultCheckInMarket(uint256) (runs: 256, μ: 411276, ~: 411360)
CompoundV2AdditionalTests:testEnterMarket(uint256) (runs: 256, μ: 604239, ~: 604364)
CompoundV2AdditionalTests:testGAS_Borrow(uint256) (runs: 256, μ: 1256230, ~: 1256363)
CompoundV2AdditionalTests:testGAS_HFRevert(uint256) (runs: 256, μ: 1151126, ~: 1151256)
CompoundV2AdditionalTests:testMultipleRepayments(uint256) (runs: 256, μ: 1703268, ~: 1703396)
CompoundV2AdditionalTests:testRepayingLoans(uint256) (runs: 256, μ: 1445732, ~: 1445870)
CompoundV2AdditionalTests:testTakingOutLoanInUntrackedPositionV2(uint256) (runs: 256, μ: 941820, ~: 941950)
CompoundV2AdditionalTests:testWithdrawEnteredMarketPosition(uint256) (runs: 256, μ: 889067, ~: 889155)
CompoundV2AdditionalTests:testWithdrawableFrom() (gas: 276)
1 change: 1 addition & 0 deletions lib/ccip
Submodule ccip added at c8eed8
3 changes: 2 additions & 1 deletion remappings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ ds-test/=lib/forge-std/lib/ds-test/src/
@chainlink/=lib/chainlink/
@uniswapV3P=lib/v3-periphery/contracts/
@uniswapV3C=lib/v3-core/contracts/
@balancer=lib/balancer-v2-monorepo/pkg
@balancer=lib/balancer-v2-monorepo/pkg
@ccip=lib/ccip/
Loading
Loading