44#![ allow( rustdoc:: missing_doc_code_examples) ]
55#![ allow( clippy:: nonstandard_macro_braces) ]
66
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 ;
137use 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 ;
1510
1611declare_id ! ( "SSwpkEEcbUqx4vtoEByFjSkhKdCT862DNVb52nZg1UZ" ) ;
1712
@@ -385,7 +380,7 @@ pub struct Deposit<'info> {
385380 pub output_lp : AccountInfo < ' info > ,
386381}
387382
388- /// Accounts for a ' swap' instruction.
383+ /// Accounts for a [ swap] instruction.
389384#[ derive( Accounts ) ]
390385pub struct Swap < ' info > {
391386 /// The context of the user.
@@ -396,7 +391,7 @@ pub struct Swap<'info> {
396391 pub output : SwapOutput < ' info > ,
397392}
398393
399- /// Accounts for a ' withdraw_one' instruction.
394+ /// Accounts for a [ withdraw_one] instruction.
400395#[ derive( Accounts ) ]
401396pub struct WithdrawOne < ' info > {
402397 /// The context of the user.
@@ -421,7 +416,7 @@ pub struct WithdrawOne<'info> {
421416 pub output : SwapOutput < ' info > ,
422417}
423418
424- /// Accounts for a ' withdraw' instruction.
419+ /// Accounts for a [ withdraw] instruction.
425420#[ derive( Accounts ) ]
426421pub struct Withdraw < ' info > {
427422 /// The context of the user.
@@ -436,7 +431,7 @@ pub struct Withdraw<'info> {
436431 pub output_b : SwapOutput < ' info > ,
437432}
438433
439- /// Accounts for a ' set_fee_account' instruction.
434+ /// Accounts for a [ set_fee_account] instruction.
440435#[ derive( Accounts ) ]
441436pub struct SetFeeAccount < ' info > {
442437 /// The context of the admin user
@@ -445,7 +440,7 @@ pub struct SetFeeAccount<'info> {
445440 pub fee_account : AccountInfo < ' info > ,
446441}
447442
448- /// Accounts for a ' apply_new_admin' .
443+ /// Accounts for a [ apply_new_admin] .
449444#[ derive( Accounts ) ]
450445pub struct CommitNewAdmin < ' info > {
451446 /// The context of the admin user
@@ -458,7 +453,7 @@ pub struct CommitNewAdmin<'info> {
458453// Various accounts
459454// --------------------------------
460455
461- /// Token accounts for the output of a StableSwap instruction .
456+ /// Token accounts for initializing a [SwapInfo] .
462457#[ derive( Accounts ) ]
463458pub struct InitToken < ' info > {
464459 /// The token account for the pool's reserves of this token.
@@ -469,7 +464,7 @@ pub struct InitToken<'info> {
469464 pub mint : AccountInfo < ' info > ,
470465}
471466
472- /// Token accounts for a ' swap' instruction.
467+ /// Token accounts for a [ swap] instruction.
473468#[ derive( Accounts ) ]
474469pub struct SwapToken < ' info > {
475470 /// The token account associated with the user.
@@ -503,7 +498,7 @@ pub struct SwapUserContext<'info> {
503498}
504499
505500/// Accounts for an instruction that requires admin permission.
506- #[ derive( Accounts , Clone ) ]
501+ #[ derive( Accounts ) ]
507502pub struct AdminUserContext < ' info > {
508503 /// The public key of the admin account.
509504 pub admin : Signer < ' info > ,
@@ -512,7 +507,7 @@ pub struct AdminUserContext<'info> {
512507}
513508
514509/// Accounts for an instruction that requires admin permission with the clock.
515- #[ derive( Accounts , Clone ) ]
510+ #[ derive( Accounts ) ]
516511pub struct AdminUserContextWithClock < ' info > {
517512 /// The admin user context.
518513 pub admin_ctx : AdminUserContext < ' info > ,
0 commit comments