This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +12
-10
lines changed
libraries/type-length-value/src
token/program-2022/src/extension/confidential_transfer
token-lending/program/src Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -375,7 +375,8 @@ impl<'data> TlvStateMut<'data> {
375
375
376
376
/// Packs the default TLV data into the first open slot in the data buffer.
377
377
/// Handles repetition based on the boolean arg provided:
378
- /// * `true`: If extension is already found in the buffer, it returns an error.
378
+ /// * `true`: If extension is already found in the buffer, it returns an
379
+ /// error.
379
380
/// * `false`: Will add a new entry to the next open slot.
380
381
pub fn init_value < V : SplDiscriminate + Pod + Default > (
381
382
& mut self ,
Original file line number Diff line number Diff line change @@ -158,8 +158,10 @@ pub enum LendingInstruction {
158
158
///
159
159
/// 0. `[writable]` Obligation account.
160
160
/// 1. `[]` Clock sysvar.
161
- /// 2. .. `[]` Collateral deposit reserve accounts - refreshed, all, in order.
162
- /// 3. .. `[]` Liquidity borrow reserve accounts - refreshed, all, in order.
161
+ /// 2. .. `[]` Collateral deposit reserve accounts - refreshed, all, in
162
+ /// order.
163
+ /// 3. .. `[]` Liquidity borrow reserve accounts - refreshed, all, in
164
+ /// order.
163
165
RefreshObligation ,
164
166
165
167
// 8
@@ -319,10 +321,8 @@ pub enum LendingInstruction {
319
321
/// above).
320
322
/// 2. `[]` Token program id
321
323
/// 3. .. `[any]` Additional accounts provided to the lending program's
322
- /// `FlashLoan` instruction above. ReceiveFlashLoan {
323
- /// // Amount that must be repaid by the receiver program
324
- /// amount: u64
325
- /// }
324
+ /// `FlashLoan` instruction above. ReceiveFlashLoan { // Amount that
325
+ /// must be repaid by the receiver program amount: u64 }
326
326
FlashLoan {
327
327
/// The amount that is to be borrowed - u64::MAX for up to 100% of
328
328
/// available liquidity
Original file line number Diff line number Diff line change @@ -107,8 +107,8 @@ pub enum SwapInstruction {
107
107
/// 3. `[]` token_b Account. Must be non zero, owned by swap authority.
108
108
/// 4. `[writable]` Pool Token Mint. Must be empty, owned by swap
109
109
/// authority.
110
- /// 5. `[]` Pool Token Account to deposit trading and withdraw fees.
111
- /// Must be empty, not owned by swap authority
110
+ /// 5. `[]` Pool Token Account to deposit trading and withdraw fees. Must
111
+ /// be empty, not owned by swap authority
112
112
/// 6. `[writable]` Pool Token Account to deposit the initial pool token
113
113
/// supply. Must be empty, not owned by swap authority.
114
114
/// 7. `[]` Pool Token program id
Original file line number Diff line number Diff line change @@ -473,7 +473,8 @@ pub enum ConfidentialTransferInstruction {
473
473
/// 9. `[]` (Optional) Range proof record account or context state
474
474
/// account.
475
475
/// 10. `[]` The multisig source account owner.
476
- /// 11. .. `[signer]` Required M signer accounts for the SPL Token Multisig
476
+ /// 11. .. `[signer]` Required M signer accounts for the SPL Token
477
+ /// Multisig
477
478
///
478
479
/// Data expected by this instruction:
479
480
/// `TransferWithFeeInstructionData`
You can’t perform that action at this time.
0 commit comments