Assessment reports>Suilend>Threat Model>Function update_price

Function update_price

This function is intended to be called from the lending market to refresh the price. The function checks that the price_info object being passed in is of the right type, so it is not possible to pass in the price info object of another asset to manipulate the price. The function updates the saved prices and the last updated timestamp on the reserve object.

Zellic © 2025Back to top ↑