Skip to content

Commit

Permalink
add poolSigner, accounts generated on the fly
Browse files Browse the repository at this point in the history
  • Loading branch information
sjillen committed Nov 6, 2021
1 parent 03ddd59 commit 2a7f27d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Multisig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,13 @@ function InitializeIdoPoolListItemDetails({
);
console.log("poolUsdc: ", poolUsdc.toBase58());

// We use the uxp mint address as the seed, could use something else though.
const [_poolSigner] = await anchor.web3.PublicKey.findProgramAddress(
[uxpMint.toBuffer()],
UXDIDOProgramAdress
);
const poolSigner = _poolSigner;

const accounts = [
//? Do we need these two for some multisig stuff?
// {
Expand All @@ -1066,7 +1073,7 @@ function InitializeIdoPoolListItemDetails({
// pool_signer -- this is the multisig PDA : 35F3GaWyShU5N5ygYAFWDw6bGVNHnAHSe8RKzqRD2RkT
//? While testing we used to use a derivation from the uxp mint for creating this account
{
pubkey: multisigPDA,
pubkey: poolSigner,
isWritable: false,
isSigner: true,
},
Expand Down

0 comments on commit 2a7f27d

Please sign in to comment.