Created
July 9, 2020 16:44
-
-
Save Sowmayjain/95da777f8f75797f8a9e903fdbb76282 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let daiAddress = dsa.tokens.info.dai.address; | |
let flashloanAmount = "1000000000000000000000000"; | |
let spells = dsa.Spell(); | |
spells.add({ | |
connector: "instapool", | |
method: "flashBorrow", | |
args: [daiAddress, flashloanAmount, 0, 0] | |
}); | |
spells.add({ | |
connector: "instapool", | |
method: "flashPayback", | |
args: [daiAddress, 0, 0] | |
}); | |
dsa.cast(spells); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment