Skip to content

Commit

Permalink
feat(Token): add apr7d & apr30d
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKozAllB committed Jan 23, 2024
1 parent 705b664 commit d465c2f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/__tests__/utils/calculation/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ describe("Calculation", () => {
poolAddress: "poolAddress",
tokenAddress: "tokenAddress",
apr: 0,
apr7d: 0,
apr30d: 0,
lpRate: 0,
};

Expand Down
2 changes: 2 additions & 0 deletions src/client/core-api/core-api.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export interface TokenDTO {
poolInfo: PoolInfoDTO;
feeShare: string;
apr: number;
apr7d: number;
apr30d: number;
lpRate: number;
}

Expand Down
9 changes: 9 additions & 0 deletions src/tokens-info/tokens-info.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,18 @@ export interface Token {
*/
feeShare: string;
/**
* @Deprecated use {@link apr7d}</br>
* Token APR
*/
apr: number;
/**
* Token APR based on last 7 days
*/
apr7d: number;
/**
* Token APR based on last 30 days
*/
apr30d: number;
/**
* Token LP rate
*/
Expand Down

0 comments on commit d465c2f

Please sign in to comment.