Skip to content

Commit 0abe52c

Browse files
committed
Document accounts for admin IXs
1 parent aa13771 commit 0abe52c

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

token-lending/sdk/src/instruction.rs

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,8 @@ pub enum LendingInstruction {
543543
/// * b"RewardVaultAuthority"
544544
/// * Lending market account pubkey
545545
/// * Reserve account pubkey
546-
/// `[]` Uninitialized rent-exempt account that will hold reward tokens.
546+
/// * Reward mint pubkey
547+
/// `[writable]` Uninitialized rent-exempt account that will hold reward tokens.
547548
/// `[]` Lending market account.
548549
/// `[signer]` Lending market owner.
549550
/// `[]` Rent sysvar.
@@ -565,6 +566,20 @@ pub enum LendingInstruction {
565566
/// * Admin only instruction.
566567
/// * Can only be called if reward period is over.
567568
/// * Can only be called if all users claimed rewards.
569+
///
570+
/// `[writable]` Reserve account.
571+
/// `[]` Reward mint.
572+
/// `[writable]` Reward token account owned by signer
573+
/// `[]` Derived reserve pool reward authority. Seed:
574+
/// * b"RewardVaultAuthority"
575+
/// * Lending market account pubkey
576+
/// * Reserve account pubkey
577+
/// * Reward mint pubkey
578+
/// `[writable]` Reward vault token account.
579+
/// `[]` Lending market account.
580+
/// `[signer]` Lending market owner.
581+
/// `[]` Rent sysvar.
582+
/// `[]` Token program.
568583
ClosePoolReward {
569584
/// Whether this reward applies to deposits or borrows
570585
position_kind: PositionKind,
@@ -578,6 +593,20 @@ pub enum LendingInstruction {
578593
/// * Admin only instruction.
579594
/// * Changed the endtime of the reward to the current time.
580595
/// * Claims unallocated rewards to the admin signer.
596+
///
597+
/// `[writable]` Reserve account.
598+
/// `[]` Reward mint.
599+
/// `[writable]` Reward token account owned by signer
600+
/// `[]` Derived reserve pool reward authority. Seed:
601+
/// * b"RewardVaultAuthority"
602+
/// * Lending market account pubkey
603+
/// * Reserve account pubkey
604+
/// * Reward mint pubkey
605+
/// `[writable]` Reward vault token account.
606+
/// `[]` Lending market account.
607+
/// `[signer]` Lending market owner.
608+
/// `[]` Rent sysvar.
609+
/// `[]` Token program.
581610
CancelPoolReward {
582611
/// Whether this reward applies to deposits or borrows
583612
position_kind: PositionKind,

0 commit comments

Comments
 (0)