Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@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
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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.