AuthInternals

Git Source

Inherits:Error, CommonHelpers, Events

Functions

_computeRateDataPackedV1

computes rata data packed uint256 for version 1 rate input params telling desired values at different uzilitation points (0%, kink, 100%)

function _computeRateDataPackedV1(RateDataV1Params memory rataDataV1Params_)
    internal
    pure
    returns (uint256 rateData_);

Parameters

NameTypeDescription
rataDataV1Params_RateDataV1Paramsrata data params for a given token

Returns

NameTypeDescription
rateData_uint256packed uint256 rate data

_computeRateDataPackedV2

computes rata data packed uint256 for rate version 2 input params telling desired values at different uzilitation points (0%, kink1, kink2, 100%)

function _computeRateDataPackedV2(RateDataV2Params memory rataDataV2Params_)
    internal
    pure
    returns (uint256 rateData_);

Parameters

NameTypeDescription
rataDataV2Params_RateDataV2Paramsrata data params for a given token

Returns

NameTypeDescription
rateData_uint256packed uint256 rate data

_updateExchangePrices

updates the exchange prices in storage for token_ and returns supplyExchangePrice_ and borrowExchangePrice_. Recommended to use only in a method that later calls _updateExchangePricesAndRates().

function _updateExchangePrices(address token_)
    internal
    returns (uint256 supplyExchangePrice_, uint256 borrowExchangePrice_);

_updateExchangePricesAndRates

updates the exchange prices + rates in storage for token_ and returns supplyExchangePrice_ and borrowExchangePrice_

function _updateExchangePricesAndRates(address token_)
    internal
    returns (uint256 supplyExchangePrice_, uint256 borrowExchangePrice_);