Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@everlend/general-pool
Advanced tools
Everlend is a lending aggregator and optimizer. Get the best rates on your deposits and loans, always.
A general pool is an implementation of Solana pool program, which is responsible for storing users' liquidity and minting collateral tokens. There’s a general pool for every token supported by Everlend. When users interact with Everlend, they actually work with general pools, e.g. users' deposits and withdrawals are made via them.
The SDK allows interacting with Everlend general pools, specifically:
It's still work in progress. In the future the SDK will be expanded with other useful features such as getting APYs for tokens etc.
$ yarn add @everlend/general-pool
npm install @everlend/general-pool
import { Pool } from '@everlend/general-pool';
const pools = await Pool.findMany(connection, {
poolMarket,
});
import { UserWithdrawalRequest } from '@everlend/general-pool';
const userWithdrawalRequests = await UserWithdrawalRequest.findMany(connection, {
from,
});
import { prepareDepositTx } from '@everlend/general-pool';
const depositTx = await prepareDepositTx(
{ connection, payerPublicKey, },
pool,
registry,
amount,
source,
destination,
);
import { prepareWithdrawalRequestTx } from '@everlend/general-pool';
const withdrawalRequestTx = await prepareWithdrawalRequestTx(
{ connection, payerPublicKey, },
pool,
registry,
amount,
source,
destination,
);
import { prepareWithdrawalTx } from '@everlend/general-pool';
const withdrawalTx = await prepareWithdrawalTx(
{
connection,
payerPublicKey,
},
withdrawalRequest,
);
Mainnet: DzGDoJHdzUANM7P7V25t5nxqbvzRcHDmdhY51V6WNiXC
Devnet: 4yC3cUWXQmoyyybfnENpxo33hiNxUNa1YAmmuxz93WAJ
Mainnet: UaqUGgMvVzUZLthLHC9uuuBzgw5Ldesich94Wu5pMJg
Devnet: 6KCHtgSGR2WDE3aqrqSJppHRGVPgy9fHDX5XD8VZgb61
FAQs
###### NB! This package is deprecated and not supported anymore. You can find the up-to-date package here: [@everlend/sdk](https://www.npmjs.com/package/@everlend/sdk). and the documentation here: [@everlend/sdk typedocs](https://sdk-docs.everlend.finance
The npm package @everlend/general-pool receives a total of 2 weekly downloads. As such, @everlend/general-pool popularity was classified as not popular.
We found that @everlend/general-pool demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.