Skip to content

Commit

Permalink
fix: small change
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmikko committed May 3, 2023
1 parent 9f87aaa commit 1b0a38c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/pool/PoolQuotaKeeper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ contract PoolQuotaKeeper is IPoolQuotaKeeper, ACLNonReentrantTrait, ContractsReg
view
returns (uint256 value, uint256 interest)
{
AccountQuota storage q = accountQuotas[creditManager][creditAccount][token];
AccountQuota storage accountQuota = accountQuotas[creditManager][creditAccount][token];

uint96 quoted = q.quota;
uint96 quoted = accountQuota.quota;

if (quoted > 1) {
uint256 quotaValueUSD = IPriceOracleV2(_priceOracle).convertToUSD(quoted, underlying); // F:[CMQ-8]
Expand All @@ -373,7 +373,7 @@ contract PoolQuotaKeeper is IPoolQuotaKeeper, ACLNonReentrantTrait, ContractsReg
if (value > quotaValueUSD) value = quotaValueUSD; // F:[CMQ-8]
}

interest = _computeOutstandingQuotaInterest(quoted, cumulativeIndex(token), q.cumulativeIndexLU); // F:[CMQ-8]
interest = _computeOutstandingQuotaInterest(quoted, cumulativeIndex(token), accountQuota.cumulativeIndexLU); // F:[CMQ-8]
}
}

Expand Down

0 comments on commit 1b0a38c

Please sign in to comment.