AuthInternals
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
Name | Type | Description |
---|---|---|
rataDataV1Params_ | RateDataV1Params | rata data params for a given token |
Returns
Name | Type | Description |
---|---|---|
rateData_ | uint256 | packed 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
Name | Type | Description |
---|---|---|
rataDataV2Params_ | RateDataV2Params | rata data params for a given token |
Returns
Name | Type | Description |
---|---|---|
rateData_ | uint256 | packed 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_);