Skip to content

Commit

Permalink
added poolapy
Browse files Browse the repository at this point in the history
  • Loading branch information
klk1236 committed Jul 26, 2022
1 parent 5546a9b commit 690c4d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
REACT_APP_MATIC_API_KEY: ${{ secrets.MATIC_STATUS_API }}
REACT_APP_EXPLORER_URL: ${{ secrets.CORE_EXPLORER }}
REACT_APP_BLOCK_EXPLORER_URL: ${{ secrets.CRUST_EXPLORER }}
REACT_APP_POOL_DATA_URL: ${{ secrets.POOL_DATA_APY }}
- name: Publish
uses: cloudflare/wrangler-action@1.3.0
with:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
REACT_APP_MATIC_API_KEY: ${{ secrets.MATIC_STATUS_API }}
REACT_APP_EXPLORER_URL: ${{ secrets.CORE_EXPLORER }}
REACT_APP_BLOCK_EXPLORER_URL: ${{ secrets.CRUST_EXPLORER }}
REACT_APP_POOL_DATA_URL: ${{ secrets.POOL_DATA_APY }}
- name: Publish
uses: cloudflare/wrangler-action@1.3.0
with:
Expand Down
7 changes: 4 additions & 3 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
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 690c4d9

Please sign in to comment.