Github username: --
Submission hash (on-chain): 0xdd8b44e1ca79e32073cd25eb4ebfbbe7b0f2632587ec730c898465caa571c654
Severity: medium severity
Description:
Summary
Within the getYearnPrice function, the pricePerShare() function of the Yearn finance instance is used to determine the token's price. However, it has been reported that the pricePerShare() function in the VMEXOracle.sol contract of Yearn Finance is deprecated.
Using a deprecated function may lead to incorrect or outdated price calculations. As a result, relying on the pricePerShare() function could produce inaccurate token price values and potentially impact the overall functionality and reliability of the system.
Github username: -- Submission hash (on-chain): 0xdd8b44e1ca79e32073cd25eb4ebfbbe7b0f2632587ec730c898465caa571c654 Severity: medium severity
Description:
Summary
Within the
getYearnPrice
function, thepricePerShare()
function of the Yearn finance instance is used to determine the token's price. However, it has been reported that the pricePerShare() function in the VMEXOracle.sol contract of Yearn Finance is deprecated.Using a deprecated function may lead to incorrect or outdated price calculations. As a result, relying on the
pricePerShare()
function could produce inaccurate token price values and potentially impact the overall functionality and reliability of the system.Code snippet
Recommendation
It is recommended to use
getpricePerFullShare
function https://docs.yearn.finance/developers/v1/interfaces#function-getpriceperfullshare