Skip to content

Commit

Permalink
fix: filter out aqua vault address
Browse files Browse the repository at this point in the history
  • Loading branch information
xsteadybcgo committed Oct 23, 2024
1 parent e75244c commit 8ef735f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/positions/positions.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ export class PositionsController {
const liquidityPosition = position.liquidityPositions.reduce(
(acc, cur) =>
acc +
(BigInt(cur.supplied) * BigInt(cur.balance)) /
BigInt(cur.totalSupplied),
(BigInt(cur.supplied) * BigInt(cur.pool.balance)) /
BigInt(cur.pool.totalSupplied),
BigInt(0),
);
const balancePosition = position.balances[0]
Expand Down
1 change: 1 addition & 0 deletions src/positions/positions.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export class PositionsService {
where: {
and: [
{
id_not_in: ["0x4ac97e2727b0e92ae32f5796b97b7f98dc47f059"]
valid: true
},
{
Expand Down

0 comments on commit 8ef735f

Please sign in to comment.