Skip to content

Commit

Permalink
fixed microcredit.initv2
Browse files Browse the repository at this point in the history
  • Loading branch information
dumedco committed Nov 17, 2023
1 parent f4800bd commit c77b351
Show file tree
Hide file tree
Showing 3 changed files with 547 additions and 15 deletions.
2 changes: 1 addition & 1 deletion contracts/microcredit/MicrocreditImplementation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ contract MicrocreditImplementation is
uint256 _loanId;

_to = _to < _usersLength ? _to : _usersLength;
for (_userId = _from; _userId < _to; _userId++) {
for (_userId = _from; _userId <= _to; _userId++) {
for (_loanId = 0; _loanId < _users[_userId].loansLength; _loanId++) {
_users[_userId].loans[_loanId].tokenAddress = address(cUSD);
_users[_userId].loans[_loanId].tokenAmountBorrowed = _users[_userId].loans[_loanId].amountBorrowed;
Expand Down
28 changes: 14 additions & 14 deletions deployments/mainnet/MicrocreditImplementation.json

Large diffs are not rendered by default.

Loading

0 comments on commit c77b351

Please sign in to comment.