File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,11 @@ export default function OsmosisClaimPage() {
80
80
}
81
81
82
82
const total_supply =
83
- "https://rest.assetmantle.one /cosmos/bank/v1beta1/supply" ;
83
+ ` ${ process . env . REACT_APP_restAPI } /cosmos/bank/v1beta1/supply/umntl` ;
84
84
const inflation =
85
- "https://rest.assetmantle.one /cosmos/mint/v1beta1/inflation" ;
85
+ ` ${ process . env . REACT_APP_restAPI } /cosmos/mint/v1beta1/inflation` ;
86
86
const bondedAmount =
87
- "https://rest.assetmantle.one /cosmos/staking/v1beta1/pool" ;
87
+ ` ${ process . env . REACT_APP_restAPI } /cosmos/staking/v1beta1/pool` ;
88
88
89
89
function getAPR ( ) {
90
90
return axios
@@ -95,7 +95,7 @@ export default function OsmosisClaimPage() {
95
95
] )
96
96
. then (
97
97
axios . spread ( ( totalSupply , inflation , bondedAmount ) => {
98
- totalSupply = totalSupply . data . supply [ 0 ] . amount ;
98
+ totalSupply = totalSupply . data . amount . amount ;
99
99
inflation = inflation . data . inflation ;
100
100
bondedAmount = bondedAmount . data . pool . bonded_tokens ;
101
101
return ( inflation * totalSupply * 100 ) / bondedAmount ;
You can’t perform that action at this time.
0 commit comments