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

Flashloan util #35

Merged
merged 96 commits into from
Feb 20, 2024
Merged
Changes from 1 commit
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
f1a7471
add prettier:watch npm command
alfulinku Jan 4, 2024
604ba15
add base Account management
alfulinku Jan 4, 2024
2f03034
add canCall functionality to the account factory
alfulinku Jan 5, 2024
c4e393a
use canCall from the factory and add simple withdraw function for any…
alfulinku Jan 5, 2024
2a95241
add simple withdrawEth function to allow any ETH deposited here to be…
alfulinku Jan 5, 2024
d42ea89
only withdraw to owner
alfulinku Jan 5, 2024
fae3143
remove useless canCall function
alfulinku Jan 5, 2024
0e715e9
add basic testing of the account factory
alfulinku Jan 8, 2024
efad90c
more tests for the account factory
alfulinku Jan 8, 2024
93620e9
Create AccountImplementation.t.sol
alfulinku Jan 9, 2024
4606a88
add missing test for init
alfulinku Jan 9, 2024
90313d0
add test for withdraw fail
alfulinku Jan 9, 2024
0db52b9
add natspec
alfulinku Jan 9, 2024
781caf4
add natspect for account factory
alfulinku Jan 9, 2024
b118b33
remove boring batchable to use oz/multicall
alfulinku Jan 11, 2024
bcc547c
implement multicall locally
alfulinku Jan 11, 2024
c5a4d8f
rework AccountImplementation
alfulinku Jan 12, 2024
47b69cf
rewrite natspec
alfulinku Jan 12, 2024
eae99a2
Create MockBalancerVault.sol
alfulinku Jan 12, 2024
92b0c0b
add initiatedByOwnerOrOwner modifier
alfulinku Jan 12, 2024
1378dbb
complete unit test
alfulinku Jan 12, 2024
274f0c3
add flashloan fail test
alfulinku Jan 12, 2024
6e9a2d1
Merge branch 'main' into flashloan-util
alfulinku Jan 15, 2024
3dc26f7
add create balancer weighted pool script
alfulinku Jan 16, 2024
d905489
WIP integration testing
alfulinku Jan 16, 2024
a389df0
use swap on univ2 instead of balancer
alfulinku Jan 17, 2024
d2ff1a7
Update IntegrationTestSepoliaBorrowLeverage.sol
alfulinku Jan 17, 2024
3980245
import TestnetToken from sepolia branch
alfulinku Jan 17, 2024
9e109b8
cleanup
alfulinku Jan 17, 2024
c5faf7f
add borrowOnBehalf on a term
alfulinku Jan 19, 2024
4a05594
wip gatewayV1
alfulinku Jan 22, 2024
7503516
add testBorrowOnBehalfSuccess on lending term
alfulinku Jan 22, 2024
2896eb2
WIP gateway v1
alfulinku Jan 22, 2024
fb68e7f
finish gateway impl
alfulinku Jan 23, 2024
87451ae
add sepolia gateway deploy
alfulinku Jan 23, 2024
d78d38e
various eswak review fixes
alfulinku Jan 23, 2024
fa7a8f3
fix build and tests
alfulinku Jan 23, 2024
16ccc8e
fix getSelector function
alfulinku Jan 24, 2024
e2bece1
fix scripts route
alfulinku Jan 24, 2024
4a84865
remove old unit tests
alfulinku Jan 24, 2024
95dea37
add script SimpleBorrowOnSDAI using the gateway
alfulinku Jan 24, 2024
f4de89a
add gateway calls to the gateway
alfulinku Jan 24, 2024
2b3327b
onboard a new term
alfulinku Jan 24, 2024
99073f2
fix simple borrow sDAI
alfulinku Jan 24, 2024
1f114d5
add missing revert string on the gateway
alfulinku Jan 24, 2024
87fd8f3
Create SimpleBorrowOnSDAIWithLeverage.s.sol
alfulinku Jan 24, 2024
cd334f3
fix missing revert msg
alfulinku Jan 25, 2024
ef87463
fix scripts
alfulinku Jan 25, 2024
96958ee
Create PauseGateway.s.sol
alfulinku Jan 30, 2024
48c3445
Merge branch 'main' into flashloan-util
alfulinku Jan 30, 2024
d6cc848
fix deployment to sepolia
alfulinku Jan 30, 2024
1ace28b
Merge branch 'main' into flashloan-util
alfulinku Jan 30, 2024
52d9c27
Update package.json
alfulinku Jan 30, 2024
f033732
prettier fix
alfulinku Jan 30, 2024
287cf1d
Merge branch 'main' into flashloan-util
alfulinku Jan 31, 2024
b6370ea
wip fix proposal
alfulinku Jan 31, 2024
1efc6d7
remove extract address lib
alfulinku Jan 31, 2024
d5cef97
remove AddressLib
alfulinku Jan 31, 2024
ad78e07
add/update deploy scripts
alfulinku Jan 31, 2024
de863ee
Move rate limit utils to rate-limits folder
eswak Feb 1, 2024
67b3767
Update README.md
eswak Feb 1, 2024
acf223b
Fix forge deal() on ERC20RebaseDistributor
eswak Feb 1, 2024
e5461a6
Fix roles in deployment script
eswak Feb 1, 2024
e2e2da2
Add roles.sepolia.json
eswak Feb 1, 2024
af5230a
Update DeployGatewayV1.s.sol
alfulinku Feb 2, 2024
434bd0d
Fix integration tests
eswak Feb 2, 2024
3036ea3
Merge remote-tracking branch 'origin/flashloan-util' into flashloan-util
eswak Feb 2, 2024
546457c
Remove references to sDAI in integration tests
eswak Feb 2, 2024
1cc5fdd
prettier
alfulinku Feb 2, 2024
bd552ff
clean comments on the gatewayv1
alfulinku Feb 2, 2024
ab9f8d9
Remove callFee reference in readme
eswak Feb 2, 2024
74f6e27
Merge remote-tracking branch 'origin/flashloan-util' into flashloan-util
eswak Feb 2, 2024
2b9a796
add unit test sepolia gateway (vip)
alfulinku Feb 5, 2024
86cac95
add test without permit
alfulinku Feb 5, 2024
53a8b3c
add integ test flashloan gateway
alfulinku Feb 6, 2024
918dba9
fix test:integration npm script to not redeploy by default
alfulinku Feb 6, 2024
ae18765
Fix integration tests (2)
eswak Feb 6, 2024
b480eab
GIP_0: set shorter delegateLockupPeriod on sepolia
eswak Feb 6, 2024
8e6bf70
Merge remote-tracking branch 'origin/flashloan-util' into flashloan-util
eswak Feb 6, 2024
067b289
cleanup console log and prettier:fix
alfulinku Feb 6, 2024
31e5e46
missing console log removal
alfulinku Feb 6, 2024
cbdce78
Fix offboard vote on past votes
eswak Feb 7, 2024
88b31a4
Merge remote-tracking branch 'origin/flashloan-util' into flashloan-util
eswak Feb 7, 2024
95fb584
Add events in LendingTerm for AH & hardCap setters
eswak Feb 8, 2024
3abdae2
Fix 1259 (reorg after lending term factory use)
eswak Feb 8, 2024
d80d089
Add borrowWithBalancerFlashLoan & repayWithBalancerFlashLoan
eswak Feb 9, 2024
207c5c0
Add GatewayV1.bidWithBalancerFlashLoan()
eswak Feb 13, 2024
4b08f49
ProfitManager: handling of creditMultiplier = 0
eswak Feb 14, 2024
aa4cbdf
Cleanup OnboardNewTerm.s.sol & PauseGateway.s.sol
eswak Feb 14, 2024
25ed069
Run prettier:fix
eswak Feb 14, 2024
a09d93c
Add entryPoint/afterEntry modifiers to Gateway
eswak Feb 15, 2024
ee9393a
Fix gateway integration tests
eswak Feb 15, 2024
57bd192
Remove MockExternalContract
eswak Feb 15, 2024
30589f5
GIP_0 coherence on term onboarding
eswak Feb 15, 2024
58efd3e
Increase default auction duration to 2h
eswak Feb 19, 2024
6920e7e
Add unit tests for GatewayV1
eswak Feb 19, 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
Prev Previous commit
Next Next commit
Run prettier:fix
eswak committed Feb 14, 2024
commit 25ed069d4845f331b10abaa444d5cc2d2e4c880e
Loading