Skip to content

Commit

Permalink
MEX-507: add pairAddress information for user tokens positions
Browse files Browse the repository at this point in the history
Signed-off-by: Claudiu Lataretu <[email protected]>
  • Loading branch information
claudiulataretu committed Aug 19, 2024
1 parent fc300f8 commit 509357c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/user/models/user.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export enum ContractType {
@ObjectType()
export class UserToken extends EsdtToken {
@Field() valueUSD: string;
@Field({ nullable: true }) pairAddress: string;

constructor(init?: Partial<UserToken>) {
super(init);
Expand Down
1 change: 1 addition & 0 deletions src/modules/user/services/esdt.compute.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class UserEsdtComputeService {
return new UserToken({
...esdtToken,
valueUSD: valueUSD,
pairAddress,
});
}
}
1 change: 1 addition & 0 deletions src/modules/user/services/metaEsdt.compute.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export class UserMetaEsdtComputeService {
return new UserToken({
...esdtToken,
valueUSD: valueUSD,
pairAddress,
});
}

Expand Down

0 comments on commit 509357c

Please sign in to comment.