Skip to content

Commit

Permalink
solana allow owner off curve (#372)
Browse files Browse the repository at this point in the history
Co-authored-by: shan <[email protected]>
  • Loading branch information
shan-57blocks and shan57blocks authored Nov 25, 2024
1 parent 00d6f8d commit a62929a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ export const getTokenAccounts = (
const underlyingTokenATA = getAssociatedTokenAddressSync(
new PublicKey(poolInfo.underlyingMint.address),
account,
false, // allowOwnerOffCurve
true, // allowOwnerOffCurve
TOKEN_PROGRAM_ID,
)
const juniorTrancheATA = getAssociatedTokenAddressSync(
new PublicKey(poolInfo.juniorTrancheMint),
account,
false,
true,
TOKEN_2022_PROGRAM_ID,
)
const seniorTrancheATA = getAssociatedTokenAddressSync(
new PublicKey(poolInfo.seniorTrancheMint),
account,
false,
true,
TOKEN_2022_PROGRAM_ID,
)
const poolJuniorTrancheATA = getAssociatedTokenAddressSync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ export const useTrancheTokenAccounts = (
getAssociatedTokenAddress(
new PublicKey(poolInfo.seniorTrancheMint),
publicKey,
false, // allowOwnerOffCurve
true, // allowOwnerOffCurve
TOKEN_2022_PROGRAM_ID,
),
getAssociatedTokenAddress(
new PublicKey(poolInfo.juniorTrancheMint),
publicKey,
false, // allowOwnerOffCurve
true, // allowOwnerOffCurve
TOKEN_2022_PROGRAM_ID,
),
])
Expand Down Expand Up @@ -252,7 +252,7 @@ export const useTokenAccount = (
const associatedTokenAddress = await getAssociatedTokenAddress(
new PublicKey(poolInfo.underlyingMint.address),
publicKey,
false, // allowOwnerOffCurve
true, // allowOwnerOffCurve
TOKEN_PROGRAM_ID,
)

Expand Down

0 comments on commit a62929a

Please sign in to comment.