4
4
#![ allow( rustdoc:: missing_doc_code_examples) ]
5
5
#![ allow( clippy:: nonstandard_macro_braces) ]
6
6
7
- use std:: ops:: Deref ;
8
-
9
- use anchor_lang:: prelude:: * ;
10
- use anchor_lang:: solana_program;
11
- use anchor_lang:: solana_program:: account_info:: AccountInfo ;
12
- use anchor_lang:: solana_program:: entrypoint:: ProgramResult ;
13
7
use anchor_lang:: solana_program:: program_pack:: Pack ;
14
- use anchor_lang:: { Accounts , CpiContext } ;
8
+ use anchor_lang:: { prelude:: * , solana_program} ;
9
+ use std:: ops:: Deref ;
15
10
16
11
declare_id ! ( "SSwpkEEcbUqx4vtoEByFjSkhKdCT862DNVb52nZg1UZ" ) ;
17
12
@@ -385,7 +380,7 @@ pub struct Deposit<'info> {
385
380
pub output_lp : AccountInfo < ' info > ,
386
381
}
387
382
388
- /// Accounts for a ' swap' instruction.
383
+ /// Accounts for a [ swap] instruction.
389
384
#[ derive( Accounts ) ]
390
385
pub struct Swap < ' info > {
391
386
/// The context of the user.
@@ -396,7 +391,7 @@ pub struct Swap<'info> {
396
391
pub output : SwapOutput < ' info > ,
397
392
}
398
393
399
- /// Accounts for a ' withdraw_one' instruction.
394
+ /// Accounts for a [ withdraw_one] instruction.
400
395
#[ derive( Accounts ) ]
401
396
pub struct WithdrawOne < ' info > {
402
397
/// The context of the user.
@@ -421,7 +416,7 @@ pub struct WithdrawOne<'info> {
421
416
pub output : SwapOutput < ' info > ,
422
417
}
423
418
424
- /// Accounts for a ' withdraw' instruction.
419
+ /// Accounts for a [ withdraw] instruction.
425
420
#[ derive( Accounts ) ]
426
421
pub struct Withdraw < ' info > {
427
422
/// The context of the user.
@@ -436,7 +431,7 @@ pub struct Withdraw<'info> {
436
431
pub output_b : SwapOutput < ' info > ,
437
432
}
438
433
439
- /// Accounts for a ' set_fee_account' instruction.
434
+ /// Accounts for a [ set_fee_account] instruction.
440
435
#[ derive( Accounts ) ]
441
436
pub struct SetFeeAccount < ' info > {
442
437
/// The context of the admin user
@@ -445,7 +440,7 @@ pub struct SetFeeAccount<'info> {
445
440
pub fee_account : AccountInfo < ' info > ,
446
441
}
447
442
448
- /// Accounts for a ' apply_new_admin' .
443
+ /// Accounts for a [ apply_new_admin] .
449
444
#[ derive( Accounts ) ]
450
445
pub struct CommitNewAdmin < ' info > {
451
446
/// The context of the admin user
@@ -458,7 +453,7 @@ pub struct CommitNewAdmin<'info> {
458
453
// Various accounts
459
454
// --------------------------------
460
455
461
- /// Token accounts for the output of a StableSwap instruction .
456
+ /// Token accounts for initializing a [SwapInfo] .
462
457
#[ derive( Accounts ) ]
463
458
pub struct InitToken < ' info > {
464
459
/// The token account for the pool's reserves of this token.
@@ -469,7 +464,7 @@ pub struct InitToken<'info> {
469
464
pub mint : AccountInfo < ' info > ,
470
465
}
471
466
472
- /// Token accounts for a ' swap' instruction.
467
+ /// Token accounts for a [ swap] instruction.
473
468
#[ derive( Accounts ) ]
474
469
pub struct SwapToken < ' info > {
475
470
/// The token account associated with the user.
@@ -503,7 +498,7 @@ pub struct SwapUserContext<'info> {
503
498
}
504
499
505
500
/// Accounts for an instruction that requires admin permission.
506
- #[ derive( Accounts , Clone ) ]
501
+ #[ derive( Accounts ) ]
507
502
pub struct AdminUserContext < ' info > {
508
503
/// The public key of the admin account.
509
504
pub admin : Signer < ' info > ,
@@ -512,7 +507,7 @@ pub struct AdminUserContext<'info> {
512
507
}
513
508
514
509
/// Accounts for an instruction that requires admin permission with the clock.
515
- #[ derive( Accounts , Clone ) ]
510
+ #[ derive( Accounts ) ]
516
511
pub struct AdminUserContextWithClock < ' info > {
517
512
/// The admin user context.
518
513
pub admin_ctx : AdminUserContext < ' info > ,
0 commit comments