
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@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 0 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.