@switchboard-xyz/defi-yield-ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

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'

Readme

Keywords

none

Package Sidebar

Install

npm i @switchboard-xyz/defi-yield-ts

Weekly Downloads

20

Version

1.0.9

License

AGPL-3.0-or-later

Unpacked Size

2.76 MB

Total Files

294

Last publish

Collaborators

  • eldios
  • herm
  • mgild
  • jessupjn