Skip to content

HelpersLiquidate ​

Git Source

Inherits:Helpers

Fluid vault protocol helper methods. Mostly used for operate() and liquidate() methods of CoreModule.

Functions ​

updateExchangePricesOnStorage ​

note admin module is also calling this function self call

updating exchange price on storage. Only need to update on storage when changing supply or borrow magnifier

solidity
function updateExchangePricesOnStorage()
    public
    returns (
        uint256 liqSupplyExPrice_,
        uint256 liqBorrowExPrice_,
        uint256 vaultSupplyExPrice_,
        uint256 vaultBorrowExPrice_
    );

constructor ​

solidity
constructor(ConstantViews memory constants_) Helpers(constants_);