Skip to content

Commit

Permalink
Merge pull request #193 from persistenceOne/websitev4
Browse files Browse the repository at this point in the history
Websitev4
  • Loading branch information
blackpanther1881 authored Jul 26, 2022
2 parents 1fc7f41 + 690c4d9 commit a25811e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/Containers/Xprt/Opportunities.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ import { percent } from "../../utils/FormatNumber";
import osmo from "../../assets/images1/osmo.svg";
import juno_swap from "../../assets/images1/juno_swap.svg";
import axios from "axios";
let poolURl = process.env.REACT_APP_POOL_DATA_URL

import {
POOL_DATA_URL
} from "../../constants/config";
const Opportunities = () => {
const [xprtOsmo, setXprtOsmo] = useState("");
const [xprtUsdc, setXprtUsdc] = useState("");
const [xprtAtom, setXprtAtom] = useState("");

useEffect(() => {
axios.get(`${poolURl}`)
axios.get(POOL_DATA_URL)
.then(res => {
const poolsData = res.data;
poolsData.map(function(value){
Expand Down Expand Up @@ -139,7 +140,7 @@ const Opportunities = () => {
</div>
</div>
<div className={"col-md-12 text-right datasource"}>
<p className={"text-right"}>Data Source: <a href={'http://imperator.co/'}>Imperator.co
<p className={"text-right"}>Data Source: <a rel="noopener noreferrer" target="_blank" href={'http://imperator.co/'}>Imperator.co
</a></p>

</div>
Expand Down
3 changes: 2 additions & 1 deletion src/constants/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,5 @@ export const TEAM_SIX_TWITTER_URL = 'https://twitter.com/abhitezsingh'
export const TEAM_SIX_LINKEDIN_URL = 'https://www.linkedin.com/in/abhitejsingh23/'
export const TEAM_SEVEN_TWITTER_URL = 'https://twitter.com/PandeyMikhil'
export const TEAM_SEVEN_LINKEDIN_URL = 'https://www.linkedin.com/in/mikhilpandey/'
export const TEAM_EIGHT_LINKEDIN_URL = 'https://www.linkedin.com/in/aditi-maheshwari-a17906107/'
export const TEAM_EIGHT_LINKEDIN_URL = 'https://www.linkedin.com/in/aditi-maheshwari-a17906107/'
export const POOL_DATA_URL = 'https://qchzc6iq5k.execute-api.us-east-2.amazonaws.com/api/pool?returnPeriod=yearly&bondingPeriod=14'

0 comments on commit a25811e

Please sign in to comment.