diff --git a/data/datasource.js b/data/datasource.js index 82a83e9c..3f3a6ed8 100644 --- a/data/datasource.js +++ b/data/datasource.js @@ -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, diff --git a/hooks/useTokenDetails.ts b/hooks/useTokenDetails.ts index 9ce2462a..6a9df0a4 100644 --- a/hooks/useTokenDetails.ts +++ b/hooks/useTokenDetails.ts @@ -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[] = [];