Skip to content

Commit ccfc76a

Browse files
authored
fixed APR issue (#127)
1 parent 9c9d3f6 commit ccfc76a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pages/claim/OsmosisClaimPage.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ export default function OsmosisClaimPage() {
8080
}
8181

8282
const total_supply =
83-
"https://rest.assetmantle.one/cosmos/bank/v1beta1/supply";
83+
`${process.env.REACT_APP_restAPI}/cosmos/bank/v1beta1/supply/umntl`;
8484
const inflation =
85-
"https://rest.assetmantle.one/cosmos/mint/v1beta1/inflation";
85+
`${process.env.REACT_APP_restAPI}/cosmos/mint/v1beta1/inflation`;
8686
const bondedAmount =
87-
"https://rest.assetmantle.one/cosmos/staking/v1beta1/pool";
87+
`${process.env.REACT_APP_restAPI}/cosmos/staking/v1beta1/pool`;
8888

8989
function getAPR() {
9090
return axios
@@ -95,7 +95,7 @@ export default function OsmosisClaimPage() {
9595
])
9696
.then(
9797
axios.spread((totalSupply, inflation, bondedAmount) => {
98-
totalSupply = totalSupply.data.supply[0].amount;
98+
totalSupply = totalSupply.data.amount.amount;
9999
inflation = inflation.data.inflation;
100100
bondedAmount = bondedAmount.data.pool.bonded_tokens;
101101
return (inflation * totalSupply * 100) / bondedAmount;

0 commit comments

Comments
 (0)