@everlend/general-pool
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -93,2 +93,7 @@ "use strict"; | ||
destination = destination !== null && destination !== void 0 ? destination : (yield (0, common_1.findAssociatedTokenAccount)(payerPublicKey, poolMint)); | ||
!(yield connection.getAccountInfo(destination)) && | ||
tx.add(new common_1.CreateAssociatedTokenAccount({ feePayer: payerPublicKey }, { | ||
associatedTokenAddress: destination, | ||
tokenMint: poolMint, | ||
})); | ||
tx.add(new transactions_1.DepositTx({ feePayer: payerPublicKey }, { | ||
@@ -95,0 +100,0 @@ registryPoolConfig, |
{ | ||
"name": "@everlend/general-pool", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -210,2 +210,12 @@ import { AccountLayout, MintLayout, TOKEN_PROGRAM_ID, NATIVE_MINT, Token } from '@solana/spl-token' | ||
destination = destination ?? (await findAssociatedTokenAccount(payerPublicKey, poolMint)) | ||
!(await connection.getAccountInfo(destination)) && | ||
tx.add( | ||
new CreateAssociatedTokenAccount( | ||
{ feePayer: payerPublicKey }, | ||
{ | ||
associatedTokenAddress: destination, | ||
tokenMint: poolMint, | ||
}, | ||
), | ||
) | ||
@@ -212,0 +222,0 @@ tx.add( |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
171259
3486
0