Skip to content

Commit 4e30214

Browse files
authored
single-pool: remove default account guidance (#26)
1 parent 9bab734 commit 4e30214

1 file changed

Lines changed: 0 additions & 76 deletions

File tree

docs/content/docs/single-pool.mdx

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -350,82 +350,6 @@ const transaction = await SinglePoolProgram.deposit({
350350

351351
All versions of the `deposit` command/transaction automatically create the associated token account for the pool token if it doesn't exist and no auxiliary token account address is provided.
352352

353-
The program also makes available a convenience address for each pool, called the default deposit address.
354-
This allows a flow where you create and delegate a stake at a program-derived address, and then can deposit this stake after the epoch boundary, without having to generate or keep track of any new keypairs.
355-
The user retains full authority on the stake account until they decide to deposit.
356-
357-
<Tabs className="unique-tabs" groupId="language-selection">
358-
<Tab value="CLI">
359-
360-
```console
361-
$ spl-single-pool create-default-stake --pool DkE6XFGbqSyYzRugLVSmmB42F9BQZ7mZU837e2Cti7kb 1000000000
362-
```
363-
364-
Once the stake becomes active, typically in the next epoch:
365-
366-
```console
367-
$ spl-single-pool deposit --pool DkE6XFGbqSyYzRugLVSmmB42F9BQZ7mZU837e2Cti7kb --default-stake-account
368-
```
369-
370-
</Tab>
371-
372-
<Tab value="JS">
373-
374-
```typescript
375-
const transaction = await SinglePoolProgram.createAndDelegateUserStake(
376-
connection,
377-
voteAccountAddress,
378-
userWallet,
379-
1000000000,
380-
);
381-
382-
// sign with user wallet
383-
```
384-
385-
Once the stake becomes active, typically in the next epoch:
386-
387-
```typescript
388-
const transaction = await SinglePoolProgram.deposit({
389-
connection,
390-
pool: poolAddress,
391-
userWallet,
392-
depositFromDefaultAccount: true,
393-
});
394-
395-
// sign with user wallet
396-
```
397-
398-
</Tab>
399-
400-
<Tab value="Kit">
401-
402-
```typescript
403-
const transaction = await SinglePoolProgram.createAndDelegateUserStake(
404-
rpc,
405-
voteAccountAddress,
406-
userWallet,
407-
1000000000n,
408-
);
409-
410-
// sign with user wallet, which is used as the fee payer and as the base address for a seeded account
411-
```
412-
413-
Once the stake becomes active, typically in the next epoch:
414-
415-
```typescript
416-
const transaction = await SinglePoolProgram.deposit({
417-
rpc,
418-
pool: poolAddress,
419-
userWallet,
420-
depositFromDefaultAccount: true,
421-
});
422-
423-
// sign with user wallet, which is used as the fee payer and as the base address for a seeded account
424-
```
425-
426-
</Tab>
427-
</Tabs>
428-
429353
#### Withdrawing
430354

431355
Withdrawing is simple, burning tokens to receive the amount of stake they're backed by.

0 commit comments

Comments
 (0)