Skip to content

Commit

Permalink
camelcase
Browse files Browse the repository at this point in the history
  • Loading branch information
0xripleys committed Aug 7, 2023
1 parent 3ef8c61 commit bf94e5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions liquidator/src/libs/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,14 @@ export const sortBorrows = (borrows: Borrow[]): Borrow[] => {

// use the bytes representation to compare two addresses
export const comparePubkeys = (a: PublicKey, b: PublicKey): number => {
const a_bytes = a.toBytes();
const b_bytes = b.toBytes();
const aBytes = a.toBytes();
const bBytes = b.toBytes();

for (let i = 0; i < 32; i++) {
if (a_bytes[i] < b_bytes[i]) {
if (aBytes[i] < bBytes[i]) {
return -1;
}
if (a_bytes[i] > b_bytes[i]) {
if (aBytes[i] > bBytes[i]) {
return 1;
}
}
Expand Down

0 comments on commit bf94e5a

Please sign in to comment.