Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
defi-yield
Advanced tools
Readme
All Solana DeFi yields in one package.
Currently supported protocols:
All data is fetched directly from the Solana blockchain, using the native protocol SDK when available. This project does not use screen-scraping or 3rd party APIs. To prevent rate-limiting, this project attempts to use the officially supported RPCs for each project.
❤️ Inspired by defi-yield-ts
npm i defi-yield
import { fetchAll } from "defi-yield"
const rates = await fetchAll()
import { fetch } from "defi-yield"
const apricot = await fetch("apricot")
const francium = await fetch("francium")
const jet = await fetch("jet")
const mango = await fetch("mango")
const port = await fetch("port")
const solend = await fetch("solend")
{
"protocol": "apricot",
"rates": [
{
"asset": "APT",
"mint": "APTtJyaRX5yGTsJU522N4VYWg3vCvSb65eam5GrPT5Rt",
"deposit": "0.00007526233907010839",
"borrow": "0.02095090790169926"
},
{
"asset": "BTC",
"mint": "9n4nbM75f5Ui33ZbPYXn59EwSgE8CGsHtAeTH5YFeJ9E",
"deposit": "0.0002670346198465918",
"borrow": "0.023064671242142846"
},
{
"asset": "ETH",
"mint": "2FPyTwcZLUg1MDrwsyoP4D6s1tM7hAkHYRjkNb5w6Pxk",
"deposit": "0.0018352224425736245",
"borrow": "0.034203185244413"
},
{
"asset": "FTT",
"mint": "AGFEad2et2ZJif9jaGpdMixQqvW5i81aBdvKe7PHNfz3",
"deposit": "0",
"borrow": "0.02"
},
{
"asset": "mSOL",
"mint": "mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So",
"deposit": "0.0019126422121402238",
"borrow": "0.03462290893436556"
},
{
"asset": "ORCA",
"mint": "orcaEKTdK7LKz57vaAYr9QeNsVEPfiu6QeMU1kektZE",
"deposit": "0.14365953720529293",
"borrow": "0.21103569917529869"
},
{
"asset": "RAY",
"mint": "4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R",
"deposit": "0.12447219187836081",
"borrow": "0.19179252289235138"
},
{
"asset": "SOL",
"mint": "So11111111111111111111111111111111111111112",
"deposit": "0.03149277251349529",
"borrow": "0.10184945365066264"
},
{
"asset": "SRM",
"mint": "SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt",
"deposit": "0.0014391693941224902",
"borrow": "0.031930722840949444"
},
{
"asset": "USDC",
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"deposit": "0.0188790356315921",
"borrow": "0.049366993796585386"
},
{
"asset": "USDT",
"mint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
"deposit": "0.039240853955982063",
"borrow": "0.06875342870731997"
},
{
"asset": "UST (Wormhole)",
"mint": "9vMJfxuKxXBoEa7rM12mYLMwTacLMLDJqHozw96WQL8i",
"deposit": "0.040417810344719064",
"borrow": "0.06969665329250418"
}
]
}
This project is maintained and funded by M2 Labs, a Web3 product development studio.
FAQs
All the token yield rates on Solana
We found that defi-yield demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.