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'