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

1.0.10 • 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 @jet-lab/defi-yield-ts

Weekly Downloads

1

Version

1.0.10

License

AGPL-3.0-or-later

Unpacked Size

1.12 MB

Total Files

132

Last publish

Collaborators

  • jetjake
  • davodesign84
  • partiallysorted
  • loganjross
  • tristyn
  • callensm
  • suscd