Post
Share your knowledge.
The implementation of the aTokens issue - continuously increasing the aToken balance in a wallet
Hey everyone, I am currently trying to understand the implementation of the aTokens by reading through notion + github. https://github.com/aave/protocol-v2/blob/ice/mainnet-deployment-03-12-2020/contracts/protocol/tokenization/AToken.sol
What I do not find is the part of continuously increasing the aToken balance in the users wallet. Can someone point me to it?
- Aave Protocol
- aTokens
Answers
1Check the balanceOf
function of the AToken, the scaled balance (the tokens balance at deposit) is multiplied by the normalized income from that particular token reserve. The normalized income grows in every action as time passes if there is Aave flash loans, or repayment income.
Do you know the answer?
Please log in and share it.
Aave is a decentralized non-custodial liquidity protocol where users can participate as depositors or borrowers.
- Error "No matching key" when trying to unstake USDC on BNB chain32
- How to tell the code to, rather than "deposit 1 eth worth of WBTC" deposit "500$ worth of WBTC"?22
- How to interpret configuration field in a response from the getReserveData view function in Aave v2?21
- Getting a return value of '25 - INVALID BURN AMOUNT'21
- Is there any way to stake in the security module on Görli?23