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

Curve and Convex adaptors #74

Open
wants to merge 53 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
e7869b2
Convex adaptor initialization
Oct 29, 2022
8a66a48
rename test faucet
Oct 29, 2022
f60172b
Curve3PoolAdaptor
Oct 29, 2022
a282be7
change location of curve 3 pool adaptor
Oct 29, 2022
f362087
add mock tests for curve pool
Oct 29, 2022
2f024d7
new methods and test start
Oct 29, 2022
a9cddbd
Curve3PoolAdaptor balanceOf
federava Oct 29, 2022
9b713cb
Merge branch 'main' of https://github.com/cookiesanddudes/cellar-cont…
federava Oct 29, 2022
e6b4ece
add interface, fix balanceOf()
Oct 29, 2022
3ce7ac8
fix interface
Oct 29, 2022
90a6479
updates on the adaptor
Oct 29, 2022
b006317
fix balance of usdc
Oct 29, 2022
87c91f0
simplify test, allow deposits
Oct 29, 2022
938a96a
failed test
Oct 29, 2022
6805c83
remove 42
Oct 29, 2022
ecc8a76
fix interfaces and test
Oct 29, 2022
e023138
fix: ICurvePool
federava Oct 29, 2022
a9c663e
added assertEq
Oct 29, 2022
c81d814
Merge branch 'main' of github-dude:cookiesanddudes/cellar-contracts
Oct 29, 2022
778b848
added test condition
Oct 29, 2022
e12c57f
remove position in one coin
Oct 29, 2022
c8cefcf
disallow deposits and withdrawals()
Oct 29, 2022
359b187
add close and take
Oct 29, 2022
0f203be
test: withdrawableFrom
federava Oct 29, 2022
375dd3e
add position and take position functions
Oct 29, 2022
f54534b
Merge branch 'main' of github-dude:cookiesanddudes/cellar-contracts
Oct 29, 2022
09228bc
comment unimplemented function
Oct 29, 2022
a97ef86
remove infinite for loop
Oct 29, 2022
7bec56b
test adding and taking from curve
Oct 29, 2022
36e1329
convex setup
Oct 29, 2022
b482e38
update tests
Oct 29, 2022
d9b8c82
Convex strat
Oct 29, 2022
5473a8e
complete IBooster
federava Oct 30, 2022
42304b3
withdrawableFrom
federava Oct 30, 2022
c527277
convex adaptor
Oct 30, 2022
7c1b8e5
NatSpec Curve3PoolAdaptor
federava Oct 30, 2022
c168644
Merge branch 'main' of https://github.com/cookiesanddudes/cellar-cont…
federava Oct 30, 2022
d8af9b7
test: revert Curve3Pool
federava Oct 30, 2022
920f4c8
convex test start
Oct 30, 2022
8989751
Merge branch 'main' of github-dude:cookiesanddudes/cellar-contracts
Oct 30, 2022
cf2788b
add convex test... working
Oct 30, 2022
bba8b2b
add open and close test
Oct 30, 2022
2a655ac
convex tests
Oct 30, 2022
ae3d366
rewards!
Oct 30, 2022
d15ed49
fix comment
Oct 30, 2022
e12ad24
adaptors
Oct 30, 2022
76f4ec4
linting
Oct 30, 2022
f492862
comments
Oct 30, 2022
af3079b
feature: Curve2Pool
federava Oct 30, 2022
ae78a81
Merge branch 'main' of https://github.com/cookiesanddudes/cellar-cont…
federava Oct 30, 2022
ebeb533
add authors
Oct 30, 2022
d5991bc
remove unused variables
Oct 30, 2022
f4d4ff4
final linting
Oct 30, 2022
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
Prev Previous commit
Next Next commit
remove 42
cookiesanddudes committed Oct 29, 2022
commit 6805c83bc6b21b0933966707cb84deb0fb08f804
4 changes: 1 addition & 3 deletions src/modules/adaptors/Curve/Curve3PoolAdaptor.sol
Original file line number Diff line number Diff line change
@@ -109,7 +109,7 @@ contract Curve3PoolAdaptor is BaseAdaptor {
uint256[3] memory amounts,
uint256 minimumMintAmount,
ICurvePool pool
) public returns (uint256){
) public {
ERC20 token0 = ERC20(pool.coins(0));
ERC20 token1 = ERC20(pool.coins(1));
ERC20 token2 = ERC20(pool.coins(2));
@@ -119,8 +119,6 @@ contract Curve3PoolAdaptor is BaseAdaptor {
token2.safeApprove(address(pool), amounts[2]);

pool.add_liquidity(amounts, minimumMintAmount);

return 42;
}

function closePosition(