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

Self route flashloan #70

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
1338e6f
update transfer fee
KaymasJain May 6, 2022
0f4be40
added event
KaymasJain May 6, 2022
e0996b5
Implementations created
shriyatyagii May 9, 2022
e88ad6a
flashloan func added in implementations
shriyatyagii May 10, 2022
0c5c158
changed file names
shriyatyagii May 10, 2022
c7d3a69
minor update
shriyatyagii May 10, 2022
2ba7c66
added common helper and interface
shriyatyagii May 13, 2022
c549c3a
Added Implementation proxy - Arbitrum
shriyatyagii May 14, 2022
4c64449
Added implementation proxy - Avalanche
shriyatyagii May 14, 2022
2ab8019
Added implementation proxy - Optimism
shriyatyagii May 15, 2022
907b1ec
Added implementation proxy - Polygon
shriyatyagii May 15, 2022
cd8a484
code refactored
shriyatyagii May 15, 2022
7c7e650
arbitrum updates + testcases
shriyatyagii May 19, 2022
4c232b1
added sortTokens for uniswap key sorting
shriyatyagii May 20, 2022
57b3aca
minor updates + optimism testcases
shriyatyagii May 20, 2022
8ddef00
bubbleSort added in new implementations
shriyatyagii May 20, 2022
6cd9969
minor updates on all chains
shriyatyagii May 20, 2022
76ab257
polygon testcase + polygon updates
shriyatyagii May 20, 2022
cc7ca71
Avalanche testcases + new updates
shriyatyagii May 20, 2022
3d93a57
minor updates
shriyatyagii May 20, 2022
1277d61
Uni v3 flashloan added
shriyatyagii May 25, 2022
f6b80f4
testcases added
shriyatyagii May 25, 2022
baccd8c
self-route set up
shriyatyagii May 27, 2022
78327ea
testcases added
shriyatyagii May 27, 2022
2afdaa0
added route 9 - polygon
shriyatyagii May 29, 2022
a92298f
testcases added - polygon
shriyatyagii May 29, 2022
4d72798
minor updates
shriyatyagii May 30, 2022
e110eb3
route 9 added- Arbitrum
shriyatyagii May 30, 2022
8e8ec28
testcases added - arbitrum
shriyatyagii May 30, 2022
3d13e8a
route 9 added - Avalanche
shriyatyagii May 30, 2022
e506911
testcases added - Avalanche
shriyatyagii May 30, 2022
66a2a5d
route 9 added - optimism
shriyatyagii May 30, 2022
153a7b0
testcases added - optimism
shriyatyagii May 30, 2022
f0e5ac1
updated changes - mainnet
shriyatyagii May 31, 2022
fba997d
updated testcases -mainnet
shriyatyagii May 31, 2022
bf09018
minor updates
shriyatyagii May 31, 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
updated testcases -mainnet
  • Loading branch information
shriyatyagii committed May 31, 2022
commit fba997dd0d9e79cd56a187f3ab47b16adac8c085
16 changes: 16 additions & 0 deletions test/mainnet/updatedFlash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,22 @@ describe('FlashLoan', function () {
method: 'hardhat_stopImpersonatingAccount',
params: [ACC_WETH],
})
await hre.network.provider.send('hardhat_setBalance', [
ACC_DAI,
ethers.utils.parseEther('10.0').toHexString(),
])
await hre.network.provider.request({
method: 'hardhat_impersonateAccount',
params: [ACC_DAI],
})

const signer_dai = await ethers.getSigner(ACC_DAI)
await token_dai.connect(signer_dai).transfer(proxy.address, Dai)

await hre.network.provider.request({
method: 'hardhat_stopImpersonatingAccount',
params: [ACC_DAI],
})
})

it('Should be able to take flashLoan of multiple tokens together from FLA', async function () {
Expand Down