Submitted by bytes032, also found by MrPotatoMagic, Arz, HE1M, devival, 0xMAKEOUTHILL, Toshii, qpzm, qpzm, a3yip6, Iurii3, LokiThe5th, Cryptor, LaScaloneta, Qeew, Qeew, bart1e, azhar, pep7siup, pep7siup, 0xnacho, 0xnacho, Co0nan, Co0nan, Musaka, hl_, 0xgrbr, 0xkazim, SovaSlava, RedTiger, RedTiger, CrypticShepherd, CrypticShepherd, LuchoLeonel1, Vagner, kutugu, peanuts, smaul, and jnrlouis
The incorrect function call in the code results in the inability to calculate the asset price properly. This will halt all operations associated with the asset pricing, disrupting the functioning of the entire system.
LybraRETHVaults getAssetPrice method currently makes a call to a non-existent function in the rETH contract, getExchangeRatio(). The issue appears to be a misunderstanding or miscommunication, as the rETH contract does not provide a getExchangeRatio() function. This leads to a failure in the asset price calculation.
The correct function to call is getExchangeRate(), which exists in the rETH contract and provides the exchange rate necessary to determine the asset price.
https://etherscan.deth.net/address/0xae78736Cd615f374D3085123A210448E74Fc6393

https://etherscan.deth.net/address/0xae78736Cd615f374D3085123A210448E74Fc6393

Manual review
To resolve this issue, it is recommended to replace the non-existent function call getExchangeRatio() with the correct function getExchangeRate(). This correction will ensure that the getAssetPrice() method retrieves the correct exchange rate from the rETH contract, allowing the system to calculate the asset price accurately.
LybraFinance confirmed
