Skip to content

Commit

Permalink
fix: remove redundant call to riskEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
r0ohafza committed Oct 18, 2022
1 parent 6a9ec2f commit d9ef131
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/core/AccountManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@ contract AccountManager is ReentrancyGuard, Pausable, IAccountManager {
{
if (registry.LTokenFor(token) == address(0))
revert Errors.LTokenUnavailable();
if (!riskEngine.isBorrowAllowed(account, token, amt))
revert Errors.RiskThresholdBreached();
if (IAccount(account).hasAsset(token) == false)
IAccount(account).addAsset(token);
if (ILToken(registry.LTokenFor(token)).lendTo(account, amt))
Expand Down

0 comments on commit d9ef131

Please sign in to comment.