Skip to content

Commit

Permalink
feat: support aqua balance
Browse files Browse the repository at this point in the history
  • Loading branch information
xsteadybcgo committed May 6, 2024
1 parent 8a6f88f commit 8991e49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/puffer/puffPoints.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export class PuffPointsService {
.toNumber(),
}));
}

//get aqua point
public async getAquaPointList(
addresses: string[],
Expand All @@ -355,11 +355,11 @@ export class PuffPointsService {
.toNumber(),
}));
}

public async getPuffElPointsByAddress(
address: string,
): Promise<PufferElPointsByAddress> {
const protocolName = this.poolsName; //"LayerBank";
const protocolName = this.poolsName;
const withdrawTime = Math.floor(
(new Date().getTime() - 7 * 24 * 60 * 60 * 1000) / 1000,
);
Expand Down Expand Up @@ -413,7 +413,7 @@ export class PuffPointsService {
address: string,
date: string,
): Promise<PufferUserBalance> {
const protocolName = ["LayerBank"]; // "Aqua" to be added
const protocolName = this.poolsName; // "Aqua" to be added

const specialDateTime = new Date("2024-05-05 00:00:00").getTime();
const queryDateTime = new Date(date).getTime();
Expand Down Expand Up @@ -522,7 +522,7 @@ export class PuffPointsService {
pagingOption: PagingOptionsDto,
): Promise<PufferElPoints> {
const { limit = 10, page = 1 } = pagingOption;
const protocolName = this.poolsName; //"LayerBank";
const protocolName = this.poolsName;
const withdrawTime = Math.floor(
(new Date().getTime() - 7 * 24 * 60 * 60 * 1000) / 1000,
);
Expand Down

0 comments on commit 8991e49

Please sign in to comment.