Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@everlend/general-pool
Advanced tools
###### 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
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,
amount,
rewardPool,
rewardAccount,
source,
destination,
)
import { prepareWithdrawalRequestTx } from '@everlend/general-pool'
const withdrawalRequestTx = await prepareWithdrawalRequestTx(
{ connection, payerPublicKey },
pool,
collateralAmount,
rewardPool,
rewardAccount,
source,
destination,
)
import { prepareWithdrawalTx } from '@everlend/general-pool'
const withdrawalTx = await prepareWithdrawalTx(
{
connection,
payerPublicKey,
},
withdrawalRequest,
)
Mainnet: DzGDoJHdzUANM7P7V25t5nxqbvzRcHDmdhY51V6WNiXC
Devnet: 4yC3cUWXQmoyyybfnENpxo33hiNxUNa1YAmmuxz93WAJ
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 6 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.