Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added dynamic yield farming analyzer using publicly available data from cryptocurrency market APIs. solved #164 #165

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
894d472
Create index.html
Harish-2003 Sep 26, 2024
612eb5d
Delete README.md
Harish-2003 Sep 26, 2024
5655509
Create styles.css
Harish-2003 Sep 26, 2024
0f96d7f
Create script.js
Harish-2003 Sep 26, 2024
0b584c2
Adds Symbol Accessibility
OrganicBeetle Sep 28, 2024
ad79b15
Update settings.json
OrganicBeetle Sep 29, 2024
863e093
Delete .vscode/settings.json
OrganicBeetle Sep 29, 2024
f5e621d
Update index.html
OrganicBeetle Sep 29, 2024
bd541d5
Merge pull request #20 from OrganicBeetle/gh-pages
Harish-2003 Sep 29, 2024
5f4c95b
Merge remote-tracking branch 'origin/gh-pages' into gh-pages
Bruhbytes Sep 30, 2024
2537cb9
Enhanced the UI
Bruhbytes Sep 30, 2024
66483ff
Merge pull request #29 from Bruhbytes/gh-pages
Harish-2003 Sep 30, 2024
2dede91
Added dropdown options for crypto currencies in the new UI
Tomkndn Sep 30, 2024
dec949a
Merge pull request #30 from Tomkndn/gh-pages
Harish-2003 Sep 30, 2024
357019f
Improved styles
J-B-Mugundh Oct 1, 2024
d5c37a4
Added media queries for mobile responsiveness
J-B-Mugundh Oct 1, 2024
6b53c2d
Improved the crypto predictor box stylings
J-B-Mugundh Oct 1, 2024
390b67a
Added mobile responsiveness to tagline and footer
J-B-Mugundh Oct 1, 2024
fd33bed
Merge pull request #33 from J-B-Mugundh/gh-pages
Harish-2003 Oct 1, 2024
6170d77
added telegram bot link to website
Oct 2, 2024
46b16dc
added more crypto currencies
Oct 2, 2024
089101c
Merge pull request #38 from IshuSinghSE/gh-pages
Harish-2003 Oct 2, 2024
0c1a3e9
changed the complete ui of the webpage and added a static airdrop sec…
Boobeshkumar56 Oct 2, 2024
4949921
Merge pull request #47 from Boobeshkumar56/gh-pages
Harish-2003 Oct 2, 2024
d31af87
Revert "changed the complete ui of the webpage and added a static air…
Harish-2003 Oct 2, 2024
4a0ae54
Merge pull request #49 from OpenTekHub/revert-47-gh-pages
Harish-2003 Oct 2, 2024
ef6479b
added telegram and github icon for more good apperance
Boobeshkumar56 Oct 3, 2024
23194a3
Merge pull request #54 from Boobeshkumar56/gh-pages
Harish-2003 Oct 3, 2024
70b84da
updated theme toggle with all new themes
STDYGIT Oct 3, 2024
5d97f77
Merge pull request #57 from STDYGIT/gh-pages
Harish-2003 Oct 3, 2024
ac585e2
Add files via upload
anshika-1102 Oct 3, 2024
1a9ff85
Update index.html
anshika-1102 Oct 3, 2024
0533075
Update styles.css
anshika-1102 Oct 3, 2024
7064648
Update script.js
anshika-1102 Oct 3, 2024
c4f0ade
Merge pull request #60 from anshika-1102/gh-pages
Harish-2003 Oct 3, 2024
6bd1b4e
added gsap to animate the website
priyashuu Oct 4, 2024
2928544
Merge branch 'gh-pages' into gh-pages
priyashuu Oct 4, 2024
c98b01d
Revert "Added Navbar and 'About Us' & 'FAQ' sections"
Harish-2003 Oct 4, 2024
b960742
Merge pull request #73 from OpenTekHub/revert-60-gh-pages
Harish-2003 Oct 4, 2024
d672298
Revert "updated theme toggle with all new themes"
Harish-2003 Oct 4, 2024
97b2e1b
Merge pull request #74 from OpenTekHub/revert-57-gh-pages
Harish-2003 Oct 4, 2024
812cdf4
Revert "Revert "updated theme toggle with all new themes""
Harish-2003 Oct 4, 2024
757713c
Merge pull request #75 from OpenTekHub/revert-74-revert-57-gh-pages
Harish-2003 Oct 4, 2024
0bbae2d
Revert "Revert "Added Navbar and 'About Us' & 'FAQ' sections""
Harish-2003 Oct 4, 2024
afddca8
Merge pull request #76 from OpenTekHub/revert-73-revert-60-gh-pages
Harish-2003 Oct 4, 2024
235e537
Merge pull request #77 from priyashuu/gh-pages
Harish-2003 Oct 7, 2024
ccdca76
Update the footer
Suvadip-sana Oct 10, 2024
935854d
Update the footer style
Suvadip-sana Oct 10, 2024
1fc683a
Error fix
Suvadip-sana Oct 10, 2024
9a4377a
change the ui of the navbar
priyashuu Oct 11, 2024
aa8ed01
Merge pull request #121 from Suvadip-sana/gh-pages
Harish-2003 Oct 11, 2024
67cddf3
Merge branch 'gh-pages' into gh-pages
priyashuu Oct 11, 2024
bfa16b7
Updated FAQ enhancements
Vaishh18 Oct 11, 2024
233ec5c
Merge pull request #136 from Vaishh18/feat/faq-ui
Harish-2003 Oct 12, 2024
70656c6
#fixes
priyashuu Oct 12, 2024
337a731
changes
priyashuu Oct 12, 2024
d15f195
#changes
priyashuu Oct 12, 2024
0fe671d
Merge pull request #130 from priyashuu/gh-pages
Harish-2003 Oct 12, 2024
ccb4590
Added dynamic yeild farming calculaor using blockchain
KapuluruBhuvaneswariVspdbct Oct 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5503
}
Binary file added Assets/moon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
208 changes: 208 additions & 0 deletions Assets/smart.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dynamic Yield Farming Analyzer</title>
<style>

