copy Copy chevron-down
👩💻 DSA SDK chevron-right Connectors Instapool Utilize Instadapp's built-in liquidity to facilitate transactions
This connector can be used to interact with Instadapp's built-in Flashpool.
Instapool, like other flash loans, must be paid back in the same transaction in which they are withdrawn. You can view the current liquidity of the flash pool by utilizing its resolvers .
This connector flash borrows tokens for the duration of the transaction
Copy spells.add({
connector: "instapool",
method: "flashBorrow",
args: [token, amount, getId, setId]
}); The token address to borrow.
The amount of token to borrow.
ID fetches the amount of token to borrow.
ID stores the amount of token borrowed.
This connector pays back the flash borrowed tokens used in same transaction
Copy spells.add({
connector: "instapool",
method: "flashPayback",
args: [token, getId, setId]
}); The token address to payback.
Always set this to 0 ( All Flash Paybacks are paid in are always paid in full)
ID stores the amount of token payed back.
Flash MultiBorrow
This connector Flash borrows multiple tokens for the duration of the transaction
The token addresses to borrow.
The amount of tokens to borrow.
ID fetches the amount of token to borrow.
ID stores the amount of token borrowed.
Flash MultiPayback
This connector pays back the Flash Multi-borrowed tokens used in the same transaction
The token addresses to payback.
Always set this to 0 ( All Flash Paybacks are paid in are always paid in full)
ID stores the amount of token payed back.
Flash PaybackOrigin
This connector returns token liquidity from the InstaPool and transfer 20% of collected fee to origin
The address to transfer 20% of the collected fee.
Get token amount at this ID from `InstaMemory` Contract
Set token amount at this ID in `InstaMemory` Contract.
Flash MultiPaybackOrigin
This connector return multiple token liquidity from InstaPool and transfer 20% of the fee to the origin
The address to transfer 20% of the collected fee
An array of token addresses. (For ETH use 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE)
Get token amount at this ID from `InstaMemory` Contract
Set token amount at this ID in `InstaMemory` Contract
This connector adds a fee amount to the Flashloan borrowed
The address of the token in which flashloan is borrowed.
The amount of flashloan fee to be added.
Get token amount at this ID from `InstaMemory` Contract
Set token amount at this ID in `InstaMemory` Contract.