1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#![deny(missing_docs)]
#![deny(rustdoc::all)]
#![allow(rustdoc::missing_doc_code_examples)]
#![allow(clippy::nonstandard_macro_braces)]
mod accounts;
mod instructions;
mod state;
pub use accounts::*;
pub use instructions::*;
pub use state::*;
use anchor_lang::prelude::*;
declare_id!("SSwpkEEcbUqx4vtoEByFjSkhKdCT862DNVb52nZg1UZ");
#[derive(Clone)]
pub struct StableSwap;
impl anchor_lang::AccountDeserialize for StableSwap {
fn try_deserialize(buf: &mut &[u8]) -> Result<Self, ProgramError> {
StableSwap::try_deserialize_unchecked(buf)
}
fn try_deserialize_unchecked(_buf: &mut &[u8]) -> Result<Self, ProgramError> {
Ok(StableSwap)
}
}
impl anchor_lang::Id for StableSwap {
fn id() -> Pubkey {
ID
}
}