body {
background: linear-gradient(135deg, #240b36, #c31432);
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}

.container {
width: 80%;
margin: 0 auto;
padding: 20px;
}

h1 {
text-align: center;
color: #ffbf7f;
}

.search-form {
display: flex;
justify-content: center;
margin-bottom: 20px;
}

.search-form label {
margin-right: 10px;
font-weight: bold;
}

.search-form select {
margin-right: 15px;
}

button {
background-color: #e09be6;
color: white;
padding: 10px 20px;
border: none;
cursor: pointer;
}

button:hover {
background-color: #f34bb0;
}

#results {
margin-top: 20px;
}

table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}

table th, table td {
padding: 15px;
border: 1px solid #ddd;
text-align: center;
color:#7feaff;
}

table th {
background-color: #007BFF;
color: white;
}

table tbody tr:nth-child(even) {
background-color: #df3f3f;
}

#error-message {
color: rgb(250, 250, 250);
text-align: center;
}

.hidden {
display: none;
}
</style>
</head>
<body>

<div class="container">
<h1>Dynamic Yield Farming Analyzer</h1>
<p style="color: rgb(240, 237, 49);">Real-time yield farming opportunities across DeFi platforms</p>

<!-- Search Form -->
<div class="search-form">
<label for="platform" style="color: rgb(49, 192, 240);">Choose a platform:</label>
<select id="platform" name="platform">
<option value="all">All Platforms</option>
<option value="uniswap">Uniswap</option>
<option value="pancakeswap">PancakeSwap</option>
<option value="compound">Compound</option>
<option value="aave">Aave</option>
</select>

<label for="risk" style="color: rgb(92, 206, 238);">Risk Level:</label>
<select id="risk" name="risk">
<option value="all" ">All Risk Levels</option>
<option value="low">Low</option>
<option value="medium">Medium</option>
<option value="high">High</option>
</select>

<button onclick="fetchOpportunities()">Analyze</button>
</div>

<!-- Results Section -->
<div id="results">
<h2 style="color: rgb(231, 192, 150);">Top Yield Farming Opportunities</h2>
<table id="opportunities-table">
<thead>
<tr>
<th>Platform</th>
<th>Token Pair</th>
<th>APY (%)</th>
<th>Liquidity</th>
<th>Risk</th>
</tr>
</thead>
<tbody>
<!-- Dynamic rows will be added here -->
</tbody>
</table>
</div>

<!-- Error Message -->
<div id="error-message" class="hidden">
<p>Failed to fetch data. Please try again later.</p>
</div>
</div>

<script>
// CoinGecko API URL for market data
const apiUrl = "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&per_page=10&page=1&sparkline=false";

// Function to fetch and display the yield farming opportunities
async function fetchOpportunities() {
const platformFilter = document.getElementById('platform').value;
const riskFilter = document.getElementById('risk').value;

try {
const response = await fetch(apiUrl); // Fetching data from CoinGecko API
const yieldOpportunities = await response.json(); // Parsing JSON data

// Here, you would filter the results based on your criteria.
// For demo purposes, let's assume the response provides enough data.
const filteredOpportunities = yieldOpportunities.map(opportunity => ({
platform: "CoinGecko", // Placeholder since CoinGecko doesn't specify platforms
tokenPair: opportunity.name, // Using coin name as token pair for demonstration
apy: (Math.random() * 30).toFixed(2), // Random APY for demonstration
liquidity: `$${(Math.random() * 1000000).toFixed(2)}`, // Random liquidity for demonstration
risk: Math.random() < 0.5 ? "Medium" : "High" // Random risk level for demonstration
}));

displayOpportunities(filteredOpportunities);
} catch (error) {
console.error("Failed to fetch data:", error);
document.getElementById("error-message").classList.remove("hidden");
}
}

// Function to display opportunities in the table
function displayOpportunities(opportunities) {
const tableBody = document.querySelector("#opportunities-table tbody");
tableBody.innerHTML = ""; // Clear previous results

if (opportunities.length === 0) {
document.getElementById("error-message").classList.remove("hidden");
return;
}

document.getElementById("error-message").classList.add("hidden");

opportunities.forEach(opportunity => {
const row = document.createElement("tr");

row.innerHTML = `
<td>${opportunity.platform}</td>
<td>${opportunity.tokenPair}</td>
<td>${opportunity.apy}%</td>
<td>${opportunity.liquidity}</td>
<td>${opportunity.risk}</td>
`;

tableBody.appendChild(row);
});
}

// Display all opportunities by default when the page loads
window.onload = function() {
fetchOpportunities(); // Fetch and display opportunities on load
};
</script>

</body>
</html>
Binary file added Assets/sun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 0 additions & 60 deletions CODE_OF_CONDUCT.md

This file was deleted.

21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

31 changes: 0 additions & 31 deletions README.md

This file was deleted.

Loading