flashLoan
function in the pool contract .flashLoan
function is called with data
data that is not empty, the contract calls the DVMFlashLoanCall
or DPPFlashLoanCall
method (corresponding to public and private pools) passed by the applicant into the assetTo contract address.DVMFlashLoanCall
or DPPFlashLoanCall
is executed, the tokens will be returned and the contract will calculate if the pool is losing money, and if it is losing money, it will be traded out directly.IDODOCallee
interface.