discountRate: The final discount rate. It is changed according to the number of user's BiFi tokens(
bifiAmount). The more you have, the higher the discount rate. (maximum
feeRate: Basic rate of BiFi FlashLoan fee
flashloan()function provided by the FlashLoan Contract and implement their tasks in the
executeOperation()function must follow the strict rule of repaying the loan with a fee after the users pursue their needs.
FlashloanReceivercontract with the FlashLoan contract address as an imput value.
Usersends coins equal to FlashLoan Fee to
flashloanfunction of the
FlashLoanReceiverContract calls the
HandlerProxyContract to request execution of flashLoan.
HandlerProxyContract sends tokens to the
FlashLoanReceiverContract equal to the amount of requested FlashLoan.
FlashLoanContract calls the
FlashLoanReceiverContract performs Repay as much as the sum of the
fee, the imput value of step (5).