You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After creating the delegate, transfer reward tokens to the `tokenAccount`, which is an ATA for the fund delegate PDA address. The worker will periodically fund the reward pool from these tokens according to the schedule.
379
381
382
+
### Clawback fixed reward pool funds
383
+
384
+
`clawback` lets the reward pool authority recover any tokens still left in the reward pool vault after the stake pool has expired and the cooldown has passed.
385
+
386
+
- It is available only for the fixed reward pool program.
387
+
- Dynamic reward pools do not support clawback.
388
+
- The program enforces a 7 day delay after `stakePool.expiryTs` before clawback is allowed.
389
+
- When it succeeds, the remaining reward tokens are transferred to the authority's ATA for the reward mint and the reward vault is closed.
390
+
391
+
```typescript
392
+
awaitclient.clawback({
393
+
stakePool,
394
+
stakePoolMint: mint,
395
+
nonce: rewardPoolNonce,
396
+
rewardMint,
397
+
}, extParams);
398
+
```
399
+
400
+
Use `prepareClawbackInstructions` if you want to include the clawback instruction in a larger custom transaction.
401
+
380
402
### Set Token Metadata
381
403
382
404
SolanaStakingClient also exposes original IDL of all programs, so you can use some additional instructions, that are not wrapped by the client. Currently there is no method to update Token Metadata of the Staking Mint that stakers get in return for their stake, but you can call the instructions from the original IDL like so:
0 commit comments