Open guotie opened 3 years ago
because of in the same block, the time differece is 0, so, can _updateIndexes optimal to following?
function _updateIndexes( DataTypes.ReserveData storage reserve, uint256 scaledVariableDebt, uint256 liquidityIndex, uint256 variableBorrowIndex, uint40 timestamp ) internal returns (uint256, uint256) { if (timestamp >= block.timestamp) { return (reserve.liquidityIndex, reserve.variableBorrowIndex); } .... }
because of in the same block, the time differece is 0, so, can _updateIndexes optimal to following?