Commit Graph

128 Commits

Author SHA1 Message Date
czanella
30bd0c2a5c Fix some assertions in integration test
The foundation is:
marginal price > executed price > price after swap.

And this check is verified for multiple amounts
2024-08-03 10:54:25 +01:00
czanella
9411fc2b67 Discount fees from USV2 getPriceAt logic
add marginal price capability
2024-08-03 10:53:25 +01:00
kayibal
ac22ed583f fix(balancer): Support ComposableStablePools on SwapAdapter.
Add support for CSP pools. The main issue here was that Limits for BPT tokens would be too high since the pool has the complete supply of the token preminted.

Not quite sure if the limit for buying the BPT token is set correctly but I guess you can try to buy the whole supply.
2024-07-29 15:25:30 +01:00
czanella
1f509897ef Make balance hard limits work correctly. Add back capability 2024-07-19 10:27:36 +01:00
czanella
260fd7fbb5 Address PR review 2024-07-19 09:16:42 +01:00
czanella
772566c590 Add marginal price capability and update integration tests
Balancer now passes the test
Some misc aesthetics
2024-07-18 16:12:50 +01:00
czanella
5831aecc96 Implement adapter integration test and use it on uniswap and balancer 2024-07-17 15:03:31 +01:00
Florian Pellissier
9e851534ce fix(script): Fix build runtime script to handle empty constructor 2024-07-17 10:37:16 +02:00
Louise Poole
cf7516df25 Format 2024-04-15 17:42:30 +01:00
Louise Poole
45dc7aa457 Fix prices function 2024-04-15 17:41:16 +01:00
Louise Poole
306293764c Fix tests 2024-04-15 16:56:19 +01:00
Louise Poole
98857be305 Fix balancer price and capabilities 2024-04-15 16:18:48 +01:00
pistomat
1b2e183a85 Remove test console logs 2024-04-13 11:17:03 +00:00
pistomat
54e4c9f92e chore: forge fmt 2024-04-13 11:11:34 +00:00
pistomat
1738ca7bd2 Fix merge issues 2024-04-13 11:11:20 +00:00
pistomat
9ba2286826 Merge pull request #23 from propeller-heads/mp/formatting
Fix the format check CI
2024-04-13 10:12:41 +00:00
pistomat
c49d78a2d9 Merge pull request #12 from propeller-heads/feature/etherfi-adapter
Etherfi adapter
2024-04-13 10:12:13 +00:00
pistomat
fbc2b004e5 Merge pull request #24 from propeller-heads/mp/use-safe-erc20
Remove IERC20 from ISwapAdapter and use SafeERC20 for IERC20
2024-04-13 10:11:46 +00:00
domenicodev
0ae7fd2ed0 updated manifest 2024-04-05 17:56:43 +02:00
domenicodev
21a2ecac28 fix: Review Fixes 2024-04-05 17:53:50 +02:00
pistomat
6133e950ca Merge pull request #20 from propeller-heads/feature/angle-adapter
Angle Adapter
2024-03-28 15:05:31 +01:00
Ale personal
5ce93956ff improve: Add docstring to the swap and price functions of Angle 2024-03-27 17:09:15 +01:00
Ale personal
f2afca9b28 fix: Update manifest of Angle 2024-03-27 16:58:24 +01:00
Ale personal
17954c3ffe fix: Change output number of Angle capabilities from 3 to 2 2024-03-27 15:33:40 +01:00
Alessandro Bergamaschi
113afd04fb Update evm/src/angle/AngleAdapter.sol
Co-authored-by: pistomat <pistomat@users.noreply.github.com>
2024-03-27 15:28:47 +01:00
Alessandro Bergamaschi
115c7c26cc Update evm/src/angle/AngleAdapter.sol
Co-authored-by: pistomat <pistomat@users.noreply.github.com>
2024-03-27 15:28:34 +01:00
Ale personal
81106d75f5 improve: Optimize sell function of Angle adapter 2024-03-27 15:24:15 +01:00
Alessandro Bergamaschi
2d21f988dd Update evm/src/angle/AngleAdapter.sol
Co-authored-by: pistomat <pistomat@users.noreply.github.com>
2024-03-27 15:09:58 +01:00
Ale personal
77843d0695 fix: Update manifest of Angle 2024-03-27 15:08:24 +01:00
Ale personal
045fa1cc0d improve: Change ITransmuter from abstract contract to interface 2024-03-27 14:59:07 +01:00
pistomat
dfa731a93d Remove IERC20 from ISwapAdapter and use SafeERC20 for IERC20 2024-03-27 13:14:24 +01:00
pistomat
66e25d1a09 fix the format check CI 2024-03-27 11:17:12 +01:00
pistomat
87c0c8baba chore: forge fmt 2024-03-27 10:43:02 +01:00
pistomat
3dc290c3df Formatting 2024-03-27 10:31:00 +01:00
Ale personal
bce771b253 Merge branch 'main' into feature/angle-adapter 2024-03-16 19:47:04 +01:00
Ale personal
511ca59f59 feat: Improve adapter and tests 2024-03-16 19:45:15 +01:00
domenicodev
2a6093a994 fix: Review fixes and improvements 2024-03-06 18:17:56 +01:00
domenicodev
45f8aa1268 chore: Changed approve to safeIncreaseAllowance 2024-03-04 10:11:15 +01:00
domenicodev
3fabb48805 feat: Finalized tests 2024-03-04 10:10:23 +01:00
domenicodev
9deddb5241 feat: Finalized tests 2024-03-01 19:02:00 +01:00
domenicodev
57dc954f0c fix: Fixed getLimits and improved swap 2024-03-01 16:23:56 +01:00
domenicodev
24682409c4 fix: Fixed swap function and initial tests 2024-02-29 18:08:42 +01:00
domenicodev
1064fbf7eb feat: Implemented swap 2024-02-28 16:32:37 +01:00
domenicodev
08917023e0 feat: Implemented getLimits 2024-02-28 16:31:28 +01:00
domenicodev
6cd57ebaf4 feat: Implemented price 2024-02-28 12:38:59 +01:00
domenicodev
0f3fe80b00 feat: Implemented internal swap functions and getAmountIn 2024-02-28 12:07:57 +01:00
domenicodev
61d4c4eb9f feat: Implemented helper functions and missing constants 2024-02-27 12:11:04 +01:00
domenicodev
d4e9e213ae feat: Implemented getPoolIds 2024-02-27 11:43:26 +01:00
domenicodev
de4c816570 feat: Implemented getTokens 2024-02-27 11:42:21 +01:00
domenicodev
76bc1f58ac feat: Initial Setup 2024-02-27 11:40:56 +01:00