Skip to content

Commit

Permalink
fix: fix whatChanged() between a UserTrove and a Trove
Browse files Browse the repository at this point in the history
  • Loading branch information
danielattilasimon committed Mar 9, 2021
1 parent 2908a3a commit 63363bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lib-base/src/Trove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ export class Trove {
that: Trove,
borrowingRate: Decimalish = MINIMUM_BORROWING_RATE
): TroveChange<Decimal> | undefined {
if (this.equals(that)) {
if (this.collateral.eq(that.collateral) && this.debt.eq(that.debt)) {
return undefined;
}

Expand Down

0 comments on commit 63363bc

Please sign in to comment.