Skip to content

Commit

Permalink
getDebtMultiplier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
enkogu committed Dec 20, 2018
1 parent acac231 commit 6f7d7f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/WeiTable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ contract WeiTable is IWeiReceiver, Ownable {
return (e.balanceOnMomentReceived/e.totalWeiNeeded) + 1;
}
} else if((e.isPeriodic) && (e.isSlidingAmount)) {
return 1 + ((block.timestamp - e.momentReceived) / (e.periodHours * 3600 * 1000));
return 1 + ((block.timestamp - e.momentCreated) / (e.periodHours * 3600 * 1000));
} else {
return 1;
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/ether/WeiExpense.sol
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ contract WeiExpense is IWeiReceiver, IDestination, Ownable {
return (balanceAtMomentReceived / totalWeiNeed) + 1;
}
} else if((isPeriodic) && (isSlidingAmount)) {
return 1 + ((block.timestamp - momentReceived) / (periodHours * 3600 * 1000));
return 1 + ((block.timestamp - momentCreated) / (periodHours * 3600 * 1000));
}else {
return 1;
}
Expand Down

0 comments on commit 6f7d7f1

Please sign in to comment.