Flashloan
Flashloan tokens from the lending pool.
INIT offers a 0% fee flashloan for users to atomically use the available liquidity from lending pools to use elsewhere. The caller of flash
function must be a contract that implements flashCallback
function.
During the flashloan, the caller receives flashloan from lending pools and can execute arbitrary logic from bytes data
through flashCallback
which is called to the caller by InitCore. At the end of the flashloan, the caller must return the loan to the borrowed lending pools.
It is recommended to check that the sender is the InitCore in the flashCallback
function to prevent unauthorized calls.
Last updated