🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@switchboard-xyz/defi-yield-ts

Package Overview
Dependencies
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@switchboard-xyz/defi-yield-ts

A library for fetching the latest rates from Solana-centric lending protocols, with the goal of supporting every active protocol.

1.0.9
unpublished
latest
npm
Version published
Weekly downloads
0
Maintainers
5
Weekly downloads
 
Created
Source

defi-yield-ts

A library for fetching the latest rates from Solana-centric lending protocols, with the goal of supporting every active protocol.

To pull rates for a specific protocol:

const rateObserver = new RateObserver();
const protocolRates: ProtocolRates = await rateObserver.fetch('jet');

To pull rates for all supported protocols at once:

const rateObserver = new RateObserver();
const protocolRates: ProtocolRates[] = await rateObserver.fetchAll();

Currently supported protocols:

  • '01'
  • 'apricot'
  • 'francium'
  • 'jet'
  • 'larix'
  • 'mango'
  • 'port'
  • 'solend'
  • 'tulip'

FAQs

Package last updated on 07 Mar 2023

Did you know?

Socket

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.

Install

Related posts