Skip to content

Commit

Permalink
Merge pull request #11 from burrowHQ/token-charts
Browse files Browse the repository at this point in the history
Token charts
  • Loading branch information
yuhochu authored Oct 23, 2023
2 parents 83baa72 + 836337a commit 1dd9e78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions data/datasource.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ class DataSource {
);
}

getInterestRate() {
getInterestRate(tokenId) {
return this.callAPI(
`/burrow/get_token_interest_rate/usn`,
`/burrow/get_token_interest_rate/${tokenId}`,
"GET",
null,
null,
Expand Down
2 changes: 1 addition & 1 deletion hooks/useTokenDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const useTokenDetails = () => {
try {
const [tokenDetailsRes, interestRateRes] = await Promise.allSettled([
Datasource.shared.getTokenDetails(tokenId, period),
Datasource.shared.getInterestRate(),
Datasource.shared.getInterestRate(tokenId),
]);

let tokenDetails: any[] = [];
Expand Down

0 comments on commit 1dd9e78

Please sign in to comment.