# Aave FlashLoan Fees

**URL:** <https://governance.aave.com/t/aave-flashloan-fees/21149>\
**Category:** Learning Center\
**Created:** [February 20, 2025, 10:32pm UTC](https://governance.aave.com/t/aave-flashloan-fees/21149 "2025-02-20T22:32:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SilentNode](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@SilentNode](https://governance.aave.com/u/SilentNode)\
**Post date:** [February 20, 2025, 10:32pm UTC](https://governance.aave.com/t/aave-flashloan-fees/21149/1 "2025-02-20T22:32:43Z")

</div>

From [Aave v3 Source Code](https://github.com/aave-dao/aave-v3-origin/blob/083bd38a137b42b5df04e22ad4c9e72454365d0d/src/contracts/protocol/pool/PoolStorage.sol#L44) we know that Aave collects FlashLoan Fees from borrowers when they return the loaned amount plus a premium fee at the end of the transaction block. This premium fee consists of a portion sent to the protocol treasury (i.e., `_flashLoanPremiumToProtocol`) and is expressed in bps. By reading the smart contract using json I managed to obtain the current value of `_flashLoanPremiumToProtocol` which is 4 bps (or 0.04%) of the premium total (i.e., `_flashLoanPremiumTotal`), however I am also interested in knowing any historical updates of this value - is there any way which I could obtain this? From Aave documentation we know that `_flashLoanPremiumToProtocol` was initialised at 0, I would therefore like to know the journey between 0 (the starting value) and 4 (the current value) bps.

Also, in the [Aave v2 Source Code](https://github.com/aave/protocol-v2/blob/ce53c4a8c8620125063168620eba0a8a92854eb8/contracts/protocol/lendingpool/LendingPool.sol#L718) there’s only `_flashLoanPremiumTotal`, does it mean that Aave v2 doesn’t allocate any portion of the flashloan fees to the protocol treasury like how v3 does?

Many thanks in advance for advising!
