Premium Distribution

How the 0.09% Flash Loan Premium is Distributed:

  1. Premium Calculation The 0.09% fee is calculated based on the amount borrowed:

premiums[vars.i] = amounts[vars.i].mul(_flashLoanPremiumTotal).div(10000);
  1. Premium is Added to the Liquidity Index _reserves[vars.currentAsset].cumulateToLiquidityIndex() updates the liquidity index for the borrowed asset.

  2. Premium is Sent to the Corresponding zToken Contract The borrowed amount + premium is sent back to the zToken contract (e.g., zZBU for ZBU).

IERC20(vars.currentAsset).safeTransferFrom(
    receiverAddress,
    vars.currentZTokenAddress,
    vars.currentAmountPlusPremium
);
  1. Liquidity Providers Earn More Rewards

    1. The premium increases the exchange rate between zTokens and the underlying asset.

    2. Liquidity providers benefit proportionally based on the amount of zTokens they hold.

Last updated

Was this helpful?