refactor: changed _mintToTreasury() function name

This commit is contained in:
The3D 2021-05-24 19:39:13 +02:00
parent 7395363e59
commit 26a09f2ba8

View File

@ -123,7 +123,7 @@ library ReserveLogic {
lastUpdatedTimestamp
);
_mintToTreasury(
_accrueToTreasury(
reserve,
scaledVariableDebt,
previousVariableBorrowIndex,
@ -271,7 +271,7 @@ library ReserveLogic {
* @param newLiquidityIndex The new liquidity index
* @param newVariableBorrowIndex The variable borrow index after the last accumulation of the interest
**/
function _mintToTreasury(
function _accrueToTreasury(
DataTypes.ReserveData storage reserve,
uint256 scaledVariableDebt,
uint256 previousVariableBorrowIndex,